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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

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
Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

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

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