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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
shanerolle
Frequent Visitor

Alternate Background Color of Row based on Value

Good afternoon,

 

I have a table that shows a bunch of rows of data from a QA software, and the way I have the data displayed it may show multiple rows for the same item if it has a few different issues. See the example below from excel (confidential data in PBI), but esentially if there are multiple errors on one item, it will list multiple rows.

 

I would like to be able to alternate the background color each time it goes to a new item, so in my examples all of the "100 - 194.001" values should be highlighted the same color, then when it goes to "100 - 195.001" it should go to a new color, then back once it get to the next item, etc - in a sense I am trying to group the lines based on the item by highlighting the rows.

 

Currently, it just highlights the alternating rows and doesn't do any sort of grouping.

 

Is what I am trying to do possible? I know it can likely be done better in a matrix, but the end user really strongly prefers to have it in a table instead of a matrix. I don't know if I am properly explaining myself or the question, so if there is any additional information needed, please let me know and I will do my best to fill in blanks.

 

CURRENT DATA FORMAT

shanerolle_0-1718727899938.png

 

 

IDEAL DATA FORMAT

shanerolle_1-1718727958277.png

 

 

 

Thank you,

Shane

1 ACCEPTED SOLUTION
rajendraongole1
Super User
Super User

Hi @shanerolle - Can you try the below solved logic in your table chart for similar category row color code.

Solved: Coloring rows based on values in other rows - Microsoft Fabric Community

 

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

1 REPLY 1
rajendraongole1
Super User
Super User

Hi @shanerolle - Can you try the below solved logic in your table chart for similar category row color code.

Solved: Coloring rows based on values in other rows - Microsoft Fabric Community

 

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

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

Top Kudoed Authors