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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Clax
New Member

New slicer (2024) json theme script

Hello,

 

I am trying to customize my own PBI theme. I have searched for any example for the new slicer, but I haven't reached to find anything about it. Could anybody help me with this?

1 ACCEPTED SOLUTION
v-jiewu-msft
Community Support
Community Support

Hi @Clax ,

Based on my testing, it is impossible to apply json theme to new slicer visual.

1.Enter the following json.

 

{
   "name": "slicer background format",
   "dataColors": [
      "#f3c809"
   ],
   "visualStyles": {
      "slicer": {
         "*": {
            "background": [
               {
                  "show": true,
                  "color": {
                     "solid": {
                        "color": "#f3c809"
                     }
                  }
               }
            ]
         }
      }
   }
}

 

2.Apply the json into the new slicer and slicer visual.

vjiewumsft_0-1712802758366.png

Based on my researching,

This issue has been identified as a known issue.

This issue is in the process of being fixed, but there is no estimated time for the fix at this time

Please be patient and wait for the fix. I will update here if there is any news.

vjiewumsft_1-1712802773402.png

 

Best Regards,

Wisdom Wu

 

 

 

View solution in original post

3 REPLIES 3
ailinnesse
Frequent Visitor

I can format new slicer:

ailinnesse_0-1735330868493.png

 

"advancedSlicerVisual": {
      "*": {
        "value": [
          {
            "$id": "default",
            "textWrap": true
          },
          {
            "show": true
          }
        ],
        "outline": [
          {
            "$id": "default",
            "lineColor": {
              "solid": {
                "color": "#868686"
              }
            },
            "transparency": 20
          },
          {
            "show": true
          }
        ],
        "fillCustom": [
          {
            "$id": "default",
            "fillColor": {
              "solid": {
                "color": "#E6E6E6"
              }
            }
          },
          {
            "show": true
          }
        ],
        "background": [
          {
            "show": true,
            "color": {
              "solid": {
                "color": "#ECECEC"
              }
            }
          }
        ]
          
      }
    }
    

 

DuneAI
New Member

I was able to build a theme for the new slicer with this website. I've only struggled to make the edges rounded of the tiles. It was in the json but Power Bi can't detect it I think. 

https://themegenerator.point-gmbh.com/en/visuals/newSlicer

v-jiewu-msft
Community Support
Community Support

Hi @Clax ,

Based on my testing, it is impossible to apply json theme to new slicer visual.

1.Enter the following json.

 

{
   "name": "slicer background format",
   "dataColors": [
      "#f3c809"
   ],
   "visualStyles": {
      "slicer": {
         "*": {
            "background": [
               {
                  "show": true,
                  "color": {
                     "solid": {
                        "color": "#f3c809"
                     }
                  }
               }
            ]
         }
      }
   }
}

 

2.Apply the json into the new slicer and slicer visual.

vjiewumsft_0-1712802758366.png

Based on my researching,

This issue has been identified as a known issue.

This issue is in the process of being fixed, but there is no estimated time for the fix at this time

Please be patient and wait for the fix. I will update here if there is any news.

vjiewumsft_1-1712802773402.png

 

Best Regards,

Wisdom Wu

 

 

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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