dbTalk Databases Forums  

Percentage Calucated Measure

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


Discuss Percentage Calucated Measure in the microsoft.public.sqlserver.olap forum.



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

Default Percentage Calucated Measure - 03-18-2005 , 09:48 AM






I have setup a client's cube enviornment for them which consists of a
single measure (expenditure amount). This measure represents dollars
spent on an individual expenditure.

They would also like to see a percentage that represents the percent
value of the expenditure compared to the total dollar amount of
expenditures by a top level grouping (i.e. row headings).

MSAS already calcuates the TOTAL value and displays it under the
individual expenditures. My question is how can I create a calculate
measure to calculate the percentage of each individual expenditure
compared to the total for that category?

Please keep in mind I'm very very new to MDX and any assistance will be
greatly appreciated!!!

Thanks!

Martin


Reply With Quote
  #2  
Old   
Ohjoo Kwon
 
Posts: n/a

Default Re: Percentage Calucated Measure - 03-18-2005 , 10:03 AM






You can use tuple. For example,

[Measures].[expenditure amount] / ([Expenditure].[All expenditures],
[Measures].[expenditure amount])

Ohjoo Kwon

"halil" <halemg (AT) dot (DOT) il.gov> wrote

Quote:
I have setup a client's cube enviornment for them which consists of a
single measure (expenditure amount). This measure represents dollars
spent on an individual expenditure.

They would also like to see a percentage that represents the percent
value of the expenditure compared to the total dollar amount of
expenditures by a top level grouping (i.e. row headings).

MSAS already calcuates the TOTAL value and displays it under the
individual expenditures. My question is how can I create a calculate
measure to calculate the percentage of each individual expenditure
compared to the total for that category?

Please keep in mind I'm very very new to MDX and any assistance will be
greatly appreciated!!!

Thanks!

Martin




Reply With Quote
  #3  
Old   
halil
 
Posts: n/a

Default Re: Percentage Calucated Measure - 03-18-2005 , 10:27 AM



Thanks so much!!!!!

Worked perfect!!!!!!!!


Reply With Quote
  #4  
Old   
Oliver Kerber
 
Posts: n/a

Default Percentage Calucated Measure across several dimensions - 03-20-2005 , 07:08 AM



Quote:
You can use tuple. For example,

[Measures].[expenditure amount] / ([Expenditure].[All expenditures],
[Measures].[expenditure amount])
I used this formular but in my case it only works properly with one
dimension. The formular I want to write is quite simple

[Measures].[Value] / <Queryresult>

where <Queryresult> is the sum of all values. But I am a complete newby in
MDX and don't know how to accomplish it. Can anyone give me a hand?

Oliver




Reply With Quote
  #5  
Old   
Ohjoo Kwon
 
Posts: n/a

Default Re: Percentage Calucated Measure across several dimensions - 03-20-2005 , 08:59 AM



You can use tuple again.

[Measures].[Value] / ([Measures].[Value], [All Dim1], [All Dim2], [All
Dim3], ..., [All DimN])

Next version will support Root() for this purpose.

Ohjoo Kwon


"Oliver Kerber" <okerber (AT) bigfoot (DOT) de> wrote

Quote:
You can use tuple. For example,

[Measures].[expenditure amount] / ([Expenditure].[All expenditures],
[Measures].[expenditure amount])

I used this formular but in my case it only works properly with one
dimension. The formular I want to write is quite simple

[Measures].[Value] / <Queryresult

where <Queryresult> is the sum of all values. But I am a complete newby in
MDX and don't know how to accomplish it. Can anyone give me a hand?

Oliver





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.