cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
The_Coon Regular Visitor
Regular Visitor

Report Theme font color relative slicer

Hi, 

 

I'm looking for the property name for the field that is responsible the formatting for a relative slicer. I could not find it in the documentation and have tried multiple values. "date" only affects the between, before and after slicers and "items" is for list and dropdown, but the relative name is still a mystery to me. See below for a snippet of the json file.

 

Hope any of you can help me out! Thanks in advance!

 

Koen

 

 .... 
      "slicer": {
            "*": {
                "background": [
                    {
                        "show": true,
                        "color": {
                            "solid": {
                                "color": "#FF6e00"
                            }
                        },
                        "transparency": 0
                    }
                ],
                "header": [
                    {
                        "show": true,
                        "fontColor": {
                            "solid": {
                                "color": "#FFFFFF"
                            }
                        }
                    }
                ],
                "date": [
                    {
                        "show": true,
                        "fontColor": {
                            "solid": {
                                "color": "#FFFFFF"
                            }
                        }
                    }
                ]
            }
        },
....

slicer.PNGnumeric inputs.PNG

 

1 ACCEPTED SOLUTION

Accepted Solutions
The_Coon Regular Visitor
Regular Visitor

Re: Report Theme font color relative slicer

Hi @v-chuncz-msft ,

 

Thanks for the link. It was actualy the linked topic in your linked topic that got me to the sollution. 

 

For anyone else looking, the fieldname is named: "numericInputStyle".

 

You can find this, and every other fieldname, by doing the following:

  1. Create and save a report with the desired layout
  2. Rename the .pbix file to a .zip or .rar file
  3. Unpack the file with 7zip or similar 
  4. Open, in the unpacked dir, the directory Report
  5. Open the "Layout" file . I did it with VSCode (because of the easy formatting) but you can use any text editor
  6. In here are all the layout properties of your file, look for the visuals and their properties and use them in your theme file.

Hope this shortens the search for anyone.

 

Koen

 

2 REPLIES 2
Community Support Team
Community Support Team

Re: Report Theme font color relative slicer

@The_Coon 

 

You may take a look at the post below.

https://community.powerbi.com/t5/Desktop/JSON-theme-Data-label-quot-Display-units-quot-How-to-set-to...

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
The_Coon Regular Visitor
Regular Visitor

Re: Report Theme font color relative slicer

Hi @v-chuncz-msft ,

 

Thanks for the link. It was actualy the linked topic in your linked topic that got me to the sollution. 

 

For anyone else looking, the fieldname is named: "numericInputStyle".

 

You can find this, and every other fieldname, by doing the following:

  1. Create and save a report with the desired layout
  2. Rename the .pbix file to a .zip or .rar file
  3. Unpack the file with 7zip or similar 
  4. Open, in the unpacked dir, the directory Report
  5. Open the "Layout" file . I did it with VSCode (because of the easy formatting) but you can use any text editor
  6. In here are all the layout properties of your file, look for the visuals and their properties and use them in your theme file.

Hope this shortens the search for anyone.

 

Koen

 

Helpful resources

Announcements
Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Power BI Helps Homeless and Trouble Youth

Power BI Helps Homeless and Trouble Youth

We spoke with Power BI Super User, Greg Deckler, about his charity work

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Top Kudoed Authors
Users Online
Currently online: 126 members 1,623 guests
Please welcome our newest community members: