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
mmace1
Impactful Individual
Impactful Individual

Fine-tuning JSON themes - either of these 2 things possible?

I don't think either of these is currently possible, but checking just in case:

 

  • Specfiying the background color of specifically Slicer Visualizations. 
    • (You can easily set the background of all visuals, but it's an all-or-nothing setting, there's no way to specify formatting by type of visual, right? )
  • Of the theme colors, assigning some logic for which color is used for which item
    • i.e. if 'xyz' appears in the Measure Name or Legend Item, then use this color, or something like that

 

 

There's the Report Theme Generator: 
https://powerbi.tips/tools/report-theme-generator-v3/

But the only options for Slicers is Reponsive Y/N. And I haven't seen any mention of using any logic for applying the theme colors

 

5 REPLIES 5
FrankAT
Community Champion
Community Champion

Hi @mmace1 

the answer to your first question is: Yes, it is possible. If you need default background color for slicers use the following link: https://themes.powerbi.tips/properties.

 

The answer to your second question may possibly answered at: https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-report-themes

 

[...]

Here's a sample theme that sets the color classes:

{
"name": "Custom Theme",
"firstLevelElements": "#252423",
"secondLevelElements": "#605E5C",
"thirdLevelElements": "#F3F2F1",
"fourthLevelElements": "#B3B0AD",
"background": "#FFFFFF",
"secondaryBackground": "#C8C6C4",
"tableAccent": "#118DFF"
}

[...]

Regards FrankAT

mmace1
Impactful Individual
Impactful Individual

NICE.  That's #1 - how to set default colors for slicers.  

I'll flail around messing up the transfer of the json into my existing file, but none the less - that site seems to create the correct code for specificy Slicer colors!

 

For the link - I've read that before, it seems like there's no logic for associating certian colors with certain Measure Names or Legend values?  One can assign colors within a template, and have them persist I believe. But going back a step, there's nothing in the .Json to assign certain colors to certain data values?

pranit828
Community Champion
Community Champion

1st one, you are right, its not possible.

2nd one, You have to do it in the conditional formatting pane of each chart, not possible on JSON themes.





PBI_SuperUser_Rank@1x.png


Hope it resolves your issue? 
Did I answer your question? Mark my post as a solution!

Appreciate your Kudos, Press the thumbs up button!!
Linkedin Profile
mmace1
Impactful Individual
Impactful Individual

@pranit828  Thanks!   99% certain that's the end of it!  I'm going to wait on Accepting Solution...on that 1% chance there's some horrible way someone knows of. 

 

It for instance, *is* possible to have a specified background/wallpaper picture in a JSON theme file, with some indirect screwing around.  So, waiting just in case...

pranit828
Community Champion
Community Champion

Sure, I will also be interested to and implement if anyone has any more thought on it.

Will be closely following this thread.





PBI_SuperUser_Rank@1x.png


Hope it resolves your issue? 
Did I answer your question? Mark my post as a solution!

Appreciate your Kudos, Press the thumbs up button!!
Linkedin Profile

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.