dbTalk Databases Forums  

calculating day differences

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


Discuss calculating day differences in the microsoft.public.sqlserver.olap forum.



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

Default calculating day differences - 05-02-2006 , 01:29 PM






In AS2K --

I have a ReviewRound dimension and each member of this dimension has two
attributes, a start and end date.

Using a calculated member, I determine whether the ReviewRound was active
during a given date range determined by the current member of the Time
dimension. When a user selects any member from this dimension, the
calculated member checks to see whether the ReviewRound was active for *any*
day in the period. For example, I have a ReviewRound active from 2006-01-01
to 2006-04-03. The user selects [Time].[2006].[April] and the calculated
member sees that it was active for three days in April, so it outputs this
number as the expression.

The problem is that when the ReviewRound dimension is added to a cube where
there are other dimensions, the formula has to be updated to handle every
possible combination of slice and dice for the other dimensions present.
This becomes impossible to write, test and maintain. Ideally, it seems like
it should be stored in a fact table in the data mart, but you still end up
with the problem of how to deal with ranges that overlap the Time dimension.

Does anyone have any good links to articles explaining how to handle
calculated members that use date ranges in MS OLAP?

Thanks in advance,

Ian




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.