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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
ddalton
Resolver I
Resolver I

Python: importing data from existing PBI Table

I have want to start a machine learning approach using python, and I've found a stackexchange with something that I would like to try using data that already exists in my Power BI model (see https://datascience.stackexchange.com/questions/39034/how-to-train-ml-model-with-multiple-variables)...

 

In the accepted answer in example link, the user manually created a dataset, and I've also found countless example of how to import CSV file data using python. 

 

However, I would like to use python to grab data from an existing table (prefrerably the entire table) and then perform the remainder of the steps. 

 

Does anyone know how to import data from a Power BI Table into python?

2 REPLIES 2
amitchandak
Super User
Super User

@ddalton , I doubt you can do that. But you check REST APIs to get the dataset data

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thanks, @amitchandak

 

For the time being, I'll just have to export the data from PBI as a CSV and play around with the concept until I'm more comfortable with it. Then, perhaps, I have revisit what I can inside PBI Desktop. 

Helpful resources

Announcements
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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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