cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
The_Coon Advocate III
Advocate III

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 Advocate III
Advocate III

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

 

View solution in original post

2 REPLIES 2
Community Support
Community Support

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 Advocate III
Advocate III

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

 

View solution in original post

Helpful resources

Announcements
Announcing the New Spanish Forum

Announcing the New Spanish Forum

Do you need help in Spanish? Check out our new Spanish community section.

MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

‘Better Together’ Integration Forum Launch

‘Better Together’ Integration Forum Launch

We've launched a how-to forum where you can learn about how Power BI integrates with other Power Platform products.

Top Solution Authors
Top Kudoed Authors