dbTalk Databases Forums  

Getting the Integer value of the Current Month

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


Discuss Getting the Integer value of the Current Month in the microsoft.public.sqlserver.olap forum.



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

Default Getting the Integer value of the Current Month - 02-21-2004 , 07:49 AM







Hello,

Is there a way for me to access the integer value of the current
month of the time dimension(ex. January =1,February =2,
March=3...December=12). The month level has a member key
column(DatePart(month,TransactionDt_Dim"."transact iondt")).

so my formula would be Total Assets/[Integer value of the current Month]

thanks....


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Reply With Quote
  #2  
Old   
Tom Chester
 
Posts: n/a

Default Re: Getting the Integer value of the Current Month - 02-21-2004 , 07:09 PM






You can reference the (olap) key which may or may not be the month number:

Time.CurrentMember.Properties("Key")

public @ the domain below
www.tomchester.net

"Leo Francis" <joel_idol (AT) yahoo (DOT) com> wrote

Quote:
Hello,

Is there a way for me to access the integer value of the current
month of the time dimension(ex. January =1,February =2,
March=3...December=12). The month level has a member key
column(DatePart(month,TransactionDt_Dim"."transact iondt")).

so my formula would be Total Assets/[Integer value of the current Month]

thanks....


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



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.