Defining alternate table row colour in theme

Hi there, I have a custom PBI theme (attached). I was wondering if is possible to define this property in the theme

I have looked at this PowerBI-ThemeTemplates/Table.json at master · deldersveld/PowerBI-ThemeTemplates · GitHub but couldn’t quite make sense of it.

Has anyone done this / come across this before? Theme.json (2.7 KB)

1 Like

Hi @Cameron,

I’ve added this bit of code to your JSON to the visualStyles section that changes the “Alternate background color” property for the Table visual:

       "values":[  
          {  
             "backColorSecondary":{"solid":{"color":"#cedaec"}}
          }
       ]

Here’s your file back: Theme.json (2.8 KB)
I hope this is helpful

2 Likes

Thanks @Melissa - you are a gem. Thanks for taking the time to show me the correct syntax.

Cameron

1 Like

Glad I could help out :+1:

please don’t forget to mark the solution to this thread via the elipsis/3 dots (…)
Thanks