
Have you ever needed to export all the tables from a Power BI semantic model to Excel or CSV? It is easy enough when you only need the data from one visual. It is a different story when someone asks for a copy of all the tables, or when you also need to see how the tables relate to each other and what DAX sits behind the measures.
I wrote a few blogs about exporting Power BI data before we built Power BI Exporter at Data Vizioner. The idea at the time was simple. Open the model in Power BI Desktop, run the tool, and get the data and model structure in one zip file. With version 2, we added an Excel export and a few things I find useful when reviewing a model, such as seeing which tables take most of the memory and getting a list of best-practice findings. You can read about the first version in my original Power BI Exporter blog.
In this blog, I use two Adventure Works models to show what comes out of the export. The first is an Import model, where I found a calculated table with almost 140 million rows. The second is a Direct Lake model in a Fabric trial workspace. This one had far fewer rows, but two text columns together used almost half of its memory. I explain what I would check in each case after we go through the export.
You can watch the complete demonstration on my YouTube channel:
If you prefer listening, I have also published an AI generated podcast version of the video:
What Power BI Exporter does #
The export is still the starting point. The difference in version 2 is what you can learn about the model from the files you get.
| Feature | What you get |
|---|---|
| Model Insights | An overview of the model, including tables, columns, measures, relationships, row counts, storage modes, memory usage and the last refresh. |
| Performance Tuner | A breakdown of where the model uses memory and a list of findings with suggested changes. |
| Data Exporter | An Excel sheet or a UTF-8 CSV file for each exported table, plus the model metadata, including the DAX expressions for the measures. |
| Best practices | Checks on model design, DAX, maintenance, naming and formatting, with a priority and a suggested action for each finding. |
I use Excel Workbook when I want to look through the model and filter the data. For a copy of all the rows, I use Zip File. The zip contains the CSVs and a PDF with the model review. The workbook gives you the review on three sheets, along with the model metadata and table data.
Power BI Exporter works with Import, DirectQuery, composite and Direct Lake models. This is worth keeping in mind if your model uses more than one storage mode. The exporter can read Import data from the model, while a query against a DirectQuery table can go all the way to the source. If you want to learn more about what the tool exports, have a look at the Power BI Exporter page.
What you need #
- Power BI Desktop on Windows and Power BI Exporter. Enter your email on the Power BI Exporter download page to get the installer, then run it. Once installed, the tool appears on the External tools ribbon. The app is free and runs without a separate account, licence key or .NET installation.
- A semantic model open in Power BI Desktop. For the Import example, open a local
.pbixor.pbip. For the Direct Lake example, open the published model for live editing. Microsoft lists an enabled tenant XMLA endpoint, Read Write access on the capacity’s XMLA endpoint, Write permission on the model, Viewer permission on the lakehouse and a licence that supports live editing. These are requirements for opening the model this way. The exporter itself only reads it. For more details on capacity settings and permissions, see the Direct Lake live editing requirements on Microsoft Learn. - Microsoft Edge, if you want the PDF in the zip. If Edge cannot generate the PDF, you still get the CSV files.
Open your model in Power BI Desktop #
Import mode #
Open your .pbix or .pbip in Power BI Desktop. My example is Sales & Customer Insights, an Import model based on Adventure Works. You can run the export from any view. Power BI Desktop already has a local Analysis Services engine running for the open model, and this is what the tool connects to.
Direct Lake #
For my second example, the model is AdventureWorks Sales Analytics DL in a Fabric trial workspace. There is one step here that is easy to miss. The Connect button opens a report with a live connection to the model. To open the model itself, use Edit from the dropdown next to Connect. If you want to see the other ways to open the model for editing, see how to live edit a Direct Lake model on Microsoft Learn.
- Open Power BI Desktop and select OneLake catalog on the start screen.

- Enter part of the model name in Filter by keyword. Select the semantic model, check its workspace under Location, then select the arrow next to Connect.

- Select Edit from the dropdown.

- In Model view, check the model name in the title bar and the banner that says Live editing your model using Direct Lake. You can see the objects under Data, and the status bar shows Storage Mode: Direct Lake.

