Re: How do I link 3 time dimensions in Analysis Services? -
11-15-2004
, 12:50 AM
An approach adapted from that discussed in this recent thread, where
there were 2 date dimensions, may work:
http://groups.google.com/groups?hl=e...EHA.2540%40TK2
MSFTNGP15.phx.gbl&prev=/groups%3Fnum%3D25%26hl%3Den%26lr%3D%26group%3Dmi
crosoft.public.sqlserver.olap%26start%3D50
There would be 3 date dimensions, say [FirstDate], [LastDate] and
[LapseDate], with identical structures but joining to the 3 respective
fact table fields. A "Count" measure could be defined on the cust_id
column, then 3 calculated measures created for [ActiveCustomers],
[InactiveCustomers] and [LapsedCustomers].
A couple of issues would then have to be resolved:
- if the dates are down to the day level, but reporting is at the
monthly level, how is a transition in customer status during a month
counted (eg: if customer becomes inactive on Mar.16, do they count as
both active and inactive in Mar'04)?
- If reports are only required by a single date dimension,
(as in the sample report data) then one of the 3 date dimensions could
be re-used as a report axis. Otherwise, another date dimension would
need to be added.
The MDX calculations would sum the "Count" measure over all combinations
of dates that meet the criteria for the 3 defined Customer states:
Active, Inactive and Lapsed.
- Deepak
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it! |