Forum Discussion
Exclude nulls and whites from the calculation
- 9 years ago
Hi Anonymous,
Please add a MAX() function for the Equipment [name],
Total of Units Rejected test = CALCULATE (sum (IndicatorValue [Value]); FILTER (Indicator; Indicator [Name] = "UnitsRejected" && not (isblank (MAX(Equipment [name])))))
Best Regards,
Qiuyun Yu
I adapted your suggestion and tried it in two ways:
Follow:
Total of Units Rejected test = CALCULATE (sum (IndicatorValue [Value]); FILTER (Indicator; Indicator [Name] = "UnitsRejected" && not (isblank (Equipment)))
Error: "The expression references multiple columns. Multiple columns can not be converted to a scalar value."
and
Total of Units Rejected test = CALCULATE (sum (IndicatorValue [Value]); FILTER (Indicator; Indicator [Name] = "UnitsRejected" && not (isblank (Equipment [name]))))
Error: Unable to determine a unique value for the 'name' column in the 'Equipment' table. This can happen when a measurement formula refers to a column that contains many values, without specifying an aggregation such as min, max, cont, or sound to get a single result.
Anonymous Do you have a relationship between these tables equipment and indicator?
- Anonymous9 years agoNot applicable
yes
- v-qiuyu-msft9 years ago
Community Support
Hi Anonymous,
Please add a MAX() function for the Equipment [name],
Total of Units Rejected test = CALCULATE (sum (IndicatorValue [Value]); FILTER (Indicator; Indicator [Name] = "UnitsRejected" && not (isblank (MAX(Equipment [name])))))
Best Regards,
Qiuyun Yu