dbTalk Databases Forums  

compare time dimension with month(now)

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


Discuss compare time dimension with month(now) in the microsoft.public.sqlserver.olap forum.



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

Default compare time dimension with month(now) - 05-05-2006 , 03:31 PM






I have a very simple time dimension: year -> month

I need to create a calculated member in that

If the current member of DIM_TIME is < '05/2006', then use MeasureA.
If the current member of DIM_TIME is >= '05/2006' then use MeasureB.

'05/2006' will change based on NOW(). Please help me write the IIf statement.

Thank you.

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.