Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!View all the Fabric Data Days sessions on demand. View schedule
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?
Solved! Go to Solution.
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.
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.
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.
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.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!