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 nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
Hello all:
I usually query SQL databases from our SQL server by typing in the SQL code right in the advanced options instead of importing the entire table into Power BI Desktop. This results in huge improvements in performance (Merges that were taking 40 minutes to run on my laptop now run in seconds on the SQL Server).
I was wondering, since Python and R are part of the "Machine Learning Services" in SQL Server Management Studio, does Power BI feed any typed Python/R code back to the server for processing, or will it result in an error?
Thanks a lot!
Solved! Go to Solution.
Hi @Anonymous ,
After my tests, you could only input SQL statement. Python/R code will return errors.
Hi @Anonymous ,
After my tests, you could only input SQL statement. Python/R code will return errors.
Ok, thanks a lot!
Looks like we'll have to create views in SSMS.
Thanks again.
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!
Check out the July 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 30 | |
| 26 | |
| 23 | |
| 23 | |
| 14 |
| User | Count |
|---|---|
| 46 | |
| 33 | |
| 20 | |
| 18 | |
| 16 |