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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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