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!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.
Greetings,
I hope you are having a blessed day!
I am attempting to add a percentage summary to the end of a matrix in my PowerBI report.
My current Matrix looks like this:
Group | F | P | Total | |
A | 0 | 12 | 8 | 20 |
B | 1 | 4 | 5 | 10 |
C | 1 | 2 | 7 | 10 |
D | 7 | 8 | 15 | |
E | 1 | 7 | 2 | 10 |
R | 1 | 13 | 6 | 20 |
Total | 4 | 45 | 36 | 85 |
I ultimately want the matrix to look like this:
Group | P | F | Total | Pass Percent | |
A | 8 | 12 | 0 | 20 | 40% |
B | 5 | 4 | 1 | 10 | 50% |
C | 7 | 2 | 1 | 10 | 70% |
D | 8 | 7 | 15 | 53% | |
E | 2 | 7 | 1 | 10 | 20% |
R | 6 | 13 | 1 | 20 | 30% |
Total | 36 | 45 | 4 | 85 | -- |
My intuition is that this problem can be solved via a measure, I have tried generating a measure using the following DAX expression:
PassRate =
DIVIDE (
COUNTROWS ( FILTER ( Query1, Query1[Pass] = "P" ) ),
CALCULATE ( COUNTROWS ( Query1 ), ALL ( Query1 ) )
)
However when I try to use the above code, and add it to the Columns or Values field, the table breaks and is filled with 0%s.
What is a way I can add a Percentage column to the first Matrix?
Solved! Go to Solution.
Hi,
If you want to create a column, that is calculated the percentage value of passing based on each row, you could use below code ("Column 4" is the column without any title in your message) :
Hi @TravianMcNavian,
Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or Accept the helpful suggestions to help others who faced similar requirements.
If these also don't help, please share more detailed information to help us clarify your scenario to test.
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng
Hi,
If you want to create a column, that is calculated the percentage value of passing based on each row, you could use below code ("Column 4" is the column without any title in your message) :
Group | What is this column ? | F | P | Total |
A | 0 | 12 | 8 | 20 |
B | 1 | 4 | 5 | 10 |
C | 1 | 2 | 7 | 10 |
D | 7 | 8 | 15 | |
E | 1 | 7 | 2 | 10 |
R | 1 | 13 | 6 | 20 |
Total | 4 | 45 | 36 | 85 |
Greetings,
The column without values is a blank column.
Some sample data is reproduced in the table in this message:
A | P |
A | P |
A | F |
B | |
C | |
D | F |
R | |
E | |
A | P |
B | P |
C | P |
D | F |
E | F |
R | F |
R | F |
R | F |
D | F |
A | F |
A | F |
A | F |
B | F |
C | P |
D | P |
R | P |
E | F |
A | F |
B | F |
C | F |
D | F |
E | F |
R | F |
R | P |
R | P |
D | P |
A | P |
A | F |
A | P |
B | P |
C | P |
D | F |
R | F |
E | F |
A | F |
B | F |
C | P |
D | P |
E | P |
R | F |
R | F |
R | F |
D | F |
A | F |
A | F |
A | F |
B | P |
C | P |
D | P |
R | P |
E | F |
A | P |
B | P |
C | P |
D | F |
E | F |
R | F |
R | F |
R | F |
D | P |
A | P |
A | P |
A | F |
B | F |
C | F |
D | F |
R | F |
E | F |
A | F |
B | P |
C | P |
D | P |
E | P |
R | F |
R | P |
R | P |
D | P |
Warm Regards,
~Travian
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.