From 8eaccf2870586b80b3be50e17427f6e10d551ded Mon Sep 17 00:00:00 2001 From: dbt-markwan <114556261+dbt-markwan@users.noreply.github.com> Date: Wed, 21 Aug 2024 16:46:08 +1000 Subject: [PATCH] Update sl-snowflake-qs.md In Orders semantic model: Changing customer_id entity to customer to allign with customers semantic model Modifying Large Orders filter to work --- website/docs/guides/sl-snowflake-qs.md | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/website/docs/guides/sl-snowflake-qs.md b/website/docs/guides/sl-snowflake-qs.md index 782073fdc38..27ce6eebbd4 100644 --- a/website/docs/guides/sl-snowflake-qs.md +++ b/website/docs/guides/sl-snowflake-qs.md @@ -661,7 +661,8 @@ semantic_models: entities: - name: order_id type: primary - - name: customer_id + - name: customer + expr: customer_id type: foreign ``` @@ -686,8 +687,9 @@ semantic_models: entities: - name: order_id type: primary - - name: customer_id - type: foreign + - name: customer + expr: customer_id + type: foreign # Newly added dimensions: - name: order_date @@ -717,7 +719,8 @@ semantic_models: entities: - name: order_id type: primary - - name: customer_id + - name: customer + expr: customer_id type: foreign dimensions: - name: order_date @@ -777,7 +780,8 @@ semantic_models: entities: - name: order_id type: primary - - name: customer_id + - name: customer + expr: customer_id type: foreign dimensions: - name: order_date @@ -825,7 +829,7 @@ metrics: type_params: measure: order_count filter: | - {{ Dimension('order_id__order_total_dim') }} >= 20 + {{ Metric('order_total', group_by=['order_id']) }} >= 20 # Ratio type metric - name: "avg_order_value" label: "avg_order_value"