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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

How to export power Bi table to SQL server using python or R?

Hello,

 

i would like to know how to export data from a powerBi table to sql server, ideally i would like to do this via python although R would not bother me (which ever is more sutable).

i reaserched online and i saw a solution from "https://www.biinsight.com/exporting-power-bi-data-to-sql-server/"

However i have a few problems with this:

    It sends the data as strings, how can i send the correct data type instead?

    Empty values do not show as NULL instead it is an empty string, how can i fix this?

    It duplicates values if ran more than once, for this im planning to clear then add the data back in (any other method is wolcome)

 

any help is appreciated 🙂

2 REPLIES 2
Anonymous
Not applicable

Hope you have got the answer by now. 😅 Shortcut method here is using an external tool DAX Studio. This solves 99% problem. But sometimes it can give a bug and here you can also use to first export it to csv/xlsx and then import csv/xlsx in SQL Server Import Wizard.

GilbertQ
Super User
Super User

Hi there

Could you not rather export the data from the source before it gets into Power BI?




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.