Forum Discussion
Power BI Theme : Table
Hi,
Regarding Power BI Theme, which you can create as JSON file. has anyone know what is the tag name for Table -Style ?
I know the visual name 'tableEx', but when I added tag "Style", my theme does not make affect. I try to click Revert to default, so it will look into the imported themes, but the style not changing. I want to make it as "Alternating rows" as default.
Example of the snippet code of JSON themes :
"tableEx": {
"*": {
"columnHeaders": [{
"fontColor": { "solid": { "color": "#f2f2f2"}},
"backColor": { "solid": { "color": "#999999"}}
}],
"style": [{
"style": "Alternating rows"
}],
"values": [{
"fontColorPrimary": { "solid": { "color": "#e5e5ff"}}
}]
}
Thanks
4 Replies
- jdbuchanan71Super User
Hello admin_xlsior ,
I couldn't find the Style card in the theme documentation which makes me guess it's not available?
https://docs.microsoft.com/en-us/power-bi/desktop-report-themes
I think the styles are mainly pre-defined formats on the grid for things like row padding which you can set individually. A site that has helped me when looking for the name of the thing I am trying to format is.
https://powerbi.tips/tools/report-theme-generator-v3/
Take a look at the entries under the Table section.
- admin_xlsiorPost Prodigy
Hi,
yes, I look the same resources.
Ok then thanks.:manhappy:
- AnonymousNot applicable
You forgot a closing braces at the end, that should probably fix it.
- MarkWojoFrequent Visitor
For those looking in the future, the attribute should be called stylePreset:
https://github.com/Apress/pro-power-bi-theme-creation/blob/main/Attributes_Table.json