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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
TXT0VBI
Frequent Visitor

Color coding based on row selected

If we have a table and we select one particular row of the table then the values in the tables should be color coded based on the selected row values. For example if we select a project name then the values of all the projects in the table should be color coded based on the selected project values. In the below example if we select Trina Project then all the columns in the table $/ product1,$/product 2,$/Product3 should be color coded based on the Trina row values $/ product1,$/product 2,$/Product3

 

ProjectProduct  $/product1 $/Product2$/Product 3
JinkoP Type Bifacial$0.3750 $   1,795 $       601
JinkoN Type Bifacial$0.3900 $   1,779 $       586
TrinaP Type Bifacial$0.4350 $   1,859 $       614
LONGi $0.3000 $   1,704 $       579
6 REPLIES 6
AliceW
Power Participant
Power Participant

Create a new column where you assign numerical values to the projects; say, Trina is 1, Jinko is 2 etc.

Then format all columns in the tabme (Format, Cell Elements, Background Color, format style, Rules). There, if value =1, then, say, the color green.

Thank you, I want the gradient coloring and it should change based on the selection of project. If I select Trina project then in column $/Product 3 the values should be gradiently colored according to 614 value i.e. values in $/Product3 below 614 should be gradiently green and the values in $/Product3 above  614 should be gradiently red. Same gradient coloring should happen with other columns based on Trina as well. I also need how to give that selection of each project as well as when I give slicer it is filtering but not selecting that project. I created a new table with Project column alone and trying it but need help how to proceed after that and create a selection.

AliceW
Power Participant
Power Participant

I don't think you can condition colors based on two columns.

Can I give an additional column and give value name 'base' corresponding to the Project row I want to consider as base and give a selection box either from different table or same table to change the value 'base' of the additional column dynamically to the corresponding row based on the selection and give any condition like if the column value is 'base' or not blank then format other values in columns based on this row?

Anonymous
Not applicable

@TXT0VBI what is the condition that you want to apply to the column values here?

 

 

If we select Trina then the values $/product1,$/product2,$/product 3 of trina should become the base values then rest of the projects $/product1,$/product2,$/product 3 values should color code according to Trina values 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.