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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Regular Visitor

Get slicer data from powerbi page

Is there any way to get dropdown options from a slicer via any javascript library or any REST API? 


Consider if we have a slicer called City, which have dropdown options like Sydney, Melbourne, Brisbane etc. What's the possible way to get these values programmatically?

Super User
Super User

Hi @Harshasripathi ,
I am not sure if you can connect specifically slicer itself but you can connect the underlying data, which is used for any visual.
For example. If you have Premium workspace, you can use XMLA endpoint to connect to your dataset via tabular editor or MS SQL server management studio and get data from "City" column in a "Programmaticall" way.


If my answer was helpful please give me a Kudos or even accept as a Solution.

Let's connect on LinkedIn!

Helpful resources

July 2024 Power BI Update

Power BI Monthly Update - July 2024

Check out the July 2024 Power BI update to learn about new features.


Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.