Keep in mind that changes you make to the model in this session are saved to the workspace as you work. You can run Power BI Exporter from this session because the tool only sends read queries. You can read more about how Desktop saves changes during live editing on Microsoft Learn.
Export the model to Excel or CSV #
Once you have either model open, follow the same steps to export it.
Step 1. Start Power BI Exporter #
Select External tools on the ribbon, then select Power BI Exporter. Power BI Desktop passes the connection details for the open model to the tool.

Step 2. Choose a file name and format #
In the Save Export window, go to the folder where you want to store the export and enter a File name. From Save as type, select Zip File for the CSVs and PDF, or Excel Workbook for the workbook. You can also enter the extension in the file name.

Step 3. Save and check the result #
- Select Zip File, then select Save. To get the Excel version as well, launch Power BI Exporter again after the first run and select Excel Workbook. You can save both versions with the same base name by including the file extension.


- Wait for the progress window to finish. The tool reads the model statistics and writes the data to the file you selected.

- Read the completion message and select Close. In my Import example, the workbook finished with “Done. 1 table cut, see Export notes”. If you see a similar message, open Export notes to find out which table reached the Excel row limit. The tool also tells you if it left calculated columns empty, could not create the PDF, or completed without model storage statistics.

As you can see below, the Import workbook took 38 seconds, while the zip took nearly 10 minutes. The workbook stopped reading the largest table when its sheet filled up. So these two runs were writing quite different amounts of data. Both Direct Lake exports finished in about 30 to 40 seconds in my trial workspace.
| Result | Sales & Customer Insights (Import) | AdventureWorks Sales Analytics DL (Direct Lake) |
|---|---|---|
| Tables | 19 | 24 |
| Model rows | 141,025,145 | 1,395,916 |
| Zip export | 9 minutes 45 seconds, 442.5 MB, 25 files | 30 to 40 seconds, 23.3 MB, 30 files |
| Excel export | 38 seconds, 30.8 MB, 28 sheets | 30 to 40 seconds, 33.6 MB, 32 sheets |
| Rows in the workbook | 2,472,146, with one table cut | 1,395,916, all rows fit |
What is in the zip #
Open the zip and look for the files starting with Data-. Each of these is a UTF-8 CSV with the column names on the first row. The exporter includes regular hidden tables. The private tables that Power BI creates for auto date/time are listed in the model metadata, where you can use IsExported to see which tables have a data file. In my Import model, auto date/time was off, so I got 19 data CSVs.
The file that caught my attention was Data-Customers with Annual Income More than 10K Sales.csv. It had 139,601,574 rows and took 4.9 GB by itself. That explains most of the 5 GB I got when I unzipped the Import export. The Direct Lake zip had 24 data CSVs and came to about 116 MB after extraction. Its largest file was Data-Internet Sales.csv, which was 47 MB with 290,057 rows.


The rest of the zip is where you can start looking at the model itself. The five metadata CSVs also have matching sheets in the Excel version.
| File | What it contains |
|---|---|
Model-Tables.csv | Table kind, storage mode, hidden and exported flags, row and object counts, memory sizes, share of the model, integrity violations and references. |
Model-Columns.csv | Data and column types, hidden flag, encoding, cardinality, selectivity, dictionary, data and hierarchy sizes, shares and segments. |
Model-Relationships.csv | Tables and columns at both ends, cardinality, active flag, filter direction, referential integrity, size, missing keys and invalid rows. |
Model-Partitions.csv | Storage mode, partition type, state, last refresh, segments, rows and size. |
Model-Measures.csv | Display folder, data type, hidden flag, description, IsReferenced, DAX expression, format string and dynamic format string expression. |
Model-Report.pdf | The model overview, performance findings and best-practice checks. |
Sizes in the metadata CSVs are in bytes, and shares and selectivity are between 0 and 1. Where the list is sorted by size, the largest objects come first.
What is in the Excel workbook #
Overview #
Open Overview first. Here is what the highlighted areas show in the Import workbook.
- Model. Check the model name, compatibility level, estimated size, size in memory, last refresh and export time.
- Data. Compare the row count in the model with the row count in the workbook. The yellow “Some tables were cut” message tells you that at least one table reached Excel’s row limit. You can also see the largest table by rows and the largest table and column by memory.
- Worth a look. The highlighted rows show one table cut at Excel’s row limit, two performance findings and 49 best-practice findings. Open Export notes, Performance or Best practices for the details.
- Charts. The four charts here show the largest tables by rows, tables by storage mode, the widest tables and columns by data type.

