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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Gazzer
Resolver II
Resolver II

Configure a JSON Theme for Different Table Style Presets

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.

1 REPLY 1
mikesmall
Advocate I
Advocate I

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.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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