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 nowTry your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now
Is there any way to query PowerBI dataset from R or Python for data analysts?
I havent found any library to help me with this but seeing the latest news with improvements on the excel connector I´m hopeful there may be a solution for achieving this.
Hey @solvisig, have you ever looked at the Pyadomd library? It requires some setup from the Power BI side but you can use that in combination with the msal library for authentication, to query Power BI datasets.
Yes, there are a few ways to query Power BI datasets from R or Python.
Here are some of the libraries that you can use to query Power BI datasets from R:
Hi, These libraries you mention do not allow me to query Power BI datasetes. They only interact with the Power BI API allowing me to work with administrations tasks from R.
I am looking for something to work with the data in the datasets.
| User | Count |
|---|---|
| 16 | |
| 11 | |
| 11 | |
| 8 | |
| 7 |
| User | Count |
|---|---|
| 38 | |
| 34 | |
| 34 | |
| 30 | |
| 20 |