dbTalk Databases Forums  

Named Set help

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


Discuss Named Set help in the microsoft.public.sqlserver.olap forum.



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

Default Named Set help - 09-14-2005 , 02:22 AM






I am using the following to get the current month:
Tail(Filter([Period].[Month].Members,[Measures].currentmember <> 0),1)



How do I get the current month's days?

So 1-30 or 31??



Thanks,


Clint



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

Default Re: Named Set help - 09-14-2005 , 03:03 AM






Sorry, left this out...

So I want all the days in September. I don't want the tail of the last 30
days. Because that may go into the previous month.



Reply With Quote
  #3  
Old   
SQL McOLAP
 
Posts: n/a

Default Re: Named Set help - 09-14-2005 , 06:40 AM



AshVsAOD -

Just getting the children of that returned first member of the set should do
it for you, as long as your hierarchy goes from month directly down to day.

Something like:

Tail(Filter([Period].[Month].Members,[Measures].currentmember <>
0),1).item(0).Children

Good luck.

- Phil


"AshVsAOD" wrote:

Quote:
Sorry, left this out...

So I want all the days in September. I don't want the tail of the last 30
days. Because that may go into the previous month.




Reply With Quote
  #4  
Old   
AshVsAOD
 
Posts: n/a

Default Re: Named Set help - 09-14-2005 , 05:31 PM



Thats it!

Thanks for your help.

Cheers



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.