Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
aschwegman
Frequent Visitor

Conditional Formatting using measures

I am trying to utilize a measure to conditionally format my matrix to highlight if an item is + or - 5% of the total value. Using the below formula it works like a charm. See the first photos below. But since the number value, "207000" in this case, will change every month I am trying to then use another measure which calculates the same value. When usuing the measure instead of the static number the conditional formmatting doesn't work. See second two photos. Has anyone come across this?

 

Below shows the correct conditional formatting but with static number:

aschwegman_10-1739970646201.png

 

aschwegman_9-1739970632751.png

 

Below shows the conditional formatting using another measure as the threshold value and it is not working properly, I have also proved below that the threshold equals the static figure in the above:

aschwegman_7-1739970544592.png
aschwegman_8-1739970570988.png

 

 

 

aschwegman_6-1739970394138.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @aschwegman 

After testing, when using measure, it can work in my sample.

vxinruzhumsft_0-1740017653185.png

What dax does your threshold measure use, your measure value is shown as 207000 in the card, but you can try to put it in the matrix as well. It may be affected by the filter and show different values. Your conditional formatting may be different for this reason.

 

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @aschwegman 

After testing, when using measure, it can work in my sample.

vxinruzhumsft_0-1740017653185.png

What dax does your threshold measure use, your measure value is shown as 207000 in the card, but you can try to put it in the matrix as well. It may be affected by the filter and show different values. Your conditional formatting may be different for this reason.

 

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.