From 4879d7d6148db7affd2ffe97d1b9a0506d99d501 Mon Sep 17 00:00:00 2001 From: Jeff Bruemmer <jeff.bruemmer@gmail.com> Date: Thu, 4 Apr 2024 11:53:28 -0400 Subject: [PATCH] docs - mention of raw unformatted results (#41033) --- docs/questions/sharing/exporting-results.md | 2 +- docs/questions/sharing/public-links.md | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/docs/questions/sharing/exporting-results.md b/docs/questions/sharing/exporting-results.md index ea62bcf538b..a1d3585f9bc 100644 --- a/docs/questions/sharing/exporting-results.md +++ b/docs/questions/sharing/exporting-results.md @@ -29,7 +29,7 @@ Metabase will export the raw results of a question without applying any of the [ ## Exporting data via a public link -You can also create a [public link](../sharing/public-links.md) that people can use to download data in a specific format. +You can also create a [public link](../sharing/public-links.md#public-link-to-export-question-results-in-csv-xlsx-json) that people can use to download data in a specific format, as well as [raw, unformatted question results](public-links.md#exporting-raw-unformatted-question-results). ## Exporting question data via alerts diff --git a/docs/questions/sharing/public-links.md b/docs/questions/sharing/public-links.md index 87ad253bf23..434b5d56c9b 100644 --- a/docs/questions/sharing/public-links.md +++ b/docs/questions/sharing/public-links.md @@ -47,6 +47,18 @@ To create a public link that people can use to download the results of a questio  +### Exporting raw, unformatted question results + +To export the raw, unformatted rows, you'll need to append `?format_rows=false` to the URL Metabase generates. For example, if you create a public link for a CSV download, the URL would look like: + +```html +https://www.example.com/public/question/cf347ce0-90bb-4669-b73b-56c73edd10cb.csv?format_rows=false +``` + +By default, Metabase will export the results of a question that include any formatting you added (for example, if you formatted a column with floats to display as a percentage (o.42 -> 42%)). + +See docs for the [export format endpoint](https://www.metabase.com/docs/latest/api/public#get-apipubliccarduuidqueryexport-format). + ## Simulating drill-through with public links Metabase's automatic [drill-through](https://www.metabase.com/learn/questions/drill-through) won't work on public dashboards because public links don't give people access to your raw data. -- GitLab