cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
RachitBhatnagar Frequent Visitor
Frequent Visitor

Colour Table Cell by Text Value

I have created a calculated column in Power Bi Desktop in Table Visualization. The cell values in the columns contain Black, Blue and Red. I want to colour the cells based on these cell values present in the calculated column. I want Blue cell in the table to have Conditional Formating-> Background as Blue colour background and Red cell fields as Red colour background. How to solve this issue?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
rajendran Super Contributor
Super Contributor

Re: Colour Table Cell by Text Value

 

Hi @RachitBhatnagar

 

Create a measure like this:

 

color = MAXX(Table1,IF(Table1[Product]="Green",1,IF(Table1[Product]="Yellow",2)))

 

Then apply conditional format in your column using this measure:

 

colour.JPG 

Thanks

Raj

2 REPLIES 2
RachitBhatnagar Frequent Visitor
Frequent Visitor

Colour Cell based on Text Values in it

I have created a calculated column in Power Bi Desktop in Table Visualization. The cell values in the columns contain Black, Blue and Red. I want to colour the cells based on these cell values present in the calculated column.

I want Blue cell in the table to have Conditional Formating-> Background as Blue colour background and Red cell fields as Red colour background.

How to solve this issue?

Highlighted
rajendran Super Contributor
Super Contributor

Re: Colour Table Cell by Text Value

 

Hi @RachitBhatnagar

 

Create a measure like this:

 

color = MAXX(Table1,IF(Table1[Product]="Green",1,IF(Table1[Product]="Yellow",2)))

 

Then apply conditional format in your column using this measure:

 

colour.JPG 

Thanks

Raj

Helpful resources

Announcements
Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Summit North America

Power Platform Summit North America

Register by September 5 to save $200

Virtual Launch Event

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Users Online
Currently online: 6 members 1,612 guests
Please welcome our newest community members: