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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Erika_S
Helper I
Helper I

Conditional formatting with more than one condition where values are not numerical?

Hi all,

Hope someone could help.

Well, i was trying and haven't succeeded yet - to conditionally format columns based on other columns value that is not numerical. So for Example - column 1 - Manager name, column 2 - Employee names, column 3 - Country,  and i want to highlight all Employees who have manager Judy and are in Spain. (for example) 🙂 So its based on values that are not numbers. 

 

Can anyone help me with that? I use June 2019 Desktop version. 

 

Thanks a million.,

erika

2 ACCEPTED SOLUTIONS

Hi @Erika_S 

Yes,you can.For example:

Measure 2 = SWITCH(TRUE(),MAX(Table1[Manager name])="Judy"&&MAX(Table1[Country])="Spain",1,2)

Regards,

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Can I colour the backgroudn based on the result in the column, rather than creating new column with value 1 and 2?  Say Colour Manager name - Judy yellow, if name is Judy and Country is spain?

 

If not possible, this is a solution as well.  🙂

 

Thank you so much,

erika

View solution in original post

6 REPLIES 6
v-cherch-msft
Microsoft Employee
Microsoft Employee

Hi @Erika_S 

You may create a measure then use conditional formatting for Employee names like below:

Measure = IF(MAX(Table1[Manager name])="Judy"&&MAX(Table1[Country])="Spain",1,2)

a1.png

Regards,

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Sounds really good !

 

Could I switch the IF for SWITCH, and use multipple conditions? do I use && if i want to say "this condition and this one"?

 

Sorry if my questions very simple.

 

Thank you for your help! its so helpful.

 

erika

Hi @Erika_S 

Yes,you can.For example:

Measure 2 = SWITCH(TRUE(),MAX(Table1[Manager name])="Judy"&&MAX(Table1[Country])="Spain",1,2)

Regards,

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Can I colour the backgroudn based on the result in the column, rather than creating new column with value 1 and 2?  Say Colour Manager name - Judy yellow, if name is Judy and Country is spain?

 

If not possible, this is a solution as well.  🙂

 

Thank you so much,

erika

Thank you, that works!! 🙂

 

erika

evandrocunico
Resolver III
Resolver III

Hi @Erika_S , have you tried to create a new column and fill with a color (hexa), and use field value (new column) on conditionally format?

 

Regards.

 

Evandro

Helpful resources

Announcements
October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors