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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
andy808
Helper III
Helper III

How to get the dropdown orientation slicer setting style option for json theme

Hey there, with the new slicer settings - does anyone have the json file term to get the "dropdown" orientation (vs "vertical")?

 

Thanks!

2 ACCEPTED SOLUTIONS
v-yangliu-msft
Community Support
Community Support

Hi  @andy808 ,

 

After you click 'reset to default' in the format pane, you can try the following Json:

vyangliumsft_0-1675818402352.png

 

{

"name": "Custom Theme",

         "visualStyles": {

                 "slicer": {

              "*": {

                "data": [{

                                            "mode": "Dropdown"

                                                    }]

              }

        }

    }

}

 

There are also some related values:

  • "VerticalList"
  • "HorizontalList"
  • "Between"
  • "Before"
  • "After"
  • "Basic"
  • "Dropdown"
  • "Relative"
  • "Single"
  • "RelativeTime"

This is the related document, you can view this content:

Raporttiteemojen käyttäminen Power BI Desktopissa - Power BI | Microsoft Learn

Re: json Dropdown and basicShape functions fail - Microsoft Power BI Community

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Liu, amazing! I have been searching and searching for an answer and this worked!!

Thank you so much!!!

View solution in original post

4 REPLIES 4
andy808
Helper III
Helper III

I have another challenge.

 

I created 2 measures:

# of Paid Days = CALCULATE(DISTINCTCOUNT(ASTimeEntry[TimeRecordedOnDate]),(FILTER('Date Table','Date Table'[IsWeekend] = False ))) + 0
 
Sum of Tracked Hours = SUM(ASTimeEntry[TrackedHours]) +0
 
To get a %, divided them:
Total Paid Hours % = [Sum of Tracked Hours] / [Total Paid Hours]
 
When I slice for 1 person it works (eg 100%). When I use it for the whole team (5 people) - it ADDS the %s (eg 500%). How do I average this %? Average FXN doesnt work, divide FXN by # of people doesnt work. Or is there a completely different formula I need to create?  HELP!
v-yangliu-msft
Community Support
Community Support

Hi  @andy808 ,

 

After you click 'reset to default' in the format pane, you can try the following Json:

vyangliumsft_0-1675818402352.png

 

{

"name": "Custom Theme",

         "visualStyles": {

                 "slicer": {

              "*": {

                "data": [{

                                            "mode": "Dropdown"

                                                    }]

              }

        }

    }

}

 

There are also some related values:

  • "VerticalList"
  • "HorizontalList"
  • "Between"
  • "Before"
  • "After"
  • "Basic"
  • "Dropdown"
  • "Relative"
  • "Single"
  • "RelativeTime"

This is the related document, you can view this content:

Raporttiteemojen käyttäminen Power BI Desktopissa - Power BI | Microsoft Learn

Re: json Dropdown and basicShape functions fail - Microsoft Power BI Community

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

@v-yangliu-msft ,  Do you know of a way it can be set up without having to select "reset to default"  seems kind of cumbersome for end users.  Thanks

Liu, amazing! I have been searching and searching for an answer and this worked!!

Thank you so much!!!

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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Kudoed Authors