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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

How to call a python API/Script and send data to the python API for some NLG analysis

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.

1 REPLY 1
Anonymous
Not applicable

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

The Advanced Editor

 

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.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.