Skip to main content

Power BI

New

Set All "Visual Header" Options with Custom Theme

Vote (56) Share
Kevin H's profile image

Kevin H on 06 Oct 2018 00:11:14

There is now a "Visual header" card on all data visualizations. I would like to be able to set all properties in this card in my .json custom report theme file.

Including: Background color, Border, Transparency, Icon color, and about a dozen On/Off toggles.

Comments (4)
Kevin H's profile image Profile Picture

86f2d4a5 df55-445d-b8a8-a992f75e4841 on 05 Jul 2020 23:54:21

RE: Set All "Visual Header" Options with Custom Theme

has anyone figured the on/off toggles out? or is it still not implemented?

Kevin H's profile image Profile Picture

e608f70b 9bd0-4571-a7b6-2244440556c7 on 05 Jul 2020 23:35:07

RE: Set All "Visual Header" Options with Custom Theme

Hi Kevin,

had the same idea. Managed to get it to work this example:


{
"name": "ThemeName",

"visualStyles": {
"*": {
"*": {
"visualHeader": [
{
"foreground": { "solid": {"color": "#FFAA12"} },
"border" : { "solid": {"color": "#FFAA12"} }
}
]
}
}
}
}
I'm running on Version: 2.63.3272.40262 64-bit (October 2018)

This link was great at showing working examples of json config.
https://github.com/deldersveld/PowerBI-ThemeTemplates/blob/master/Slicer.json

Kevin H's profile image Profile Picture

3101328d e4e2-4d82-a3ff-9aefdd878e1e on 05 Jul 2020 23:31:29

RE: Set All "Visual Header" Options with Custom Theme

In the Power BI Desktop feature summary for the 2018-July release, it said "With this month’s update, all visual properties can be formatted through theming, with the exception of properties that require data in advance (e.g. data colors)."

https://powerbi.microsoft.com/en-us/blog/power-bi-desktop-july-2018-feature-summary/#theme

Kevin H's profile image Profile Picture

3101328d e4e2-4d82-a3ff-9aefdd878e1e on 05 Jul 2020 23:31:29

RE: Set All "Visual Header" Options with Custom Theme

And, if you please, the JSON card name and property names/values should all be documented here:

https://docs.microsoft.com/en-us/power-bi/desktop-report-themes