
Replace 2021 March:
Now you can export the information direct from Energy BI Desktop utilizing my software, Energy BI Exporter. Learn extra right here.
In a few of my previous posts, that are the most well-liked ones, I defined learn how to Export information Energy BI Desktop or Energy BI Service information to totally different locations like CSV, Excel and SQL Server. On this fast tip I clarify a very simple option to export the mannequin information as a complete to both CSV or SQL Server with DAX Studio.
Daniil from XXL BI effectively defined this technique, however I’d quite shortly clarify the way it works and add some extra info.
After launch 2.8 of DAX Studio, now you can shortly export the entire mannequin to CSV and SQL Server in a single shot.
Enabling Export All Information in DAX Studio
- Open DAX Studio
- Click on “File”
- Click on “Choices”
- Click on “Superior”
- Tick “Present Export All Information button”

Export Energy BI Mannequin Information to CSV

Export Energy BI Mannequin Information to SQL Server
Comply with the steps defined above, however this time choose “SQL Server” as vacation spot. For the “Connection String” observe the beneath steps to get it proper right away.
Generate Connection String with a UDL File
- Create a textual content file in your machine, you may merely proper click on in any desired folder then “New” then click on “Textual content Doc”

- Rename the file and swap .txt extension with .udl

- Open the UDL file (double click on)
- From “Suppliers” web page, choose SQL Server OLE DB Supplier for SQL Server then click on Subsequent
- Enter Server Identify
- Kind in your SQL Server Person Identify and Password
- Tick “Enable saving password”
- Choose the vacation spot database
- Click on “Take a look at Connection” button to verify the connection works then click on OK
- Now open the UDL file in Notepad
Person Connection String in DAX Studio
Now that we’ve generated the connection it’s time to use it in DAX Studio.
- Open the UDL file in Notepad
- Copy the connection string ranging from after the “Supplier” part
- Paste it in DAX Studio in “Connection String” field
- Enter a schema title (it’s dbo in my case)

Concerns
- When connecting to a Premium workspace chances are you’ll face export failure on account of question timeout
- When exporting information to SQL Server
- in case you go away the “Schema Identify” clean you’ll get an error that vacant schema is just not allowed
- in case you enter an present schema title the information will probably be exported to tables with very same title as they’ve in your mannequin
- in case you enter a brand new schema title then DAX Studio creates a brand new schema then generate the tables in that schema then exports the information
- whether or not you tick the “Truncate Tables” or not the prevailing information will probably be synchronised with the supply information in Energy BI. (it doesn’t append information)
- As you in all probability guessed, this technique additionally works completely for exporting SSAS Tabular mannequin and Azure Evaluation Providers information

Associated
Uncover extra from BI Perception
Subscribe to get the newest posts despatched to your electronic mail.