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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
df123445
Helper II
Helper II

different row colors depending on a specific column value

I have a table with a bunch of rows and I would like to highlight some of them with a different color, the condition should be set

by a column that is not shown in the table.

 

example, I have this data:

Line 1aaalevel 1
LIne 2bbb

level 1

LIne 3cccLevel 2
LIne 4dddLevel 3

 

The table should show the following:

LIne 1aaa
Line 2bbb
LIne 3ccc
Line 4ddd

 

With lines 1 and 2 in a different color (due to paramenter "Level 1")

 

 

Anyone knows if it's feasible?

 

Many thanks in advance 

2 ACCEPTED SOLUTIONS
Ritaf1983
Super User
Super User

Hi @df123445 

Yes, you don't need to have a column of condition on your visual.

Ritaf1983_0-1690514785858.png

Link to demo file 

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

Hi @df123445 

1. You can create a measure for the desired legend :

Ritaf1983_0-1690565488271.png

circles are from here :

https://getemoji.com/assets/#objects

(just choose these you need and copy and paste them into the measure)

 

2. Add "I" or another button to your table:

Ritaf1983_1-1690565695913.pngRitaf1983_2-1690565733257.png

3. Add a tooltip to the button with your legend measure

Ritaf1983_3-1690566017942.pngRitaf1983_4-1690566078771.png

result :

Ritaf1983_5-1690566118294.png

You can group this "button" with the table

Ritaf1983_6-1690566189162.png

The demo file is also updated.

Link to the demo file 

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

 

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

4 REPLIES 4
Ritaf1983
Super User
Super User

Hi @df123445 

Yes, you don't need to have a column of condition on your visual.

Ritaf1983_0-1690514785858.png

Link to demo file 

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Fantastic, many thanks indeed.

 

Do you know if there's a way to add some text inside the table box in order 2 explain what each color means?

 

In that example would be something like 

"red = 1"

"blue = 2"

 

Ideally showing a little box with the color.

 

Many thanks

 

 

 

 

 

Hi @df123445 

1. You can create a measure for the desired legend :

Ritaf1983_0-1690565488271.png

circles are from here :

https://getemoji.com/assets/#objects

(just choose these you need and copy and paste them into the measure)

 

2. Add "I" or another button to your table:

Ritaf1983_1-1690565695913.pngRitaf1983_2-1690565733257.png

3. Add a tooltip to the button with your legend measure

Ritaf1983_3-1690566017942.pngRitaf1983_4-1690566078771.png

result :

Ritaf1983_5-1690566118294.png

You can group this "button" with the table

Ritaf1983_6-1690566189162.png

The demo file is also updated.

Link to the demo file 

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

 

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Glad to help and yes.

I explained in other discussion include demo. Will attach a liink later ( not near computer now)

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.