In the Direct Lake workbook, the same information is grouped a little differently in the screenshot.
- Model and Structure. See the model details and object counts together. My Direct Lake model used 51.3 MB in memory and had 24 tables and 112 measures.
- Data and Worth a look. All 1,395,916 rows fitted in the workbook. Under Worth a look, you can see if the model has any tables without relationships, inactive relationships, bidirectional filters or many-to-many relationships. It also shows wide and empty tables. In this example, I had four tables without relationships and four inactive relationships.
- Charts. Check the storage mode chart to see that 83% of the tables used Direct Lake. The charts further down show measures per table and which tables have the most relationships.
- Summary tabs. Use the yellow Overview, Performance and Best practices tabs to switch between the three summary sheets.

Scroll further down on Overview to see the last two charts and the table inventory.
- Relationships by type and Tables by kind. All 29 relationships in this model were one-to-many. The other chart shows how the 24 tables are split into data tables, calculated tables and a calculation group.
- Table inventory. Check the storage mode, row counts in the model and workbook, object counts and last refresh for each table. Select a table name to open its data sheet.

Performance #
Open Performance to see where the model uses memory and which findings the tool suggests you look at first.
- Where the memory goes. In my Import model, column data accounted for 227.1 MB, or 94.6% of the total. This section also breaks out dictionaries, column hierarchies, relationships and user hierarchies. A dictionary stores the distinct values of a column.
- Findings. There was one high-priority finding and one medium-priority finding.
- Charts. Use Memory by kind to see the breakdown, then check Largest columns in memory. The top column in my Import model used 213.1 MB. The next one used 3.3 MB.
- What to change. Read across each row to see the object, priority, area, memory and finding. The last column, What to do, gives you a suggested action.

The Direct Lake model gave me a different starting point.
- Where the memory goes. Dictionaries used 33.3 MB, or 64.9% of the model’s memory.
- Findings. All four findings were low priority.
- Charts. The two Sales Order Number columns were at the top of the column chart and used 24.7 MB together.
- What to change. The four rows flagged hidden columns with no model dependencies. One example was
Internet Sales[Tax Amount], which used 715 KB.

The tool looks for things like large calculated tables or columns, high-cardinality text, decimals, timestamps, unused hidden objects, expensive relationships and large single-partition tables. It also checks auto date/time tables and columns kept available for Excel through MDX. The size floor is the greater of 32 KB and 0.5% of the model’s memory. The priority thresholds are 5% for High and 2% for Medium.
Best practices #
Open Best practices to review the modelling and DAX checks. These checks can still run if the engine does not give the exporter storage statistics. Here is what the numbers show in the Import workbook.
- Findings. There were two high-priority findings, 38 medium and nine low.
- By category. Both high-priority findings were in Performance. You can also see the counts for DAX, error prevention, maintenance, naming and formatting.
- What to change. Use the Priority or Category filter to narrow down the findings, then read the What to do column. The first two rows in my Import workbook flagged security filters on Date, which has a many-to-many relationship.

Check the same three areas in the Direct Lake workbook.
- Findings. I had 15 medium-priority findings and three low-priority findings.
- By category. Performance had the most findings, with 10. The others were in DAX, maintenance and formatting.
- What to change. The table shows the objects involved and what to check. For example, when a column uses the Double data type, check the precision you need before changing its type.

