Skip to main content

Power BI

Needs Votes

Set All "Visual Header" Options with Custom Theme

Vote (64) 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 (5)
Kevin H's profile image Profile Picture

Owen Dostie on 01 Jun 2023 16:44:07

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

Despite being in the .json schema still appears that this feature is not supported.

Kevin H's profile image Profile Picture

Alexander Korn 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

James Foo 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

Kevin H 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

Kevin H 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