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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
Anonymous
Not applicable

Create Custom Functions using Python/R script

I have a bunch of R and Python scripts that I want to convert to custom functions on PowerBI? What's the best way to do it.

For example: I have a python script that summarizes text and extracts keywords from a text.

In the query editor, I want to be able to select my text column and use this script while invoking a custom funtion.

 

 

1 REPLY 1
dax
Community Support
Community Support

Hi nashneo, 

According to your description, did you mean you want to use R script or Python script in Powerbi, right?

If so, you could directly use R script in powerbi Edit Query or you could create a script in local, then refer to this in powerbi. You could refer to Running Local R Scripts in Power BI and How to create and use an R-function-library in Power BI for details.

By the way, you also could upload your script and your expecting output, then I will test this in my environment and help you more correctly.

Best Regards,
Zoe Zhi

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.