Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
In the above table i want a column "Overall Status" next to Status, which should show 'Pass' or 'Fail' for each Name.
Condition : Show 'Pass' only if the person have Pass in all subject else show 'Fail' in "Overall Status"
Solved! Go to Solution.
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
Hello @Anonymous ,
Try this calculated column in DAX :
Kind regards,
Rohit
Please mark this answer as the solution if it resolves your issue.
Appreciate your kudos! 😊
Hi @rohit_singh
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.
can you please confirm what should i put at highlight text
if (CONTAINSSTRING(_grades, "Fail"), "Fail", "Pass" )
Hi @Anonymous ,
_grades is a a variable that we have created.
Kind regards,
Rohit
Please mark this answer as the solution if it resolves your issue.
Appreciate your kudos! 😊
Big Thank
just last help if its possible to show only one value for each Name in Overall status
Currently its showing for each status row.
For each name there should be only one Overall status value, not repeating values.
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
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.
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
Hi @Anonymous
I'd like to make a small modification based on @selimovd 's solution. Replace BLANK() with "".
Best Regards,
Community Support Team _ Jing
HI @Anonymous ,
Create a column as below:-
Overall status =
var result = COUNTROWS(FILTER('Table','Table'[status] = "Fail" && 'Table'[Name]= EARLIER('Table'[Name])))
return IF(result>0,"Fail","Pass")
Output:-
Regards,
Samarth
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
94 | |
87 | |
82 | |
71 | |
49 |
User | Count |
---|---|
143 | |
123 | |
107 | |
61 | |
55 |