This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hi,
I am new to the power BI environment. I have a requirement where I need to call a python API/script from Power BI each time a filter is applied and need to send data to the API to perform some NLG.
The python API/script will return a sentence or set of sentences which I need to display on the dashboard.
Is this possible to achieve in Power BI and if yes, how do I proceed with it.
Some additional details:
For eg, if I have created a bar chart for marks details with a filter being for each year, as soon as the filter changes, I want to call the API/script and send the data for that particular year and get back the NLG analysis from the API/script.
Thanking you.
Best regards.
Hi @Anonymous ,
Here are some offical blogs and I hope they could help you.
For reference:
Using Python in Power Query Editor
Run Python scripts in Power BI Desktop
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |