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! It's time to submit your entry. Live now!
Hello,
I'm using conditional formatting in a matrix to set the background color based on color scale. However, when all the values in the column are zero (not null or blank), the color defaults to using the maximum color instead of the minimum color.
Is there a way to change this behavior to use the minimum color instead? Rather than setting the values to null, as I need to keep them as zeros to include them in averages.
EDIT: Image for clarity
Thank you,
Curtis
I understand this is expected behavior, I'm asking if it's possible to change this behavior through some Power BI guru magic!
Did you ever get this solved?
I am running into the exact same problem.
@Anonymous
The Guru magic is then found in DAX. Create a DAX forumla and use it your Matrix.
Regards
Amine Jerbi
If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook
How would I get DAX to emulate what I'm looking for? As far as I can tell, if all values remain the same (i.e. zero) the result will be the same (maximum color scale).
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 69 | |
| 54 | |
| 38 | |
| 27 | |
| 22 |
| User | Count |
|---|---|
| 136 | |
| 119 | |
| 55 | |
| 37 | |
| 31 |