dbTalk Databases Forums  

Basic ParallelPeriod question

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


Discuss Basic ParallelPeriod question in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Denise via SQLMonster.com
 
Posts: n/a

Default Basic ParallelPeriod question - 02-22-2005 , 02:55 AM






Please can someone help me with a very basic question.
As an example I want to add another measure to the FoodMart sales cube
showing last years (or equivalent period) Store Sales. I understand that
ParallelPeriod is the function to use, but I can't get it to work - my
calculated measure always comes up empty.
Please could someone tell me the correct expression to use.

Very basic, but very frustrating for a newbie!

--
Message posted via http://www.sqlmonster.com

Reply With Quote
  #2  
Old   
Denise via SQLMonster.com
 
Posts: n/a

Default Re: Basic ParallelPeriod question - 02-22-2005 , 01:06 PM






Anybody able to help?

--
Message posted via http://www.sqlmonster.com

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

Default Re: Basic ParallelPeriod question - 02-22-2005 , 09:20 PM



Since the Foodmart Sales cube only has data for 1997, here's an example
for the Foodmart Warehouse cube:

Quote:
With Member [Measures].[Prev Shipped] as
'([Measures].[Units Shipped],
ParallelPeriod([Time].[Year]))'

Select {[Measures].[Units Shipped],
[Measures].[Prev Shipped]} on columns,
[Time].[1998].[Q2].Children on rows
from Warehouse
Quote:

- Deepak

Deepak Puri
Microsoft MVP - SQL Server

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


Reply With Quote
  #4  
Old   
Denise via SQLMonster.com
 
Posts: n/a

Default Re: Basic ParallelPeriod question - 02-23-2005 , 02:21 AM



thanks Deepak.
Your suggestion has helped me apply it to my cube and it is now working!
Thank you...
Out of interest, I dont have the Foodmart Warehouse loaded. How can I get
that one loaded?

--
Message posted via http://www.sqlmonster.com

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

Default Re: Basic ParallelPeriod question - 02-23-2005 , 10:54 AM



Hi Denise,

I'm glad that you were able to get ParallelPeriod() working for your
cube. The Warehouse cube should get installed with the sample Foodmart
database, which is an option when installing Analysis Services. It's
been a while since I did that, so someone else on the group may know
more?


- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** 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.