Forum Discussion
Aikeno
Helper I
2 years agoMeasure based on several conditions
Hello everyone, I would like to have a measure that would give me the result in the column "Test done" in blue table in my report. Yellow and orange are data table and they are linked by the Pro...
amitchandak
Super User
2 years agoAikeno , Try a measure
Test Done =
VAR _TotalVDV = CALCULATE(
COUNTROWS(vw_vision_activity),
vw_vision_activity[activity category] = "VDV"
)
VAR _ClosedVDV = CALCULATE(
COUNTROWS(vw_vision_activity),
vw_vision_activity[activity category] = "VDV",
vw_vision_activity[activity state] = "Closed"
)
VAR _opendVDV = CALCULATE(
COUNTROWS(vw_vision_activity),
vw_vision_activity[activity category] = "VDV",
vw_vision_activity[activity state] = "Active"
)
RETURN
Switch( true() ,
not(isblank([_opendVDV])), "No",
[_TotalVDV] > [_ClosedVDV], "Yes"
)
The information you have provided is not making the problem clear to me. Can you please explain with an example.
Appreciate your Kudos.