Forum Discussion
Convert calculated column into a Measure
- 1 year ago
Hi DK-C-87 - You can avoid using COUNTX because you're already working with distinct counts and conditions directly in CALCULATE.
Helper_Measure =
VAR _1 = CALCULATE(DISTINCTCOUNT(HighlightGBS[Plant]), NOT(ISBLANK(HighlightGBS[HL - Business Cases])))
VAR _2 = CALCULATE(DISTINCTCOUNT(HighlightGBS[Plant]), NOT(ISBLANK(HighlightGBS[HL - Storbageri])))
VAR _3 = CALCULATE(DISTINCTCOUNT(HighlightGBS[Plant]), NOT(ISBLANK(HighlightGBS[HL - Bageri])))
VAR Samlet = _1 + _2 + _3
RETURN SamletHopefully it works, If this still doesn't produce the expected results, you may need to check for how the data in HighlightGBS is structured
Hi DK-C-87 - You can avoid using COUNTX because you're already working with distinct counts and conditions directly in CALCULATE.
Helper_Measure =
VAR _1 = CALCULATE(DISTINCTCOUNT(HighlightGBS[Plant]), NOT(ISBLANK(HighlightGBS[HL - Business Cases])))
VAR _2 = CALCULATE(DISTINCTCOUNT(HighlightGBS[Plant]), NOT(ISBLANK(HighlightGBS[HL - Storbageri])))
VAR _3 = CALCULATE(DISTINCTCOUNT(HighlightGBS[Plant]), NOT(ISBLANK(HighlightGBS[HL - Bageri])))
VAR Samlet = _1 + _2 + _3
RETURN Samlet
Hopefully it works, If this still doesn't produce the expected results, you may need to check for how the data in HighlightGBS is structured