Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
Deart Colleagues,
Could you help me with DAX mesure or calculate colums for below table please!
Region | District | Staus | Nbr_Fail | Nbr_Fail | % FAIL and PASS |
R1 | RD11 | Fail | |||
R1 | RD15 | Pass | |||
R1 | RD12 | ||||
R1 | RD13 | Pass | |||
R3 | RD38 | Fail | |||
R2 | RD21 | Pass | |||
R3 | RD36 | Pass | |||
R2 | RD22 | Fail | |||
R2 | RD23 | Pass | |||
R1 | RD16 | Fail | |||
R3 | RD31 | Pass | |||
R1 | RD14 | ||||
R3 | RD32 | Pass | |||
R3 | RD33 | Pass | |||
R3 | RD37 | Fail | |||
R3 | RD34 | Pass | |||
R3 | RD35 | Fail |
Solved! Go to Solution.
Hi @dofrancis3 ,
Your requirements are a bit vague. I don't know if my understanding is correct. Please correct me if I misunderstand your requirements.
My understanding is that you want to calculate the percentage of failures and passes.
Please try:
Create 2 measures to count the total number of fail and pass.
Total Fail = COUNTROWS(FILTER('Table', 'Table'[Staus] = "Fail"))
Total Pass = COUNTROWS(FILTER('Table', 'Table'[Staus] = "Pass"))
Create 2 measures to calculate the percentage of fail and pass.
% Fail = DIVIDE([Total Fail], [Total Fail] + [Total Pass], 0)
% Pass = DIVIDE([Total Pass], [Total Fail] + [Total Pass], 0)
The final page effect is as follows:
pbix file is attached.
If you have any further questions please feel free to contact me.
Best Regards,
Yang
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
Hi @dofrancis3 ,
Your requirements are a bit vague. I don't know if my understanding is correct. Please correct me if I misunderstand your requirements.
My understanding is that you want to calculate the percentage of failures and passes.
Please try:
Create 2 measures to count the total number of fail and pass.
Total Fail = COUNTROWS(FILTER('Table', 'Table'[Staus] = "Fail"))
Total Pass = COUNTROWS(FILTER('Table', 'Table'[Staus] = "Pass"))
Create 2 measures to calculate the percentage of fail and pass.
% Fail = DIVIDE([Total Fail], [Total Fail] + [Total Pass], 0)
% Pass = DIVIDE([Total Pass], [Total Fail] + [Total Pass], 0)
The final page effect is as follows:
pbix file is attached.
If you have any further questions please feel free to contact me.
Best Regards,
Yang
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
Please provide a more detailed explanation of what you are aiming to achieve. What have you tried and where are you stuck?
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
User | Count |
---|---|
11 | |
6 | |
3 | |
3 | |
3 |
User | Count |
---|---|
11 | |
9 | |
8 | |
8 | |
7 |