Showing results for 
Search instead for 
Did you mean: 
osama Frequent Visitor
Frequent Visitor

table conditional cell background color

I want to make a Table with a conditional cell background color, like if the cell value is greater then 6 it colors turn red else green.


Thanks in advance.

greggyb New Contributor
New Contributor

Re: table conditional cell background color

This belongs in the Desktop forum.


This functionality is not currently available. Vote here.

alex-potter Regular Visitor
Regular Visitor

Re: table conditional cell background color

Don't worry, you posted in the right section - its certainly a Power BI development quandry. 

The only way I have done this before is using a custom visual that uses JQuery in its update function to re-style the cells in the out of the box table visual based off of their value. 

Alternatively, you can create your own table visual using just javascript to generate the HTML elements from a table dataview, or use d3. 

-Alex Potter

Alex Potter
Lead Visualization Engineer
Luxoft Inc.
greggyb New Contributor
New Contributor

Re: table conditional cell background color

@alex-potter, I guess we could both be right. I was interpretting this as a question about such functionality in native table visualizations in PBI.


Creating a custom visual is certainly an option as well (:

noor Frequent Visitor
Frequent Visitor

Re: table conditional cell background color

@alex-potter @greggyb Could you guys please help me out. I am very struck in an issue. 

I need to draw a table have some images columns. Has somebody already made this custom visual or do I need to create custom. If I need to create a new custom how can I do that? Please check the below attachment




Helpful resources

Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

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

Top Kudoed Authors
Users Online
Currently online: 147 members 1,947 guests
Please welcome our newest community members: