Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
Hi all!
Consider the following scenario:
1. You have a python visualization in a Power BI desktop report, from where you are pulling a dataframe/table from any data source of your choosing and plotting a chart;
2. In the same dashboard/page where the python visual from 1. is in, you have a slicer from where a user can select one value of his choosing.
My question:
How does one configure/setup Python script or PBI desktop objects, in order to pass the selected objects in 2. into the visual in 1. ?
You can refer to image below for the scenario I have right now:
What have I tried before coming for help:
I created a metric to select the value chosen by the user in the Age slicer:
@SergioTorrinha , refer if these can help
https://community.powerbi.com/t5/Desktop/Prompts-to-Power-BI-using-Python-scripts/td-p/654059
@amitchandak wrote:@SergioTorrinha, refer if these can help
https://community.powerbi.com/t5/Desktop/Prompts-to-Power-BI-using-Python-scripts/td-p/654059
hi @amitchandak
tkx for your reply but both references won't help.
Hi all!
I'm still looking for a solution.
Does anyone has ahint on this bugger?
Tkx in advance 🙂
up up!
I'm still struggling to find a solution for this.
Does anyone has any idea?
Thanks
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 23 | |
| 23 | |
| 21 | |
| 17 | |
| 13 |
| User | Count |
|---|---|
| 58 | |
| 51 | |
| 40 | |
| 30 | |
| 24 |