I need to create a report which will have two tables, one containing the up to date data (no problem) and the other to contain the data from the last time the report was run. Is there a way to do this on Reporter?
Not in a normal way, no. By design, when you refresh a document all of the data providers in the document are refreshed.
What you could consider (just some ideas off of the top of my head)
Mark the “previous” data provider with the Refreshable checkbox as off. This is in the “cube” button (View Data) on the main toolbar.
Export the “current” data to a text file, then use that text file as the source for the “previous” data provider. In this way, it (the previous data provider) will always show the previous data even if you refresh. The entire process could be automated with VBA.
I actually have a VBA routine (somewhere) that will snapshot a universe-based data provider into a VBA data provider. marcy, I can look it up for you if this is an option.
Thanks for all the replies. I have been using just one data provider for this but can create a separate one.
I haven’t used the VBA with Business Objects before but would certainly be interested in it as this requirement is across a couple of reports. The requirement is also to do comparisons between the different data sets i.e. % difference between this week and last week.
Would this still be achievable using VBA.
The reporting here is on a transactional database, I suppose the solution would be easier were the reports from a datawarehouse/datamart.
I really like the VBA code (thx Dwayne). Did everything right (so I think) in the instructions.
My VBA data provider goes ‘funky’. The Year/Month/Store Name columns are empty (#EMPTY) and the Sales Revenue column is just one long list of the data that should be in the 1st 3 columns (eg the year, month AND the sales revenue).
Anyone else have this happen or any suggestions as to why it didn’t work correctly for me?
Worked like a charm. This is a great one to play with and customize for my own uses. Thanks alot. Quick reponse. I’m impressed you wrote it from memory.
1. Mark the "previous" data provider with the Refreshable checkbox as off. This is in the "cube" button (View Data) on the main toolbar.
2. Export the "current" data to a text file, then use that text file as the source for the "previous" data provider. In this way, it (the previous data provider) will always show the previous data even if you refresh. The entire process could be automated with VBA.
I have same requirement with scheduled report.
so, what if i have to schedule this report? is the previous data provider concept will work ?