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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Employee
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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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