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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
bo_afk
Post Patron
Post Patron

Conditional format between measures

Is it possible to create a conditional format for a measure compared to another measure?

Example

I have 2 measures displayed on separate cards. 

If measure A > measure B, change colour of measure A to RED

If measure A <= measure B, change colour of measure A to GREEN

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@bo_afk , Yes color measure, use in conditional formatting with field value option

 

Color =

if([measureA]>[measureB], "Red", "Green")

 

for steps refer my video

https://www.youtube.com/watch?v=RqBb5eBf_I4

 

or

https://radacad.com/dax-and-conditional-formatting-better-together-find-the-biggest-and-smallest-num...
https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting#color-by-color-values

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

View solution in original post

2 REPLIES 2
v-easonf-msft
Community Support
Community Support

Hi,  @bo_afk 

How would you like to display  this measure , on a card  or on table column?

As of now, conditional formatting is only applicable to Table and Matrix, not to Card visual.

Please refer to this document .

desktop-conditional-table-formatting 

 

 

Best Regards,
Community Support Team _ Eason

 

amitchandak
Super User
Super User

@bo_afk , Yes color measure, use in conditional formatting with field value option

 

Color =

if([measureA]>[measureB], "Red", "Green")

 

for steps refer my video

https://www.youtube.com/watch?v=RqBb5eBf_I4

 

or

https://radacad.com/dax-and-conditional-formatting-better-together-find-the-biggest-and-smallest-num...
https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting#color-by-color-values

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

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors