Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

View all the Fabric Data Days sessions on demand. View schedule

Reply
ThomasWeppler
Super User
Super User

Import json themes for matrix and tabels?

Hi power Bi community

I have made a json script with the help of this guide:
https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-report-themes

I have changed the matrix with this scrpit.

"pivotTable": {
"*": {
"labels": [
{
"color": {
"solid": {
"color": "#E6821E"
}
},
"labelDisplayUnits": "None",
"labelPrecision": 0
}
],
"background": [
{
"show": true,
"color": {
"solid": {
"color": "#193264"
}
},
"transparency": 0
}
],
"border": [
{
"show": true,
"color": {
"solid": {
"color": "#193264"
}
},
"radius": 10
}
]


}
},

And it works fine, but when I try to add this

"values": {"backColorPrimary": { "type": [ "fill" ], "displayName": [ "Background color" ], "description": [ "Background color of the odd rows" ] },

 

And change the Background color to a color code like this "#193264" nothing happens.
Does anyone knows how to change the background color in the matrix and the table this way?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @ThomasWeppler ,

Please have a check.

At its most basic level, the theme JSON file has only one required line: name.

Other than name, everything else is optional, which means you're free to only add the properties you specifically want to format to the theme file, and continue to use Power BI's defaults for the rest.

 

vpollymsft_0-1662603831505.png

I have also found a similar psot, please refer to it to see if it helps you.

JSON Theme - Matrix - Grand Totals - Microsoft Power BI Community

 

Best Regards

Community Support Team _ Polly

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @ThomasWeppler ,

Please have a check.

At its most basic level, the theme JSON file has only one required line: name.

Other than name, everything else is optional, which means you're free to only add the properties you specifically want to format to the theme file, and continue to use Power BI's defaults for the rest.

 

vpollymsft_0-1662603831505.png

I have also found a similar psot, please refer to it to see if it helps you.

JSON Theme - Matrix - Grand Totals - Microsoft Power BI Community

 

Best Regards

Community Support Team _ Polly

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors