dbTalk Databases Forums  

Calculated Rollup

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss Calculated Rollup in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Tina
 
Posts: n/a

Default Calculated Rollup - 07-12-2005 , 05:28 PM






I have a CustomerName, Months, Year dimensions.
I am showing my customer and year dimensions to the left and months
dimensions at the top. I am agreggating my sales by customer/year by months.
I need to calculate the difference between the same month in different
years. How can I do that?

Thanks


Reply With Quote
  #2  
Old   
Deepak Puri
 
Posts: n/a

Default Re: Calculated Rollup - 07-12-2005 , 08:34 PM






The ParallelPeriod() function could be useful, like in comparing to the
previous year:

Quote:
With Member [Measures].[SalesChange] as
'[Measures].[Sales] -
([Measures].[Sales], ParallelPeriod([Year].[Year]))'
Quote:

- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** Sent via Developersdex http://www.developersdex.com ***


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.