Forum Discussion
DAX calculation
- 4 years ago
Hey Anonymous ,
sure, you can expant the criteria for other cases.
You could separate them with the double pipe "||" or you use the IN operator:
Overall Status = IF ( CALCULATE ( COUNTROWS ( MyTable ), ALLEXCEPT ( MyTable, MyTable[Name] ), MyTable[Status] IN { "Fail", "N/A", BLANK () } ) > 0, "Fail", "Pass" )If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
Best regards
Denis
Blog: WhatTheFact.bi
Follow me: twitter.com/DenSelimovic
Hey Anonymous ,
as I understood you want it as a calculated column.
Then the following approach would work:
Overall Status =
IF (
CALCULATE (
COUNTROWS ( MyTable ),
ALLEXCEPT ( MyTable, MyTable[Name] ),
MyTable[Status] = "Fail"
) > 0,
"Fail",
"Pass"
)
The result would look like that:
You could also solve that with a measure.
If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
Best regards
Denis
Blog: WhatTheFact.bi
Follow me: twitter.com/DenSelimovic
- Anonymous4 years agoNot applicable
Hi selimovd
In the above scenario i also want to check if any "Status" value for the "Name" is blank or N/A then also "Overall Status" should show "Fail"
Note: blank is not string, its just empty column.- selimovd4 years agoMost Valuable Professional
Hey Anonymous ,
sure, you can expant the criteria for other cases.
You could separate them with the double pipe "||" or you use the IN operator:
Overall Status = IF ( CALCULATE ( COUNTROWS ( MyTable ), ALLEXCEPT ( MyTable, MyTable[Name] ), MyTable[Status] IN { "Fail", "N/A", BLANK () } ) > 0, "Fail", "Pass" )If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
Best regards
Denis
Blog: WhatTheFact.bi
Follow me: twitter.com/DenSelimovic
- v-jingzhang4 years agoCommunity Support
Hi Anonymous
I'd like to make a small modification based on selimovd 's solution. Replace BLANK() with "".
Best Regards,
Community Support Team _ Jing