![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have the following errors showing in my cube and passing through to my reports. My MDX calculated expressions are as follows: AdjustedGrossProfitPercent = [Measures].[AdjustedGrossProfitAmount] / [Measures].[EmployeeRevenueByProjectByMonth] AND [CalculatedBillRate] = [Measures].[EmployeeRevenueByProjectByMonth] / [Measures].[EmployeeWorkedHoursByProjectByMonth] Any ideas how I can remove these errors? I assume there are related to a divide by zero error? |
#3
| |||
| |||
|
|
try: iif(measures.[a] = 0 or measures.[b] = 0, 0 , measures.[a] / measures.[b]) if 1 of the 2 measures = 0 then return 0 else execute the calculation "Scott" <Scott (AT) discussions (DOT) microsoft.com> wrote in message news 2033253-2B42-496A-9667-38598DDA01D7 (AT) microsoft (DOT) com...I have the following errors showing in my cube and passing through to my reports. My MDX calculated expressions are as follows: AdjustedGrossProfitPercent = [Measures].[AdjustedGrossProfitAmount] / [Measures].[EmployeeRevenueByProjectByMonth] AND [CalculatedBillRate] = [Measures].[EmployeeRevenueByProjectByMonth] / [Measures].[EmployeeWorkedHoursByProjectByMonth] Any ideas how I can remove these errors? I assume there are related to a divide by zero error? |
![]() |
| Thread Tools | |
| Display Modes | |
| |