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
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
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.

60 days of Data Days Carousel

Data Days 2026

Join Fabric 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.