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
Anonymous
Not applicable

Compare values and conditional formatting

I have a table of products that have scores.  In the example below, I want to compare a product (using a slicer) to Product C.

MikeBlairTP_0-1679589068283.png

 


If some selects Product A or B from the slicer then it will compare against the scores for Product C.

 

I also need to use conditional formating to highlight green or a green icon when the score for product c is lower than the select product.

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , Assume you have selected Product A from slicer

 

the value of product C for measure

 

C = calculate([Measure] , Table[product] ="C")

 

Value of A is [Measure]

 

You can take diff, use that in conditional formatting using filed value option

 

Compare Categorical Data Using Slicers - Compare two Brands: https://youtu.be/exN4nTewgbc

 

How to do conditional formatting by measure and apply it on pie?
https://www.youtube.com/watch?v=RqBb5eBf_I4&list=PLPaNVDMhUXGYo50Ajmr4SgSV9HIQLxc8L
https://community.powerbi.com/t5/Community-Blog/Power-BI-Conditional-formatting-the-Pie-Visual/ba-p/1682539
https://amitchandak.medium.com/power-bi-where-is-the-conditional-formatting-option-in-new-format-pane-66e0afcb15f3

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Thank you for the video.  I create a new measure and can display both value from two independent slicers 🙂

 

But the conditional formatting is still confusing me.  I now want to compare both values, high one green (track record) if lower than (tp track track record) otherwise red.

 

MikeBlairTP_0-1679596913619.png

 

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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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.