Forum Discussion
Anonymous
4 years agoNot applicable
App status based on component status
Hello community, I need to see the application status based on the component status. Each app consists of several components. As soon one of the component status is red, the whole app status is r...
- 4 years ago
Anonymous you can create this measure:
App Status = IF( HASONEVALUE('Table'[App.]), VAR _current_app = SELECTEDVALUE('Table'[App.]) RETURN IF( COUNTROWS( FILTER( 'Table', 'Table'[App.] = _current_app && 'Table'[Comp. Status] = "red" ) ) > 0, "red", "green" ) )
SpartaBI
Community Champion
4 years agoAnonymous you can create this measure:
App Status =
IF(
HASONEVALUE('Table'[App.]),
VAR _current_app = SELECTEDVALUE('Table'[App.])
RETURN
IF(
COUNTROWS(
FILTER(
'Table',
'Table'[App.] = _current_app && 'Table'[Comp. Status] = "red"
)
) > 0,
"red",
"green"
)
)