dbTalk Databases Forums  

ParallelPeriod question

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


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



Reply
 
Thread Tools Display Modes
  #1  
Old   
Cristiano Moraes da Silva
 
Posts: n/a

Default ParallelPeriod question - 03-09-2005 , 02:37 PM






Hi all!
I have to use ParallelPeriod to generate this??

Sales
Sales in jan-2005 + feb-2005 25.000
Sales in jan-2004 + feb-2004 23.250

ParallelPeriod for a set of time members...

Thanks in advance,
Cristiano

==========================
Cristiano Moraes da Silva
cristiano (AT) dbccompany (DOT) com.br
Porto Alegre - RS - Brasil



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

Default Re: ParallelPeriod question - 03-09-2005 , 04:43 PM






Depends on how the set of Time Members is to be defined, and on how the
measures to be analyzed are aggregated. Here's an example from the
Foodmart Warehouse cube:

Quote:
With Member [Measures].[PreviousSales] as
'([Measures].[Warehouse Sales],ParallelPeriod([Time].[Year]))'
Set [JanFeb98Set] as
'{[Time].[1998].[Q1].[1],[Time].[1998].[Q1].[2]}'
Member [Time].[JanFeb98Sum] as
'Sum([JanFeb98Set])', SOLVE_ORDER = 10

Select {[Measures].[Warehouse Sales],
[Measures].[PreviousSales]} on columns,
{Descendants([Time].[1998],[Time].[Month]),
[Time].[JanFeb98Sum]} 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
  #3  
Old   
Cristiano Moraes da Silva
 
Posts: n/a

Default Re: ParallelPeriod question - 03-10-2005 , 06:04 AM



Thank you!
That's exactly what I needed.

Cristiano.

"Deepak Puri" <deepak_puri (AT) progressive (DOT) com> wrote

Quote:
Depends on how the set of Time Members is to be defined, and on how the
measures to be analyzed are aggregated. Here's an example from the
Foodmart Warehouse cube:


With Member [Measures].[PreviousSales] as
'([Measures].[Warehouse Sales],ParallelPeriod([Time].[Year]))'
Set [JanFeb98Set] as
'{[Time].[1998].[Q1].[1],[Time].[1998].[Q1].[2]}'
Member [Time].[JanFeb98Sum] as
'Sum([JanFeb98Set])', SOLVE_ORDER = 10

Select {[Measures].[Warehouse Sales],
[Measures].[PreviousSales]} on columns,
{Descendants([Time].[1998],[Time].[Month]),
[Time].[JanFeb98Sum]} on rows
from Warehouse



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