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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Datagulf
Responsive Resident
Responsive Resident

Conditional Formatting using a Column value

i want to do Conditional formatting based on a column value. My table is as follows

Person  Qualified
Andrew Yes
Liz No 
Alex Yes
Linda No
Hellen Yes
Angel Yes

The task is to ensure that all that have not qualified are marked Red. Those that have not should be green. 

I have something as the following. Help to correct this.

 

Disqualified Color = IF(VALUE('Qualification[Qualified] = "TRUE", "Red", "Green"))

 


 

1 ACCEPTED SOLUTION
Tahreem24
Super User
Super User

@Datagulf  Follow the below steps:

Step 1: Create a calculated column using below DAX:

Color Column = If('Table'[Qualified]="Yes", "Green","Red")
Step 2: Go to Table and select any field on which you want this color formatting. Let's say Person column. And Choose Field value under Condition formatting and select Color Column (step1)
Step 3: You'll see color formatting as per rule applied
Capture.JPG
Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

View solution in original post

5 REPLIES 5
Tahreem24
Super User
Super User

@Datagulf  Follow the below steps:

Step 1: Create a calculated column using below DAX:

Color Column = If('Table'[Qualified]="Yes", "Green","Red")
Step 2: Go to Table and select any field on which you want this color formatting. Let's say Person column. And Choose Field value under Condition formatting and select Color Column (step1)
Step 3: You'll see color formatting as per rule applied
Capture.JPG
Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

This is what I get @Tahreem24 

Datagulf_0-1670231176024.png

 

@Datagulf , If you see my post so I haven't used MAX. Simply use column and follow those steps so you'll get just like my output screen shot.

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard
amitchandak
Super User
Super User

@Datagulf , Try a measure like

 

Disqualified Color = IF(Max('Qualification'[Qualified]) = "Yes", "Red", "Green")

 

How to do conditional formatting by measure and apply it on pie?
https://www.youtube.com/watch?v=RqBb5eBf_I4&list=PLPaNVDMhUXGYo50Ajmr4SgSV9HIQLxc8L
https://community.powerbi.com/t5/Community-Blog/Power-BI-Conditional-formatting-the-Pie-Visual/ba-p/...
https://amitchandak.medium.com/power-bi-where-is-the-conditional-formatting-option-in-new-format-pan...

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

This is what I get @amitchandak 

Datagulf_1-1670231235692.png

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors