Skip to content

Commit

Permalink
update sl guide per feedback (#5325)
Browse files Browse the repository at this point in the history
  • Loading branch information
mirnawong1 authored Apr 24, 2024
2 parents 5df1b48 + 40995ac commit e506a7e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions website/docs/guides/sl-snowflake-qs.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ This guide will cover the following topics:
2. In the Snowflake user interface (UI), click **+ Worksheet** in the upper right corner.
3. Select **SQL Worksheet** to create a new worksheet.


### Set up Snowflake environment

The data used here is stored as CSV files in a public S3 bucket and the following steps will guide you through how to prepare your Snowflake account for that data and upload it.
Expand Down Expand Up @@ -594,10 +593,11 @@ In the following steps, semantic models enable you to define how to interpret th
```yaml
semantic_models:
- name: orders
defaults:
agg_time_dimension: order_date
description: |
Order fact table. This table’s grain is one row per order.
model: ref('fct_orders')
```
The following sections explain [dimensions](/docs/build/dimensions), [entities](/docs/build/entities), and [measures](/docs/build/measures) in more detail, showing how they each play a role in semantic models.
Expand Down Expand Up @@ -823,16 +823,15 @@ semantic_models:
agg_time_dimension: most_recent_order_date
description: |
semantic model for dim_customers
model: ref('customers')
model: ref('dim_customers')
entities:
- name: customer
expr: customer_id
type: primary
dimensions:
- name: customer_name
type: categorical
- name: customer_type
type: categorical
expr: first_name
- name: first_order_date
type: time
type_params:
Expand All @@ -845,8 +844,10 @@ semantic_models:
- name: count_lifetime_orders
description: Total count of orders per customer.
agg: sum
expr: number_of_orders
- name: lifetime_spend
agg: sum
expr: lifetime_value
description: Gross customer lifetime spend inclusive of taxes.
- name: customers
expr: customer_id
Expand Down

0 comments on commit e506a7e

Please sign in to comment.