Forum Discussion
Calculated Columns and Measure
- 5 years ago
Hi Anonymous ,
You could try the following measure:
test =
VAR not_compliant =
CALCULATE (
COUNT ( 'Table'[Stop Comp over 5 mins] ),
FILTER (
ALL ( 'Table' ),
'Table'[Journey Alias] = MAX ( 'Table'[Journey Alias] )
&& 'Table'[Stop Comp over 5 mins] = "Not Compliant"
)
)
VAR at_all =
IF ( not_compliant >= 1, "Not Compliant", "Compliant" )
RETURN
at_allFinally you will see:
If this is not what you want, please describe what you want, thank you!
Best Regards,
Lucien
Anonymous , Try this one
if(isblank(calculate(countx(filter(Table, containsstring(Table[Stop over 5 Min], "Not Complaint")),Table[Journey Alias]), filter(allselected(Table), Table[Journey Alias] =max(Table[Journey Alias])))),"Complaint","Not Complaint")