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
IngersollB
New Member

Conditional Format-row above compared to row below

PLEASE help!!!  LOL  I have an issue where I am comparing the Actual number(Top Row,1.2022A)) to the budgeted number(Row Beneath, 2.2022B).  If the Actual is <= Budget then "Green" if greater than > Budget then "Red" I need this done across the "Actual" row

 

Table is: 'DSO Total Days'

 

Was easy to accomplish in excel.  I have to do this for different regions(see below)

IngersollB_0-1661373465203.png

 

IngersollB_1-1661373590824.png

 

 

 

1 REPLY 1
amitchandak
Super User
Super User

@IngersollB , You can create a measure and use that in conditional formatting using field value option. But in matrix you can only do conditional formatting on values

 

Color =

if([Actual] <= [Budget] , "Green", "Red")

 

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/...
https://amitchandak.medium.com/power-bi-where-is-the-conditional-formatting-option-in-new-format-pan...

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.