Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello All,
I have a table where I have data like below.
Student name and Each subject pass or fail.
| Sutdent Name | Telugu | English | Hindi |
| Maha | P | F | F |
| Rama | F | P | P |
| Raja | F | F | F |
My requirement is I need to show a filter called failed count to the user.
So If he select 1 from the filter then I need to show Rama as he failed in 1 subject
If I select 2 from the filter then I need to show Maha as he failed in 2 subjects.
If I select 3 from the filter then I need to show Raja as he failed in 3 subjects.
I am not able write the DAX calculation for this to get failed count .
Could any one please help how to write this dax calc.
Solved! Go to Solution.
@Anonymous ,
try this in calculated column,
Failed Count = IF(
'Table'[Telugu] = "F",1,0) + IF(
'Table'[English] = "F",1,0) + IF(
'Table'[Hindi] = "F",1,0)
I have attached the pbix file for you to refer.
@Anonymous ,
try this in calculated column,
Failed Count = IF(
'Table'[Telugu] = "F",1,0) + IF(
'Table'[English] = "F",1,0) + IF(
'Table'[Hindi] = "F",1,0)
I have attached the pbix file for you to refer.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 37 | |
| 34 | |
| 31 | |
| 27 |
| User | Count |
|---|---|
| 136 | |
| 99 | |
| 73 | |
| 66 | |
| 65 |