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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
mmendizIgt
Frequent Visitor

Expand/Collapse values in JSON script for hierarchy slicers

Hello, do any of you know the values for the Expand/collapse icon in a Hierarchy Slicer? I think that the property name is expandCollapseToggleType as it appears in the Layout file when you convert the .pbix file into a .zip file.

 

mmendizIgt_0-1617973851898.png

 

 

My problem is that I can't find the values of the icons (Chevron, Caret, Plus/minus) to set the Plus/minus as default in my script.

 

Thanks

 

Mijalis

3 REPLIES 3
amitchandak
Super User
Super User

@mmendizIgt , Json Script and Hierarchy Slicer?

I think JSON file ned to be converted into table format before use

 

refer:https://www.youtube.com/watch?v=MPYfEetvFH4

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi, thanks for your answer. I think I didn't express myself correctly. I'm creating a JSON theme file for Power BI and I can't find the property name and values that configure the toggle button in the hierarchy slicer. From the JSON in the pbix file converted to zip, I believe that the property name is expandCollapseToggleType. I'm not trying to load a JSON to Power BI. I'm looking for the Chevron, Caret, +/- names in the JSON theme file in order to set +/- as default.

Hi, @mmendizIgt 

In fact, I doubt whether there are such property names and values in the json file, which are used to configure the toggle button in the hierarchy slicer

If you still have no idea about your problem, you'd better open a support ticket with MSFT to seek technical support.
https://powerbi.microsoft.com/en-us/support/pro/

 

Best Regards,
Community Support Team _ Eason

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.