Forum Discussion
JemmaD
1 year agoHelper V
Visual help - conditional formatting
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 alte...
- 1 year ago
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-group/m-p/711053#M343319EvenOdd = 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
1 year agoHelper V
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!