![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi I am new to MDX. If someone can please help me with simple question I have to create a calculated member I have 3 dimensions Product, Time, Sales I have two measures. CostA, CostB The result that I want for calculated member is (sum)costA/(sum)costB I tried doing [Measures](sum)(costA)/[Measures](sum) (costB) but got error Thanks David |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
I think this would work for you: ((sum([Measures].costA))/(sum([Measures].costA)) you may also want to look at support for divide by zero and formatting see functions: ISEMPTY() IIF() ----- anonymous (AT) discussions (DOT) microsoft.com wrote: ----- Hi I am new to MDX. If someone can please help me with simple question I have to create a calculated member I have 3 dimensions Product, Time, Sales I have two measures. CostA, CostB The result that I want for calculated member is (sum)costA/(sum)costB I tried doing [Measures](sum)(costA)/[Measures](sum) (costB) but got error Thanks David |
![]() |
| Thread Tools | |
| Display Modes | |
| |