Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

MDX performance issue to go upto day level Expand / Collapse
Author
Message
Posted Friday, October 12, 2012 12:54 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Tuesday, January 7, 2014 2:21 PM
Points: 132, Visits: 557
Hi experts,


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 ?


BI Developer
SSRS, SSIS, SSAS, IBM Cognos, IBM Infosphere Cubing services, Crystal reports, IBM DB2, SQL Server, T-SQL
Please visit... ApplyBI
Post #1371913
Posted Friday, October 12, 2012 9:42 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Monday, January 13, 2014 7:34 AM
Points: 117, Visits: 499
Use a measure expression or feed this in pre-calculated into the cube

Mack
Post #1372244
Posted Monday, October 15, 2012 7:46 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Tuesday, January 7, 2014 2:21 PM
Points: 132, Visits: 557
Yeah. That's the only way to overcome this performance issue.
Thanks


BI Developer
SSRS, SSIS, SSAS, IBM Cognos, IBM Infosphere Cubing services, Crystal reports, IBM DB2, SQL Server, T-SQL
Please visit... ApplyBI
Post #1372731
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse