Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
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.
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.
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 23 | |
| 23 | |
| 20 | |
| 18 | |
| 14 |
| User | Count |
|---|---|
| 58 | |
| 51 | |
| 40 | |
| 30 | |
| 24 |