This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowJuly 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more
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 us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!
Check out the July 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 25 | |
| 23 | |
| 19 | |
| 17 | |
| 14 |
| User | Count |
|---|---|
| 25 | |
| 23 | |
| 20 | |
| 20 | |
| 19 |