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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
winterbloom
Frequent Visitor

Conditional formatting stops when adding measure

Hi all,

 

I have a weird issue I hope you can help me with.

 

Background info: I am attempting to set up an Income Statement using this method: 

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

 

I have added my report structure via a connected Excel file. I want to add conditional formatting to highlight certain rows, if they are headings or subtotal. To do that, I have a column in excel "Highlight" that is 1 if it should be formatted or 0 if not.


I set up my conditional formatting like this:

winterbloom_0-1688690178163.png

The same rule for font colour. It works perfectly.

 

HOWEVER, when I go to add a measure to the table, the formatting disappears:

winterbloom_1-1688690264780.png

The measure is a SWITCH statement, if that has any relevance.

 

I can still see the conditional formatting rules, but they are obviously not applying.

 

Any assistance appreciated. Thank you. 

3 REPLIES 3
winterbloom
Frequent Visitor

@amitchandak 

Actually, I got ahead of myself. I just applied conditional formatting to the Note column (background if text = Blue) and it works:

winterbloom_0-1688971465200.png

 

However, as soon as I remove the Colour measure from the visual, the formatting disappears.

 

winterbloom_1-1688971495576.png

Very frustrating. 

amitchandak
Super User
Super User

@winterbloom , That is strange.

If the highlight is a column create a measure like the one below and use that in conditional formatting using the field value option

 

If(round(max(Table[highlight]),0) =1, "Blue", "white")

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

@amitchandak 

Thank you! It worked, as a work around.

 

winterbloom_0-1688971101635.png

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.