The data exists in the OLAP database as follows:Currency Rate | Revenue | Receipt Date
3000 | 40000 | 12/02/2012
3001 | 34000 | 13/02/2012
3020 | 50200 | 14/02/2012
3011 | 91000 | 15/02/2012
3009 | 10000 | 16/02/2012 .. and so on.Note:-
As you can see here, the rate keeps changing every day.
Now in the report we have to show summarize data according to products only by dividing revenue with its appropriate rate:
So what happened in our MDX query is that :
Sum(Revenue) / Sum(Currency Rate) ....which is wrong.
So my question is whether there is some alternative to taking all the data to the day level and do the division and then summarize data because the no. of days can be 365 from 01/01/2011 - 31/12/2011 plus 365 days of the prior period from 01/01/2010 - 31/12/2010 ?
SSRS, SSIS, SSAS, IBM Cognos, IBM Infosphere Cubing services, Crystal reports, IBM DB2, SQL Server, T-SQLPlease visit... ApplyBI