These are the docs for the Metabase master branch. Some features documented here may not yet be available in the latest release. Check out the docs for the latest version, Metabase v0.55.
Exporting results
You can export the results of a question or dashboard.
Exporting results of a question
To export the results of a question, click on the Download button in the lower right of a question.
You can export the results of a question as:
- .csv
- .xlsx
- .json
- .png (if a chart)
You can choose between downloading the results as:
- Formatted: With any formatting changes you’ve applied in Metabase.
- Unformatted: Metabase will export the raw results of the question without applying any of the formatting you applied to the columns in the question. For example, if you formatted a floating point number to display only the first two decimal digits in the table results, exporting the unformatted results would include additional decimal digits (if any) found in the raw results.
If you don’t see the option to export results, you may not have permissions to download results.
Exporting pivot tables
By default, Metabase will export the pivoted results, but you’ll have the option to export the unpivoted results.
Pivot table in Metabase
Exported unpivoted results
Exported pivoted results
The pivoted results will display as a flat table in Excel, not a native Excel PivotTable.
If you want to use a native Excel PivotTable, you’ll instead want to export the raw, unaggregated rows of data that you’ll need. That is, you’ll want to undo any of the summarizations and groupings in your question, then export the results.
One thing to watch out for: some summarizations in Metabase include implicit joins, so when you drop the summarizations, you may need to join tables to include all of the columns you’ll need.
Raw table (Orders table including joined Products table):
The reason Metabase doesn’t try to export results as a native Excel PivotTable is that Excel doesn’t support all of Metabase’s aggregation functions. Trying to reconstruct Metabase pivot tables as Excel PivotTables without these functions can lead to correctness issues, which defeats the purpose of looking at the data in the first place.
Export limits
You can export (download) up to 1 million rows.
You can change this limit with an environment variable: MB_DOWNLOAD_ROW_LIMIT
.
Cell character limit in Excel exports
When exporting results to an Excel document (.xlsx), Metabase will limit the number of characters per cell to 32,767, which is the character limit enforced by Excel. If you have a bonkers number of characters in a single cell, Metabase will truncate the content to fit within that limit.
Exporting data via a public link
You can create a public link that people can use to download data in a specific format, as well as raw, unformatted question results.
Exporting question data via alerts
You can also export data by setting up an alert.
Exporting results of a dashboard
You can export the results of a dashboard and its cards in different ways:
Export dashboard as PDF
You can export a dashboard as a PDF. Click on the Sharing button, then select Export as PDF.
The PDF will only include screenshots of the charts as they are visible on the dashboard.
Exporting results of a dashboard card
To export the results of a particular card, hover over the dashboard card, click on the three dot menu (…), and select Download results.
From here you can select:
- .csv
- .xlsx
- .json
- .png (if a chart)
To export the raw, unformatted results, hold down the Option
key for Macs, or Alt
key for Windows, then click on the download file format.
If you don’t see this option, you may not have permissions to download results.
Exporting results of a dashboard via dashboard subscriptions
You can use dashboard subscriptions to regularly export data from all questions on a dashboard, and include those results as an attachment.
Remove Metabase branding from exports
By default, data exports (PDFs, PNGs, alert and subscription emails, etc.) feature Metabase branding, like this “Made with Metabase” logo:
To remove the Metabase logo and branding on exports, you’ll need to subscribe to a Pro or Enterprise plan.
Further reading
Read docs for other versions of Metabase.