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.
Hello,
I'm trying to color-code the values in the matrix based on a measure that I created. Basically, if the value falls within the range of the measure (Calibration Range at the top) have a green background color, otherwise orange. I've been at it for days and still can figure it out.
This is the formula for my measure (data type - Decimal number):
Moreover, the option to format style based on the Field value is not allowing me to pick a field.
Thank you in advance for your time.
Solved! Go to Solution.
Hi @ranghel you can create a dynamic measure for it based on your condition that will retunt true o false.
please refer to my answer including the sample file here :
for more detailed answers I need some Pbix files to work with.
You can fix it in 3 steps:
1. Set one color in the measure without any conditions
2. Set this measure for visualization
3. Set the right condition in the measure to calculate the color
p.s. Setting the measure type as "Text" has helped in the past, but that no longer works for me now
You can fix it in 3 steps:
1. Set one color in the measure without any conditions
2. Set this measure for visualization
3. Set the right condition in the measure to calculate the color
p.s. Setting the measure type as "Text" has helped in the past, but that no longer works for me now
Hi @ranghel
To format by measure try to select "rules "
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
Thank you @Ritaf1983. Unfortunately, it doesn't work because I don't have a fixed value to use in the rule. My values always change based on my slicer selection.
Hi @ranghel you can create a dynamic measure for it based on your condition that will retunt true o false.
please refer to my answer including the sample file here :
for more detailed answers I need some Pbix files to work with.
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 |
|---|---|
| 79 | |
| 38 | |
| 31 | |
| 27 | |
| 27 |