The rules are based on Microsoft’s open-source fabric-toolbox. Of the 71 rules in the set we used, 47 are on the Best practices sheet and nine are on Performance, where the tool can use the memory figures. The exporter also distinguishes a DAX function call from a function name in a string or a comment. Some checks group the affected columns by table so the same finding does not fill the sheet. If you’re interested in the rules behind these checks, you can find them in the Microsoft fabric-toolbox on GitHub.
The Model sheets #
The Model Tables, Model Columns, Model Relationships, Model Partitions and Model Measures sheets have the same columns as the five metadata CSVs, with Excel filters and formatted numbers. Open Model Tables to see these details for each table.
- StorageMode. There were 20 Direct Lake tables in this model. The three calculated tables showed Import, and the calculation group showed Default.
- RowsCount. Check the number of rows in each table. The largest in this example had 776,286 rows.
- Sizes. Check the dictionary, data and hierarchy sizes and the total size of each table in bytes.

I find Model Measures useful when I inherit a model and want to read its DAX in one place. Open the sheet and look at these columns in the Import workbook.
- DisplayFolder. Filter the measures by folder. The column is blank for measures at the top level.
- IsReferenced. In this model, 16 of the 54 measures were referenced by another object in the model. The check covers usage in objects such as other measures, calculated columns and security rules. Check the reports before removing a measure marked as unreferenced.
- Expression. Read the DAX definition of the measure.

The Direct Lake workbook also shows the DAX behind dynamic format strings.
- DisplayFolder. The 112 measures in this model were organised into 12 display folders.
- IsReferenced. Other objects in the model referenced 79 of those measures.
- Expression and FormatStringExpression. Check the DAX of the measure and its dynamic format string. In my Direct Lake model, 45 measures had a dynamic format string.

Table data and Export notes #
Each exported table gets its own worksheet. You can see how this looks in the Direct Lake workbook.
- Header row. The column names stay visible as you scroll because the first row is frozen.
- Sheet tab. Select Internet Sales to see the table data. It had the same 290,057 rows as the CSV version. All tables fitted in this workbook, so there was no Export notes sheet.

In the Import workbook, check what happened to the largest table.
- Last row. The sheet stops at row 1,048,576, which is Excel’s limit. The header takes one row, so the workbook includes the first 1,048,575 data rows.
- Sheet tab. Excel allows up to 31 characters in a sheet name, so the exporter shortened the original table name.

Open Export notes to see what the exporter changed.
- Notes for the affected table. The two entries show the original table name, the worksheet name and why each change was needed. One records the shortened name and the other records the rows that did not fit.

You can also see notes when the tool makes sheet names unique, cuts text at 32,767 characters, or writes a value as text because Excel cannot hold it as-is. This includes numbers with more than 15 digits, NaN and dates before 1900. The workbook properties include the model name, exporter version, export time and whether the model statistics were included.
The PDF report #
Open Model-Report.pdf from the zip if you want to share the findings with someone who does not need the data. It has the model overview, table inventory, performance and best-practice findings on A4 landscape pages. My Import report was nine pages and the Direct Lake report was seven.
On the first page of the Direct Lake report, the doughnut charts show both the count and the percentage next to each label. For example, under Columns by data type, you can see that 55 columns were text, or 32% of the total.


On page 5 of the Import report, Largest columns in memory shows 12 columns. This brings in two more columns beyond the 10 shown on the Excel chart.

On page 6, the Findings by category chart breaks each bar down by priority. For example, you can see that all the formatting findings are medium priority and that both high-priority findings are in Performance.

