Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi there everyone!
I want to know if it is possible to read the selected value of a slicer in a Python Script.
Right now everytime I want to retrieve some data according the sales of "x" or "y" product category I need to change manually that value in a variable to search trought a data set.
I have been searching but havent found anything useful. Hope that you can help me!
Hi @AldoOlmos239 ,
report = Report("https://app.powerbi.com/reportEmbed?reportId=12345")
parameter = report.get_parameters_by_name("Parameter1")[0]
selected_value = parameter.current_value
You can refer to the following post that may be helpful to you:
Slicers as input for Python script - Microsoft Fabric Community
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 58 | |
| 45 | |
| 40 | |
| 21 | |
| 18 |