dbTalk Databases Forums  

multiple time dimensions and MDX lag functions?

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


Discuss multiple time dimensions and MDX lag functions? in the microsoft.public.sqlserver.olap forum.



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

Default multiple time dimensions and MDX lag functions? - 04-08-2005 , 01:38 PM






I have seen several references to using dimension hierarchies with a
standard and fiscal calendar as examples. I have created these and added to
a cube and am now attempting to make use of the multiple time dimensions.

In the calculated members, I need to use the lag function to get a total of
"last 4 weeks" or "last 8 weeks". Now that I have a choice of time
dimensions, do I need to have multiple versions of each calculated member
that is coded to each of the time dimensions like this?

Measure: Last 4 Weeks - standard
Sum([Time.standard].CurrentMember.Lag(3):[Time.standard].CurrentMember,[Measures].[POS
Qty 1 Period])

*******************************

Measure: Last 4 Weeks - fiscal
Sum([Time.fiscal].CurrentMember.Lag(3):[Time.fiscal].CurrentMember,[Measures].[POS
Qty 1 Period])



someone tell me there is a better way! Please!

Jim







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.