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

Top Solution Authors