dbTalk Databases Forums  

Datediff...

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


Discuss Datediff... in the microsoft.public.sqlserver.olap forum.



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

Default Datediff... - 10-19-2005 , 01:16 PM






Hi,

How can I obtain the days between two dates, one given in the fact table,
and the other one selected as the final date of the time dimension selected?

If i choose September 2005, i want the days between the date in the fact
table and Sep 30, 2005.

Thanks,
Octavio

Reply With Quote
  #2  
Old   
Darren Gosbell
 
Posts: n/a

Default Re: Datediff... - 10-19-2005 , 08:31 PM






You will have to link a dimension to this date field. AS aggregates fact
records and dates do not aggregate.

Then you should be able to use the technique Chris Webb outlines on his
blog at http://spaces.msn.com/members/cwebbbi/Blog/cns!1pi7ETChsJ1un_
2s41jm9Iyg!113.entry

--
Regards
Darren Gosbell [MCSD]
<dgosbell_at_yahoo_dot_com>
Blog: http://www.geekswithblogs.net/darrengosbell

In article <1455E006-92EA-48CD-B474-B9245126ECB0 (AT) microsoft (DOT) com>,
OctavioVargas (AT) discussions (DOT) microsoft.com says...
Quote:
Hi,

How can I obtain the days between two dates, one given in the fact table,
and the other one selected as the final date of the time dimension selected?

If i choose September 2005, i want the days between the date in the fact
table and Sep 30, 2005.

Thanks,
Octavio



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.