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
Anonymous
Not applicable

Conditionally formatting multiple fields in a matrix

@ links to members, content
 
I am trying to coditionall format a matrix with four colors.  Issue, when I get into conditionally formatting background color and I use diverge, I can only set up 3 colors.  I need to color code 4 colors.  See sample table below.  The work hours should be colo
 
EmpoyeeWork DateCategoryWork HoursColor Code
Jane Dow1/1/2019Labor Salary8

Green

Jane Doe1/5/2019Vacation10Orange
John Dow2/2/2019Holiday12Black
Jane Dow2/15/2019Labor Daily8Green
Jane Doq1/31/2019Labor Hourly10Green
John Doe1/31/2019Missing Time0Pink

 

1 ACCEPTED SOLUTION

@Anonymous , created this file you. Hope this works for you

https://www.dropbox.com/s/5xubpa67hdaquxg/ColorMeasure.pbix?dl=0

 

Appreciate your Kudos.

 

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@Anonymous 

In diverge, you can three colors, but you can four colors based on condition. Refer

https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting

 

Anonymous
Not applicable

@amitchandak  I have read this document several times.  The options in this document does not work as I will need to change the background colors for work hours based on the category field.  This does not solve my issue.  Thanks

 

@Anonymous , created this file you. Hope this works for you

https://www.dropbox.com/s/5xubpa67hdaquxg/ColorMeasure.pbix?dl=0

 

Appreciate your Kudos.

 

Anonymous
Not applicable

@amitchandak Thank you so much!  This is what I was looking for, I did not know how to write the DAX formula!  You rock!!

 

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.