dbTalk Databases Forums  

Named Sets of date ranges

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


Discuss Named Sets of date ranges in the microsoft.public.sqlserver.olap forum.



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

Default Named Sets of date ranges - 08-19-2003 , 07:46 AM






Hi,

I'm attempting to create a named set that contains
surrogate keys for the last 7 days so users can select
this and just refresh their reports rather than having to
keep changing the dates selected.

I can't find any info on data/time range functions for
creating a named set?

I tried creating a function in SQL Server, using a view to
get the results of the function into the cube, but once
added to cube, it produced errors in the rebuild as there
were members in the fact table that were not in my new
dimension and if processed with errors then there were
only 7 days (as expected) in the entire cube! Could not
work out how I might get the results of my function in any
other way!

Any help really appreciated!
Thanks
Paul

Reply With Quote
  #2  
Old   
Harsh
 
Posts: n/a

Default Re: Named Sets of date ranges - 08-19-2003 , 12:09 PM






StrToMember("[Period].["+format(now(),"YYYY")+"]")

Here's a lead. Let me know if you need any more tips.

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.