dbTalk Databases Forums  

Is it possible to use a dimension property in a calculation

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


Discuss Is it possible to use a dimension property in a calculation in the microsoft.public.sqlserver.olap forum.



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

Default Is it possible to use a dimension property in a calculation - 05-16-2004 , 06:15 AM






I have a time dimension with a Year and month as level 1 and level 2.

I have a property for the month called daysinmonth, I would like to
use the daysinmonth property in a calculation for a calculated measure
as well as in a MDX calculation please advise how I can use it in a
calc measure and the MDX calculation.

Thanks
Measure

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

Default RE: Is it possible to use a dimension property in a calculation - 05-17-2004 , 05:01 AM






Try something like [DimTime].[1997].[jan].Properties("daysinmonth")
The output will always be of string type

- Sank

----- Simon Lenn wrote: ----

I have a time dimension with a Year and month as level 1 and level 2

I have a property for the month called daysinmonth, I would like t
use the daysinmonth property in a calculation for a calculated measur
as well as in a MDX calculation please advise how I can use it in
calc measure and the MDX calculation

Thank
Measur


Reply With Quote
  #3  
Old   
Dave Wickert [MSFT]
 
Posts: n/a

Default Re: Is it possible to use a dimension property in a calculation - 05-17-2004 , 08:56 AM



If you are subscribe to SQL Server Magazine, look at:
http://www.winnetmag.com/Article/Art...384/39384.html

"Member-Properties Boot Camp", by Russ Whitnet, August 2003
10 ways to help member properteries be all they can be

--
Dave Wickert [MS]
dwickert (AT) online (DOT) microsoft.com
Program Manager
BI Practices Team
SQL BI Product Unit (Analysis Services)
--
This posting is provided "AS IS" with no warranties, and confers no rights.


"Sanka" <loonysan (AT) mailcity (DOT) com> wrote

Quote:
Try something like [DimTime].[1997].[jan].Properties("daysinmonth").
The output will always be of string type.

- Sanka

----- Simon Lenn wrote: -----

I have a time dimension with a Year and month as level 1 and level 2.

I have a property for the month called daysinmonth, I would like to
use the daysinmonth property in a calculation for a calculated
measure
as well as in a MDX calculation please advise how I can use it in a
calc measure and the MDX calculation.

Thanks
Measure




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.