What I found in the two models #
The table below gives you an idea of what I was working with. Both models had single-direction relationships and the exports showed zero missing keys and invalid rows. For Direct Lake, keep in mind that these figures depend on the statistics returned by the engine. The separate DAX checks for exact counts were run for Import tables.
| Sales & Customer Insights (Import) | AdventureWorks Sales Analytics DL (Direct Lake) | |
|---|---|---|
| Model structure | 19 tables, 254 columns, 54 measures and 4 security roles | 24 tables, 171 columns (89 hidden), 112 measures and 2 security roles |
| Relationships | 31, including 1 many-to-many and 7 inactive | 29, all one-to-many, with 4 inactive |
| Memory | 240.0 MB | 51.3 MB |
| Largest contributor | One calculated table used 217.3 MB (90.5%) | Internet Sales and Reseller Sales each used about 40% of the model’s memory |
| Performance findings | 2 (1 high, 1 medium) | 4 (all low) |
| Best-practice findings | 49 (2 high, 38 medium, 9 low) | 18 (15 medium, 3 low) |
Import model #
The calculated table Customers with Annual Income More than 10K Sales used 217.3 MB of a 240.0 MB model. To put that in perspective, it had about 480 times as many rows as Internet Sales. What I found interesting here was that CustomerKey on its own used 213.1 MB, even though it had only 2,198 distinct values. So the first thing I would look at is how the table gets to 139.6 million rows. If it is meant to hold the sales of customers with income over 10K, is the DAX multiplying rows somewhere?
Performance Tuner suggests building the table in the warehouse or Power Query. I would check the logic and work out what one row is supposed to represent first. If the calculation is producing more rows than it should, moving it upstream on its own can leave you with the same problem.
The other performance finding was a many-to-many relationship to Date[Year - Month]. This is also where the two high-priority best-practice findings came from. The two row-level security (RLS) roles, Internet Sales 2026 and Unauthorised User, both filter the Date table. I would review the role filters and the relationship together, and check whether a table with one row per key would work for this model. Some of the lower-priority findings were around snowflaked dimensions, floating-point columns and missing measure format strings.
Direct Lake model #
In Direct Lake, I found that the largest table by rows was different from the largest table in memory. Product Inventory was the largest table by row count, at 776,286 rows, while Internet Sales was largest in memory, at 20.7 MB. The part I found more interesting was in the column chart. Sales Order Number used 13.1 MB in Reseller Sales and another 11.6 MB in Internet Sales. Together, that is 24.7 MB out of 51.3 MB. If I were reviewing this for a project, I would first check where the order number is used in the reports. That would help me decide whether I still need the text column or could use a whole-number key.
The four performance findings were all low priority and related to hidden columns with no model dependencies. One example was Internet Sales[Tax Amount] at 715 KB. In Best practices, I saw six Double columns, two inactive relationships with no USERELATIONSHIP reference, a measure using INTERSECT where TREATAS may work, and 24 visible measures with no format string. There were also findings about table-qualified measure references, missing descriptions and snowflaked dimensions. For the Double columns, check how much precision the business needs before changing to Fixed decimal, which keeps four decimal places.
Limits and considerations #
- Excel and disk space. Use the zip when you need more than 1,048,575 data rows from a table. Also check the disk space before extracting a large export. My 240 MB Import model produced about 5 GB of uncompressed files.
- Data freshness and connectivity. A local Import export works offline and contains the data as of the model’s last refresh. Check Overview or
Model-Partitions.csvif the refresh time matters. For a published Direct Lake model, you need access to the service. With DirectQuery, allow for the load and permissions involved in reading a whole table from its source. - Model findings. Power BI Exporter checks dependencies between objects within the semantic model. It does not trace dependencies in Power Query, within a report or from a report back to the semantic model. So if a column or measure shows up as unused, check whether any of your reports still use it before removing it. If you want to review the Power Query logic or see how model fields are used in reports, have a look at Power BI Documenter on the Data Vizioner platform.
- Backup. Keep your original model and report files or definitions if you need to restore them. The export gives you the table data and an inventory of the model.
Conclusion #
When we built the first version of Power BI Exporter, I wanted an easier way to get the data out of Power BI Desktop. The zip is still the option I would use for that. What I like about version 2 is that I can open the same export and see what I would look at first if someone asked me to review the model. With my Import model, that was the logic behind one oversized calculated table. In Direct Lake, it was how two sales order columns were used.
If you’d like to try it on your own model, you can download Power BI Exporter for free. If you need ongoing model documentation, field-level lineage or AI-written descriptions, you can read more about those features on the Data Vizioner website.
As always, I hope you have learned something new from this blog. If you try the exporter on one of your models, I would like to hear what you found and what else you would like to see in the export.
If you found this useful, you can follow me on LinkedIn, subscribe to BI Insight on YouTube, or follow the BI Insight podcast on Spotify. I also share updates on Bluesky and X, covering Power BI, Microsoft Fabric, AI, and the real-world data and analytics problems I come across along the way.
Discover more from BI Insight
Subscribe to get the latest posts sent to your email.