dbTalk Databases Forums  

Date in SQL

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


Discuss Date in SQL in the microsoft.public.sqlserver.olap forum.



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

Default Date in SQL - 11-09-2004 , 03:53 AM






Hi

I have a table in SQL with a date field in it.
I use that field in MSAS to build up the time hierachy in MSAS to give me my
months/quarters/years/etc.

I use the normal MSAS windows GUI to do this.

I, however, have dates posted for 1st Jan 2005 and forward.

What I want to do is the following ...
Build the time hierachy as I, but limit the end date to the current days
date and not use the dates going forward?

Any suggestions

Graville


Reply With Quote
  #2  
Old   
Steve McHugh
 
Posts: n/a

Default Re: Date in SQL - 11-10-2004 , 04:26 AM






Probably the easiest way would be to put a view on your underlying fact
table and time dimension that only displays that data for the current
year and prior years. Either that or call out to the VBA Now() function
and filter the dimension on that.

Steve


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.