dbTalk Databases Forums  

MDX Calculation

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


Discuss MDX Calculation in the microsoft.public.sqlserver.olap forum.



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

Default MDX Calculation - 12-21-2005 , 03:07 AM






MDX Newbie...

Have two measures in single fact table, measure1 and measure2. Have
attribute in related dimension, attribute1;

need to create calculated measure that is;
attribute1 * (measure1/measure2)

What is the MDX?

thx

jc


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

Default RE: MDX Calculation - 01-03-2006 , 02:50 PM






Add Calculated Members in the cube
As CalcMeasure1
([Measures].[Attribute1],[Measure1].[Level].&[ID])
And CalcMeasure2
([Measures].[Attribute1],[Measure2].[Level].&[ID])
And CalcRatio
([Measures].[CalcMeasure1]/[Measures].[CalcMeasure2])


"jfcarver" wrote:

Quote:
MDX Newbie...

Have two measures in single fact table, measure1 and measure2. Have
attribute in related dimension, attribute1;

need to create calculated measure that is;
attribute1 * (measure1/measure2)

What is the MDX?

thx

jc


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.