From 6a7b8517a0a1d6c7601fad307c540eaa8cff79dd Mon Sep 17 00:00:00 2001 From: dev <30949154+Thelegendlink@users.noreply.github.com> Date: Wed, 24 Jan 2024 22:36:20 +1100 Subject: [PATCH 1/2] Update semantic-layer-6-advanced-metrics.md Fix indent --- .../semantic-layer-6-advanced-metrics.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/website/docs/best-practices/how-we-build-our-metrics/semantic-layer-6-advanced-metrics.md b/website/docs/best-practices/how-we-build-our-metrics/semantic-layer-6-advanced-metrics.md index e5c6e452dac..b8bc119fef4 100644 --- a/website/docs/best-practices/how-we-build-our-metrics/semantic-layer-6-advanced-metrics.md +++ b/website/docs/best-practices/how-we-build-our-metrics/semantic-layer-6-advanced-metrics.md @@ -21,13 +21,13 @@ We're not limited to just passing measures through to our metrics, we can also _ ```YAML - name: food_revenue - description: The revenue from food in each order. - label: Food Revenue - type: simple - type_params: - measure: revenue - filter: | - {{ Dimension('order__is_food_order') }} = true + description: The revenue from food in each order. + label: Food Revenue + type: simple + type_params: + measure: revenue + filter: | + {{ Dimension('order__is_food_order') }} = true ``` - 📝 Now we can set up our ratio metric. From b97f408dcc83adb1fa3a6cd36f320949319277c8 Mon Sep 17 00:00:00 2001 From: dev <30949154+Thelegendlink@users.noreply.github.com> Date: Wed, 24 Jan 2024 23:13:27 +1100 Subject: [PATCH 2/2] Update semantic-layer-6-advanced-metrics.md Update measure: revenue to be food_revenue and remove filter --- .../semantic-layer-6-advanced-metrics.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/website/docs/best-practices/how-we-build-our-metrics/semantic-layer-6-advanced-metrics.md b/website/docs/best-practices/how-we-build-our-metrics/semantic-layer-6-advanced-metrics.md index b8bc119fef4..66523ab7efa 100644 --- a/website/docs/best-practices/how-we-build-our-metrics/semantic-layer-6-advanced-metrics.md +++ b/website/docs/best-practices/how-we-build-our-metrics/semantic-layer-6-advanced-metrics.md @@ -25,9 +25,7 @@ We're not limited to just passing measures through to our metrics, we can also _ label: Food Revenue type: simple type_params: - measure: revenue - filter: | - {{ Dimension('order__is_food_order') }} = true + measure: food_revenue ``` - 📝 Now we can set up our ratio metric.