The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:
TypeScript analyticsbibusiness-intelligencebusinessintelligenceclojuredashboarddatadata-analysisdata-visualizationdatabasemetabasemysqlpostgrespostgresqlreportingslacksql-editorvisualization
docs: new dimension picker in metrics explorer (#76552)
Michael Eby1fe4641c3e3e
diff --git a/docs/questions/images/break-out-metric.png b/docs/questions/images/break-out-metric.pngindex ac430f4edc7..4b4a37d6206 100644Binary files a/docs/questions/images/break-out-metric.png and b/docs/questions/images/break-out-metric.png differdiff --git a/docs/questions/images/breakout-chart-explorer.png b/docs/questions/images/breakout-chart-explorer.pngindex 0d7cdc26abe..e3d2a1ced62 100644Binary files a/docs/questions/images/breakout-chart-explorer.png and b/docs/questions/images/breakout-chart-explorer.png differdiff --git a/docs/questions/images/metrics-explorer-time-bucket-comparison.png b/docs/questions/images/metrics-explorer-time-bucket-comparison.pngnew file mode 100644index 00000000000..d0c45835f1fBinary files /dev/null and b/docs/questions/images/metrics-explorer-time-bucket-comparison.png differdiff --git a/docs/questions/images/metrics-explorer-time-bucket.png b/docs/questions/images/metrics-explorer-time-bucket.pngnew file mode 100644index 00000000000..3c242aa61eaBinary files /dev/null and b/docs/questions/images/metrics-explorer-time-bucket.png differdiff --git a/docs/questions/images/metrics-explorer.png b/docs/questions/images/metrics-explorer.pngindex 077c7f8cc7d..6bbf61e84d5 100644Binary files a/docs/questions/images/metrics-explorer.png and b/docs/questions/images/metrics-explorer.png differdiff --git a/docs/questions/images/two-metrics.png b/docs/questions/images/two-metrics.pngindex 9cfb1ec5c5f..b8e12b0c327 100644Binary files a/docs/questions/images/two-metrics.png and b/docs/questions/images/two-metrics.png differdiff --git a/docs/questions/metrics-explorer.md b/docs/questions/metrics-explorer.mdindex 998e2ccedaa..772542d5cca 100644--- a/docs/questions/metrics-explorer.md+++ b/docs/questions/metrics-explorer.md@@ -44,10 +44,27 @@ To open a **measure** in the metrics explorer:2. Select your measure.3. On the measure's page, click **three dots** next to the measure's name and select **Explore**.-Once you open a measure or metric in the metrics explorer, Metabase will create tabs plotting the metric/measure along the most appropriate dimensions, as well as the **Totals** tab with the total result of the metric, without any dimensions applied.+When you open a measure or metric in the Metrics explorer, Metabase plots it along the most appropriate dimension. To change how the metric is broken out, click the current breakout dimension in the bottom controls to open the **Break out** sidebar.++By default, the sidebar lists all available dimensions. The heading reads **Dimensions** when you select a single metric or measure, or **Shared dimensions** when you compare multiple metrics or measures.++To break out by a column that isn't listed, click **See all**. This shows every column from the table the metric or measure is built on, and any related tables. To see the total result without any dimensions, select **No breakout**.You can also [break out](#break-out-by-dimensions) a metric/measure by additional dimensions or [filter the metric/measure](#filter-metrics-and-measures).+Column labels are hidden from the visualization by default. To show them, open the **...** menu in the bottom controls and enable the **Show column labels** toggle.++### Time and country dimensions++Metabase collapses all time columns into a single **Time** bucket and all country columns into a single **Country** bucket.++- A column appears in the **Time** bucket based on its data type, so any date or datetime column is included.+- A column appears in the **Country** bucket based on its semantic type, so the **Country** bucket only appears when a column has the **Country** semantic type.++To break out by a specific time or country column, click the slider button next to **Time** or **Country** and choose one.+++## Compare metrics and measuresTo compare multiple metrics or measures:@@ -59,25 +76,17 @@ To compare multiple metrics or measures:-You can add the same metric/measure multiple times. This is useful if you want to [break out](#break-out-by-dimensions) or [filter](#filter-metrics-and-measures) the metric, while keeping the total trend visibile. For example, you might want to compare the trend of total revenue to the revenue of a single product category.+You can add the same metric/measure multiple times. This is useful if you want to [break out](#break-out-by-dimensions) or [filter](#filter-metrics-and-measures) the metric, while keeping the total trend visible. For example, you might want to compare the trend of total revenue to the revenue of a single product category.-Once you pick the metrics, you'll see the dimensions of the first metric/measure below the search bar. You can pick a dimension to compare metrics/measures (for example, if you want to see how both Number of Orders and Revenue change by date, state, or product category).+Once you pick the metrics or measures, open the **Break out** sidebar to choose a dimension to compare them by. Metabase matches dimensions across metrics/measures differently depending on the column type:---Metabase will automatically detect shared dimensions and offer them for comparison, like when the metrics/measures are associated with the same data source, or the underlying data sources have foreign key relationships to another shared data source.--If your metrics/measures don't have shared dimensions, you'll need to select a dimension for comparison:--1. Click on the **+** under the search bar to select a dimension for the first metric/measure.+- **Compare across different time or country columns.** If your metrics/measures have time or country dimensions, you can choose which column each metric/measure uses for the comparison, even if they're different columns. For example, you can compare Orders by their order date with Reviews by their review date. Click the slider icon next to **Time** or **Country** to choose a dimension for each metric/measure.+ +- **Other columns require an exact match.** The column appears as a comparison option under **Shared dimensions** only if both metrics/measures have it. To break out by a column that only one metric/measure has, click **See all** and select that column. Metabase applies the breakout to that metric/measure and disables the other.- --2. At the bottom of the screen, select compatible dimensions for other metrics/measures.-- +-When your metrics/measures don't have shared dimensions, Metabase has no way of knowing how the dimensions relate to each other, so it's on you to make sure the dimensions you pick make sense to compare!+Metabase treats dimensions as shared when the metrics or measures come from the same data source, or when their data sources have foreign key relationships to a common data source.You can [filter](#filter-metrics-and-measures) or [break out](#break-out-by-dimensions) each metric/measure separately, or [do simple calculations with metrics/measures](#calculations-with-metrics-and-measures).@@ -89,12 +98,12 @@ You can also break out each metric by additional dimensions. For example, you miTo break out a metric or measure by additional dimensions:-1. Click on the metric's card in the search bar.-2. Select **Break out**+1. Click the metric's card in the search bar.+2. Select **Add a series breakout**3. Choose the breakout dimension.-To remove the breakout, click on the measure/metric card in the search bar again and select **Remove breakout**.+To remove the breakout, click on the measure/metric card in the search bar again and select **Remove series breakout**.## Filter metrics and measures