dbTalk Databases Forums  

Bug in analysis services and paralleleperiod

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


Discuss Bug in analysis services and paralleleperiod in the microsoft.public.sqlserver.olap forum.



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

Default Bug in analysis services and paralleleperiod - 10-12-2004 , 08:39 AM






Hello everyone,
I think i found a bug on paralleleperiod function

When i ask a paralleleperiod(year,1,time.currentmember) all works fine
except in one case :
when the time.currentmember is a month and the year before doesn't start by
january

An example :
My time dimension begins in april 2002
i ask paralleleperiod(year,1,TIME.2004.april), it returns TIME.2003.April
if i ask paralleleperiod(year,1,TIME.2003.april), it returns
TIME.2002.JULY!!!!

To avoid this problem i make a test in my calculated member : if y am at
year level i ask paralleleperiod(year,1) and if i am at month level i ask
paralleleperiod(month,12)
It works but i fear the day when i will have time dimension with missing
month!

Anyone can tell me if this bug is known?

Thanks



Reply With Quote
  #2  
Old   
Brian Altmann
 
Posts: n/a

Default RE: Bug in analysis services and paralleleperiod - 10-12-2004 , 02:33 PM






Unfortunately, this is not a bug, it is the documented behavior.
ParallelPeriod does not have any real time intelligence, it works by using
the relative position (maybe things will be different in SQL Server 2005 ).
So when you ask for ParallelPeriod of April 2003, the function takes the
ancestor of April 2003, which is the year 2003. It then takes the sibling of
2003 that lags by 1 , which is the year 2002.
Finally, since April is the fourth child of 2003, it takes the fourth child
of 2002, which is July.
For ParlallelPeriod to work as expected, the Time dimension must have a
regular structure, with no missing members.
HTH,
Brian
www.geocities.com/brianaltmann/olap.html







"Cymryr" wrote:

Quote:
Hello everyone,
I think i found a bug on paralleleperiod function

When i ask a paralleleperiod(year,1,time.currentmember) all works fine
except in one case :
when the time.currentmember is a month and the year before doesn't start by
january

An example :
My time dimension begins in april 2002
i ask paralleleperiod(year,1,TIME.2004.april), it returns TIME.2003.April
if i ask paralleleperiod(year,1,TIME.2003.april), it returns
TIME.2002.JULY!!!!

To avoid this problem i make a test in my calculated member : if y am at
year level i ask paralleleperiod(year,1) and if i am at month level i ask
paralleleperiod(month,12)
It works but i fear the day when i will have time dimension with missing
month!

Anyone can tell me if this bug is known?

Thanks




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.