You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/docs/guides/sl-snowflake-qs.md
+46-43Lines changed: 46 additions & 43 deletions
Original file line number
Diff line number
Diff line change
@@ -26,14 +26,33 @@ import SlSetUp from '/snippets/_new-sl-setup.md';
26
26
27
27
The [dbt Semantic Layer](/docs/use-dbt-semantic-layer/dbt-sl), powered by [MetricFlow](/docs/build/about-metricflow), simplifies the setup of key business metrics. It centralizes definitions, avoids duplicate code, and ensures easy access to metrics in downstream tools. MetricFlow helps manage company metrics easier, allowing you to define metrics in your dbt project and query them in dbt Cloud with [MetricFlow commands](/docs/build/metricflow-commands).
28
28
29
-
30
29
import SLCourses from '/snippets/_sl-course.md';
31
30
32
31
<SLCourses/>
33
32
34
-
This quickstart guide is designed for dbt Cloud users using Snowflake as their data platform. It focuses on building and defining metrics, setting up the dbt Semantic Layer in a dbt Cloud project, and querying metrics in Google Sheets.
33
+
This quickstart guide is designed for dbt Cloud users using Snowflake as their data platform. It focuses on building and defining metrics, setting up the dbt Semantic Layer in a dbt Cloud project, and querying metrics in Google Sheets.
34
+
35
+
If you're on different data platforms, you can also follow this guide and will need to modify the setup for the specific platform. See the [users on different platforms](#for-users-on-different-data-platforms) section for more information.
36
+
37
+
### Prerequisites
38
+
39
+
- You need a [dbt Cloud](https://www.getdbt.com/signup/) Trial, Team, or Enterprise account for all deployments. Contact your representative for Single-tenant setup; otherwise, create an account using this guide.
40
+
- Have the correct [dbt Cloud license](/docs/cloud/manage-access/seats-and-users) and [permissions](/docs/cloud/manage-access/enterprise-permissions) based on your plan:
41
+
<DetailsTogglealt_header="More info on license and permissions">
42
+
43
+
- Enterprise — Developer license with Account Admin permissions. Or "Owner" with a Developer license, assigned Project Creator, Database Admin, or Admin permissions.
44
+
- Team — "Owner" access with a Developer license.
45
+
- Trial — Automatic "Owner" access under a Team plan trial.
46
+
47
+
</DetailsToggle>
48
+
49
+
- Create a [trial Snowflake account](https://signup.snowflake.com/):
50
+
- Select the Enterprise Snowflake edition with ACCOUNTADMIN access. Consider organizational questions when choosing a cloud provider, and refer to Snowflake's [Introduction to Cloud Platforms](https://docs.snowflake.com/en/user-guide/intro-cloud-platforms).
51
+
- Select a cloud provider and region. All cloud providers and regions will work so choose whichever you prefer.
52
+
- Basic understanding of SQL and dbt. For example, you've used dbt before or have completed the [dbt Fundamentals](https://learn.getdbt.com/courses/dbt-fundamentals) course.
35
53
36
-
**For users on different data platforms**
54
+
55
+
### For users on different data platforms
37
56
38
57
If you're using a data platform other than Snowflake, this guide is also applicable to you. You can adapt the setup for your specific platform by following the account setup and data loading instructions detailed in the following tabs for each respective platform.
39
58
@@ -94,41 +113,6 @@ Open a new tab and follow these quick steps for account setup and data loading i
94
113
95
114
</Tabs>
96
115
97
-
## Prerequisites
98
-
99
-
- You need a [dbt Cloud](https://www.getdbt.com/signup/) Trial, Team, or Enterprise account for all deployments. Contact your representative for Single-tenant setup; otherwise, create an account using this guide.
100
-
- Have the correct [dbt Cloud license](/docs/cloud/manage-access/seats-and-users) and [permissions](/docs/cloud/manage-access/enterprise-permissions) based on your plan:
101
-
<DetailsTogglealt_header="More info on license and permissions">
102
-
103
-
- Enterprise — Developer license with Account Admin permissions. Or "Owner" with a Developer license, assigned Project Creator, Database Admin, or Admin permissions.
104
-
- Team — "Owner" access with a Developer license.
105
-
- Trial — Automatic "Owner" access under a Team plan trial.
106
-
107
-
</DetailsToggle>
108
-
109
-
- Create a [trial Snowflake account](https://signup.snowflake.com/):
110
-
- Select the Enterprise Snowflake edition with ACCOUNTADMIN access. Consider organizational questions when choosing a cloud provider, refer to Snowflake's [Introduction to Cloud Platforms](https://docs.snowflake.com/en/user-guide/intro-cloud-platforms).
111
-
- Select a cloud provider and region. All cloud providers and regions will work so choose whichever you prefer.
112
-
- Basic understanding of SQL and dbt. For example, you've used dbt before or have completed the [dbt Fundamentals](https://learn.getdbt.com/courses/dbt-fundamentals) course.
113
-
114
-
### What you'll learn
115
-
116
-
This guide will cover the following topics:
117
-
118
-
-[Create a new Snowflake worksheet and set up your environment](/guides/sl-snowflake-qs?step=3)
119
-
-[Load sample data into your Snowflake account](/guides/sl-snowflake-qs?step=4)
120
-
-[Connect dbt Cloud to Snowflake](/guides/sl-snowflake-qs?step=5)
121
-
-[Set up a dbt Cloud managed repository](/guides/sl-snowflake-qs?step=6)
122
-
-[Initialize a dbt Cloud project and start developing](/guides/sl-snowflake-qs?step=7)
123
-
-[Build your dbt Cloud project](/guides/sl-snowflake-qs?step=8)
124
-
-[Create a semantic model in dbt Cloud](/guides/sl-snowflake-qs?step=9)
125
-
-[Define metrics in dbt Cloud](/guides/sl-snowflake-qs?step=10)
126
-
-[Add second semantic model](/guides/sl-snowflake-qs?step=11)
127
-
-[Test and query metrics in dbt Cloud](/guides/sl-snowflake-qs?step=12)
128
-
-[Run a production job in dbt Cloud](/guides/sl-snowflake-qs?step=13)
129
-
-[Set up dbt Semantic Layer in dbt Cloud](/guides/sl-snowflake-qs?step=14)
130
-
-[Connect and query metrics with Google Sheets](/guides/sl-snowflake-qs?step=15)
131
-
132
116
## Create new Snowflake worksheet and set up environment
133
117
134
118
1. Log in to your [trial Snowflake account](https://signup.snowflake.com).
Now that your environment is set up, you can start loading data into it. You will be working within the raw database, using the `jaffle_shop` and stripe schemas to organize your tables.
163
147
164
148
1. Create customer table. First, delete all contents (empty) in the Editor of the Snowflake worksheet. Then, run this SQL command to create the customer table in the `jaffle_shop` schema:
@@ -332,12 +316,16 @@ Using Partner Connect allows you to create a complete dbt account with your [Sno
332
316
</TabItem>
333
317
</Tabs>
334
318
335
-
## Set up a dbt Cloud managed repository
319
+
## Set up dbt Cloud project
320
+
321
+
In this section, you will set up a dbt Cloud managed repository and initialize your dbt project to start developing.
322
+
323
+
### Set up a dbt Cloud managed repository
336
324
If you used Partner Connect, you can skip to [initializing your dbt project](#initialize-your-dbt-project-and-start-developing) as Partner Connect provides you with a [managed repository](/docs/cloud/git/managed-repository). Otherwise, you will need to create your repository connection.
337
325
338
326
<Snippetpath="tutorial-managed-repo" />
339
327
340
-
## Initialize your dbt project and start developing
328
+
###Initialize your dbt project
341
329
This guide assumes you use the [dbt Cloud IDE](/docs/cloud/dbt-cloud-ide/develop-in-the-cloud) to develop your dbt project, define metrics, and query and preview metrics using [MetricFlow commands](/docs/build/metricflow-commands).
342
330
343
331
Now that you have a repository configured, you can initialize your project and start development in dbt Cloud using the IDE:
@@ -637,12 +625,15 @@ semantic_models:
637
625
638
626
</File>
639
627
628
+
### Semantic model components
629
+
640
630
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.
641
631
642
632
- [Entities](#entities) act as unique identifiers (like ID columns) that link data together from different tables.
643
633
- [Dimensions](#dimensions) categorize and filter data, making it easier to organize.
644
634
- [Measures](#measures) calculates data, providing valuable insights through aggregation.
645
635
636
+
646
637
### Entities
647
638
648
639
[Entities](/docs/build/semantic-models#entities) are a real-world concept in a business, serving as the backbone of your semantic model. These are going to be ID columns (like `order_id`) in our semantic models. These will serve as join keys to other semantic models.
@@ -753,7 +744,11 @@ semantic_models:
753
744
754
745
</File>
755
746
756
-
## Define metrics
747
+
## Define metrics and add a second semantic model
748
+
749
+
In this section, you will [define metrics](#define-metrics) and [add a second semantic model](#add-second-semantic-model-to-your-project) to your project.
750
+
751
+
### Define metrics
757
752
758
753
[Metrics](/docs/build/metrics-overview) are the language your business users speak and measure business performance. They are an aggregation over a column in your warehouse that you enrich with dimensional cuts.
759
754
@@ -870,7 +865,7 @@ metrics:
870
865
871
866
</File>
872
867
873
-
## Add second semantic model to your project
868
+
### Add second semantic model to your project
874
869
875
870
Great job, you've successfully built your first semantic model! It has all the required elements: entities, dimensions, measures, and metrics.
In this section, you will learn how to set up the dbt Semantic Layer, add credentials, and create service tokens. This section goes over the following topics:
954
+
955
+
- [Select environment](#1-select-environment)
956
+
- [Add a credential and create service tokens](#2-add-a-credential-and-create-service-tokens)
Copy file name to clipboardExpand all lines: website/snippets/_new-sl-setup.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -97,7 +97,7 @@ We recommend configuring credentials and service tokens to reflect your teams an
97
97
98
98
When you delete a credential, any service tokens mapped to that credential in the project will no longer work and will break for any end users.
99
99
100
-
## Delete configuration
100
+
###Delete configuration
101
101
You can delete the entire Semantic Layer configuration for a project. Note that deleting the Semantic Layer configuration will remove all credentials and unlink all service tokens to the project. It will also cause all queries to the Semantic Layer to fail.
102
102
103
103
Follow these steps to delete the Semantic Layer configuration for a project:
0 commit comments