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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
I want to be able to have code in my JSON them which can do different things depending on which Style Preset I have selected for tables. The only suggestions I have found for this seem to be old and no longer work with the latest versions of Power BI.
This is the tableEx section of the JSON theme. I want to differentiate between a table with Default style and another table with Minimal style preset.
I found some example code which lets me differentiate between filterCards which are Available or Active - something like this:
"filterCard": [
{
"$id": "Applied",
"foregroundColor": {
"solid": {
"color": "#bbbbbb"
}
}
},
{
"$id": "Available",
"foregroundColor": {
"solid": {
"color": "#000000"
}
}
}
]
I feel like it should be possible to do something similar with table style presets, but nobody seems to know how. Actually, it must be possible because the way I am currently doing this makes every style preset behave the same way.
This must work with the Feb 2023 release of PBI Desktop, with the new JSON theme verification built in. I have downloaded and tried to work through the JSON schema, but I have not been able to figure this out.
I have tried various theme generators that work with the new validation but they only seem to apply one table theme to all stye presents. Byt the sound of it you would like to customise the default theme and the minimal theme and...
Will let you know if I find something.