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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
dbldee5
Frequent Visitor

Conditional formatting

If I can get any help with this, it would be awesome. I have a table that has 3 text columns in the rows:

Course

Modality

Part of term

 

I want to add a conditional format of Red to the Course Row if it is a certain percent filled

I want to add a conditional format of Yellow to the Modality row if it is a certain percent filled

I want to add a conditional format of Green to the Part of Term row if it is a certain percent filled

 

 

dbldee5_0-1723739115659.png

 

1 ACCEPTED SOLUTION

Hi Sam

WOW!! this is perfect and worked!!

one more question. This is what the table looks like now.. is there a way to add the same color to the column with the words? on the Course, part of Term and Modality

 

dbldee5_0-1723812163224.png

 

 

View solution in original post

4 REPLIES 4
SamWiseOwl
Super User
Super User

Hi @dbldee5  you could do this with a SWITCH and ISFILTERED:
colour measure =
Switch(
true()
,isFiltered(table[Term]) && [Percent] > X,"Green"
,isFiltered(table[Modality]) && [Percent] > X ,"Yellow"
,isFiltered(table[Course]) && [Percent] > X ,"Red")

 

You test the inner most row first and then work outwards.


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

Hi Sam

WOW!! this is perfect and worked!!

one more question. This is what the table looks like now.. is there a way to add the same color to the column with the words? on the Course, part of Term and Modality

 

dbldee5_0-1723812163224.png

 

 

I don't believe so sadly 😞


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

Hi Sam, 

I accepted this as a solution. Do you know if I will be able to color the first column with the labels the same way?

Thanks

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.