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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
rwong1
Helper III
Helper III

Color Formatting Table Entire row

Hi,

 

I need to do conditional coloring based on the sales stage.  For example, final committee review and due diligence will be red, term sheet negotiation will be yellow, and collecting information will be green.  Presume the below is the table that's in Power Bi.  This is a table, not a matrix.  Also I need the entire row highlighted in those colors, not just the sales stage column.

 

Opportunity Name

Facility Size

Expected Close Date

Sales Stage

xxxx

 $       6,000,000

3/31/2020

Contract Negotiation

xxxx

 $       5,000,000

2/28/2020

Contract Negotiation

xxxx

 $    20,000,000

3/31/2020

Due Diligence

xxxx

 $    10,000,000

3/27/2020

Term Sheet Negotiation

xxxx

 $    22,000,000

4/30/2020

Term Sheet Negotiation

xxxx

 $       6,000,000

3/26/2020

Collecting Information

xxxx

 $    20,000,000

3/31/2020

Collecting Information

xxxx

 $    18,000,000

3/31/2020

Collecting Information

xxxx

 $       4,000,000

3/31/2020

Collecting Information

xxxx

 $    20,000,000

4/3/2020

Collecting Information

xxxx

 $       3,000,000

4/23/2020

Collecting Information

xxxx

 $       5,000,000

4/3/2020

Collecting Information

xxxx

 $       5,000,000

4/10/2020

Collecting Information

TOTAL

$144,000,000

 

 

1 ACCEPTED SOLUTION
Samarth_18
Community Champion
Community Champion

Hi @rwong1 ,

 

Create a measure as below and use it conditional formating for all the columns.

_conditional_color = SWITCH(TRUE(),
MAX('Table'[Sales Stage]) = "Due Diligence","red",
MAX('Table'[Sales Stage]) = "Term Sheet Negotiation","Yellow",
MAX('Table'[Sales Stage]) = "Collecting Information","Green")

Samarth_18_0-1667977912451.png

 

Refer a file below:-

 

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

View solution in original post

4 REPLIES 4
rwong1
Helper III
Helper III

Thank you.  That worked.

Just a question, where can I find the color names that Power Bi allows?  I like red but I may want a lighter version of red.

@rwong1 , As far as I know there is no color limitation. If you wanted to add any other color then replace color name with hexa color code.

You can pick color code from below website:-

https://www.w3schools.com/colors/colors_picker.asp

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

Samarth_18
Community Champion
Community Champion

Hi @rwong1 ,

 

Create a measure as below and use it conditional formating for all the columns.

_conditional_color = SWITCH(TRUE(),
MAX('Table'[Sales Stage]) = "Due Diligence","red",
MAX('Table'[Sales Stage]) = "Term Sheet Negotiation","Yellow",
MAX('Table'[Sales Stage]) = "Collecting Information","Green")

Samarth_18_0-1667977912451.png

 

Refer a file below:-

 

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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

Top Solution Authors