Forum Discussion
cip
2 years agoFrequent Visitor
Passing selected value of slicer to Python script?
I have a table with data extracted from an API using python script. The data can be filtered by different arguments in the script and I would like to create a slicer to allow users to select values b...
amitchandak
2 years agoSuper User
cip , if you are using it visual and added that to visual; it should filter.
But if you are using python to load data it will not filter data based on slicer.
cip
2 years agoFrequent Visitor
Thank you so much for the reply!
Sorry I didn't make myself clear - I should say I'm trying to get certain subset of data from a dataset via API by using different arguments, and in this case I would like to set a slicer for users to select one string (A or B), then pass this string as argument to the script to pull the corresponding data.
Similar to this:
df = xxx.get( properties="A", )
Then the dataframe should only contain data with properities that match A.
Or would it be easier to use pandas to create the graph and import it as python visual in PowerBI?
Thanks again!