This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
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.
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 36 | |
| 29 | |
| 29 | |
| 21 | |
| 18 |
| User | Count |
|---|---|
| 71 | |
| 45 | |
| 33 | |
| 24 | |
| 23 |