dbTalk Databases Forums  

OLAP Cube: Calculate Year On Year

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


Discuss OLAP Cube: Calculate Year On Year in the microsoft.public.sqlserver.olap forum.



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

Default OLAP Cube: Calculate Year On Year - 11-23-2004 , 07:19 PM






Hi,

I am just wondering whether anyone has done this before; I have a sales fact
table in the system and I would like to (using just the analysis service MMC
without writing too much of a query, to create a calculated cell that returns
a growth percentage).

Ie. if CurrentMember = '0405' the find the figure for last year and divide
it to give me a percentage. I have had a look at the parallel period but
since our dimenision for the finanical calendar is not set as time... I don't
know if it will work.

Any info would be appericated.

Thanks

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

Default Re: OLAP Cube: Calculate Year On Year - 11-23-2004 , 10:00 PM






ParallelPeriod() can be used with dimensions that are not labelled as
"Time" dimensions, if you override defaults:

From SQL Server BOL>>

ParallelPeriod([«Level»[, «Numeric Expression»[, «Member»]]])

This function has the following defaults:

Default «Member» value is Time.CurrentMember if «Level» is not
specified. Otherwise it is dimension.CurrentMember, where dimension is
the dimension to which level belongs.

Default «Numeric Expression» is 1.

Default «Level» is the level of the parent of «Member».
Quote:

- Deepak

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


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.