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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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
v-xinruzhu-msft
Community Support
Community Support

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
v-xinruzhu-msft
Community Support
Community Support

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.