dbTalk Databases Forums  

Help linking two date columns to time dimension

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


Discuss Help linking two date columns to time dimension in the microsoft.public.sqlserver.olap forum.



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

Default Help linking two date columns to time dimension - 08-25-2005 , 04:25 PM






Scenario:


An incident dimension table has two dates "OpenedDate" and "ClosedDate". I
have created an "Incidents" dimension and I want to create 2 measures
"Opened Incident Count" and "Closed Incident Count" and then browse the cube
displaying both incident counts, slicing with the time dimension and dicing
with various "Incident" dimension members.

In Yukon, how do I create the link between the time dimension and both the
OpenedDate and ClosedDate in the Incidents dimension?

Thanks,
Steven



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

Default Re: Help linking two date columns to time dimension - 08-25-2005 , 08:47 PM






Assuming that "Opened Incident Count" is the number of incidents whose
"OpenedDate" falls within the selected time, and similarly for "Closed
Incident Count", then an event fact model might work better. For each
incident, there would be an "Opened" event with an "EventDate" and, if
the incident was closed, a "Closed" event with its own "EventDate". This
fact table would then join to the time dimension on "EventDate" and to
the incident dimension on an Incident ID. An "EventType" field could
have "Opened" and "Closed" values, joining to an "EventType" dimension.


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