Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi there,
I have a table of data and each row has an ID. There are two rows per ID. I would like to use Table formatting to somehow highlight that the two rows relate to each other, so like the alternate background colour but forcing it to be the same for the two matching ID rows? Is there any way to do this using a measure and Cell element rules?
Solved! Go to Solution.
@JemmaD ,
Search "power bi format table by category"
I found this link
https://community.fabric.microsoft.com/t5/Desktop/Alternate-row-colour-after-7-rows-after-each-new-g...
EvenOdd = IF(ISEVEN(RANKX(ALLSELECTED(DailyROCStats),CALCULATE(SELECTEDVALUE(DailyROCStats[QueueDate])),,ASC,Dense)) = TRUE(),1,0)
I used [QueueDate] as my Category. Believe you will use your [ID] field.
Hope this helps.
Regards,
@JemmaD ,
Search "power bi format table by category"
I found this link
https://community.fabric.microsoft.com/t5/Desktop/Alternate-row-colour-after-7-rows-after-each-new-g...
EvenOdd = IF(ISEVEN(RANKX(ALLSELECTED(DailyROCStats),CALCULATE(SELECTEDVALUE(DailyROCStats[QueueDate])),,ASC,Dense)) = TRUE(),1,0)
I used [QueueDate] as my Category. Believe you will use your [ID] field.
Hope this helps.
Regards,
Thanks @rsbin this worked perfectly. I had to change the default summarisation to Don't Summarize, then I got 0 and 1 in alternate rows for [ID]. I then added conditional formatting to all columns in the table using an average of this new calculated column using Gradient so min is white and max is grey and it splits the table up perfectly. Thank you!
@JemmaD ,
Left out the finer details in my Reply. Glad you were able to complete the final steps and get it working for you.
Regards,
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
72 | |
70 | |
37 | |
29 | |
26 |
User | Count |
---|---|
91 | |
49 | |
44 | |
38 | |
37 |