dbTalk Databases Forums  

Parallel period Performance

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


Discuss Parallel period Performance in the microsoft.public.sqlserver.olap forum.



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

Default Parallel period Performance - 01-14-2006 , 06:50 AM






Is there any alternate to Parallelperiod function, i am facing
performance problems when the member are large. Can anyone guide me
whats the problem with this query ? or any suggestion to improve the
performance or any alternate possibility to have the same result?

I would specially like to thank Deepuk fore his immense help

Thanks in advance

Faraz
---------------------------------------------------------------------------*----------------------------------

MDX Query
---------------------------------------------------------------------------*----------------------------------


With Cell Calculation MY_CELL For
'( { [Measures].[Sales Count]} )' As
'CalculationPassValue(Measures.CurrentMember, -1 ,Relative )',
CONDITION =' (ParallelPeriod ([Time].[Month Of
Year],1,[Time].CurrentMember),Measures.[Sales Count]) <
(CalculationPassValue( [Measures].[Sales Count], -1,Relative ) +
(ParallelPeriod ([Time].[Month Of
Year],1,[Time].CurrentMember),Measures.[Sales Count]) * 0.05)'
, SOLVE_ORDER ='2000', FORE_COLOR ='11005',
CALCULATION_PASS_NUMBER ='2', CALCULATION_PASS_DEPTH ='1'
SELECT
{ CrossJoin({[Customers].[Country].[USA].CHILDREN},{Measures.[Sales
Count]})} ON COLUMNS ,
{{[Time].[Month Of Year].MEMBERS}} ON ROWS
FROM [Sales] CELL PROPERTIES
[VALUE],[FORMATTED_VALUE],[CELL_ORDINAL],[FORE_COLOR]


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

Default Re: Parallel period Performance - 01-17-2006 , 12:20 AM






Hi Faraz,

Maybe the performance problem is with unintended recursion, rather than
with ParallelPeriod() - this version works faster:

Quote:
With Cell Calculation MY_CELL For
'( { [Measures].[Sales Count]} )' As
'CalculationPassValue(Measures.CurrentMember, -1 ,Relative )',
CONDITION =' CalculationPassValue((ParallelPeriod ([Time].[Month],
1,[Time].CurrentMember),Measures.[Sales Count]), -1, RELATIVE) * 0.95
< CalculationPassValue( [Measures].[Sales Count], -1,Relative ) ',
SOLVE_ORDER ='2000', FORE_COLOR ='11005',
CALCULATION_PASS_NUMBER ='2', CALCULATION_PASS_DEPTH ='1'
SELECT
{ CrossJoin({[Customers].[Country].[USA].CHILDREN},
{Measures.[Sales Count]})} ON COLUMNS ,
{{[Time].[Month].MEMBERS}} ON ROWS
FROM [Sales] CELL PROPERTIES
[VALUE],[FORMATTED_VALUE],[CELL_ORDINAL],[FORE_COLOR]
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.