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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

[THEME] Custom theme won't work if I filtered other criteria

Hi all,

 

I have created a cutom theme file and import into the report, which works fine for current filter criteria.

But If I choose other filter criteria, the custom theme seems return back to the default theme, why is that?

CustomThemeCustomThemeBackToDefaultThemeBackToDefaultTheme

 

Here is my custom theme file:

{
    "name": "TestTheme",
    "dataColors": ["#2B2F89", "#CE176F", "#d72b28", "#ea8a2c", "#fdd109", "#6AA341", "#37b186", "#2084c5", "#6f2d88", "#70c4e7"],
    "visualStyles": {
        "*": {
            "*": {
                "*": [{
                    "fontFamily": "Calibri, Cambria"
                }],
                "general": [{
                    "responsive": true
                }]
            }
        },
        "treemap": {
            "*": {
                "labels": [{
                    "show": true,
                    "fontSize": 8,
                    "fontFamily": "Calibri, Cambria"
                }],
                "general": [{
                    "responsive": true
                }]
            }
        }
    }
}
2 REPLIES 2
v-juanli-msft
Community Support
Community Support

Hi @Anonymous

I test with your json file but it works well when I select other items in a slicer.

My desktop version is 2.58.5103.501 64-bit (May 2018).

I’m afraid I misunderstand what you mean by saying “current filter criteria”, does it refer to “select other items in a slicer” as below.

Additionaly, how about re-import the theme?

 

1.png

 

Best Regards

Maggie

Anonymous
Not applicable

Hi @v-juanli-msft,

 

Thanks for the reply.

I found out that if your legends are many, then the theme won't cover that much.

 

Cheers,

Spencer

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.