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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

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.