Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hi
I have the below table, the number of students is a count of the students ID and the % of total is the students ID but as a percentage of the row total. I want to format the background colour but just for the % of total column which are RED. I want to coulor the background Red if it is over 10%, Amber if it is 3-9% and Green if under 3%. Is there a way to do this?, thanks for any help
Solved! Go to Solution.
Hi, @WJ876400
According to your description and sample picture, you want to set the conditional format for the [% of Total] for the color Red, right?
You can try my steps:
This is the test data I created according to your sample picture:
Number of students =
COUNTX(FILTER(ALLSELECTED('Table'),[ID]=MAX('Table'[ID])),[ID])% of Total =
var _total=COUNTX(ALL('Table'),[ID])
return
DIVIDE([Number of students],_total )Color format =
SWITCH(
TRUE(),
[% of Total]>0.1,"Red",
[% of Total]<=0.1&&[% of Total]>=0.03,"Orange",
[% of Total]<0.03,"Green"
)
And you can get what you want, like this:
You can download my test pbix file here
If this result is not what you want, you can post some sample data(without sensitive data) and your expected result.
How to Get Your Question Answered Quickly
Best Regards,
Community Support Team _Robert Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @WJ876400
According to your description and sample picture, you want to set the conditional format for the [% of Total] for the color Red, right?
You can try my steps:
This is the test data I created according to your sample picture:
Number of students =
COUNTX(FILTER(ALLSELECTED('Table'),[ID]=MAX('Table'[ID])),[ID])% of Total =
var _total=COUNTX(ALL('Table'),[ID])
return
DIVIDE([Number of students],_total )Color format =
SWITCH(
TRUE(),
[% of Total]>0.1,"Red",
[% of Total]<=0.1&&[% of Total]>=0.03,"Orange",
[% of Total]<0.03,"Green"
)
And you can get what you want, like this:
You can download my test pbix file here
If this result is not what you want, you can post some sample data(without sensitive data) and your expected result.
How to Get Your Question Answered Quickly
Best Regards,
Community Support Team _Robert Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 48 | |
| 40 | |
| 37 | |
| 20 | |
| 16 |
| User | Count |
|---|---|
| 68 | |
| 67 | |
| 30 | |
| 26 | |
| 26 |