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
Hi So I had posted this issue @
https://community.powerbi.com/t5/Desktop/DAX-IF-Criteria/m-p/488629#M227706
From that i had solved an issue to display in a table visualisation those meeting 3 criterias i had listed. However, when i place my measure for the criteria on a card, i get True instead of the count of those meeting the criterias. From the table, i can count that 10 persons met the criteria as seen below:
But as you can see 72 is the total not 10.
My measures are:
See my measures below. I think it is the PassOverall Measure that has the problem since when on a card it says TRUE instead of giving me the count which is 10.
PassOverAll = (AND(AND([PassMath],[PassEng]),[Pass3 Others]))
PassMath = CALCULATE(
COUNTROWS('90080-Laventure Results'),
ALLEXCEPT('90080-Laventure Results', '90080-Laventure Results'[Candidate #], '90080-Laventure Results'[Subject]),
'90080-Laventure Results'[Subject] = "MATH",
'90080-Laventure Results'[Pass Exam] = "pass"
)>0
PassEng = CALCULATE(
COUNTROWS('90080-Laventure Results'),
ALLEXCEPT('90080-Laventure Results', '90080-Laventure Results'[Candidate #], '90080-Laventure Results'[Subject]),
'90080-Laventure Results'[Subject] = "ENGA",
'90080-Laventure Results'[Pass Exam] = "pass"
) >0
Matriculation = DIVIDE([PassOverAll],[Total Candidates])
Solved! Go to Solution.
Hi @akwang
You may try to create a measure to get the total as below:
Measure =
VAR a =
SUMMARIZE ( Table, Table[Candidate], "a1", [PassOverAl] )
RETURN
COUNTROWS ( FILTER ( a, [a1] = TRUE () ) )Regards,
Cherie
Hi @akwang
You may try to create a measure to get the total as below:
Measure =
VAR a =
SUMMARIZE ( Table, Table[Candidate], "a1", [PassOverAl] )
RETURN
COUNTROWS ( FILTER ( a, [a1] = TRUE () ) )Regards,
Cherie
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 132 | |
| 88 | |
| 82 | |
| 68 | |
| 64 |