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
*[Dimensions on calendar tables](#dimensions-on-calendar-tables)
22
23
23
-
<!-- Added by: runner, at: Thu Feb 24 06:10:02 UTC 2022 -->
24
+
<!-- Added by: runner, at: Fri Feb 25 04:07:27 UTC 2022 -->
24
25
25
26
<!--te-->
26
27
@@ -34,8 +35,6 @@ Check [dbt Hub](https://hub.getdbt.com/dbt-labs/dbt_metrics/latest/) for the lat
34
35
To enable the dynamic referencing of models necessary for macro queries through the dbt Server, queries generated by this package do not participate in the DAG and `ref`'d nodes will not necessarily be built before they are accessed. Refer to the docs on [forcing dependencies](https://docs.getdbt.com/reference/dbt-jinja-functions/ref#forcing-dependencies) for more details.
35
36
36
37
# Usage
37
-
38
-
## Inside of dbt Models
39
38
Access metrics [like any other macro](https://docs.getdbt.com/docs/building-a-dbt-project/jinja-macros#using-a-macro-from-a-package):
`start_date` and `end_date` are optional. When not provided, the spine will span all dates from oldest to newest in the metric's dataset. This default is likely to be correct in most cases, but you can use the arguments to either narrow the resulting table or expand it (e.g. if there was no new customers until 3 January but you want to include the first two days as well). Both values are inclusive.
61
+
62
+
# Use cases
63
+
64
+
## Inside of dbt Models
59
65
You may want to materialize the results as a fixed table for querying. This is not the way we expect the dbt Metrics layer to add the most value, but is a way to experiment with the project without needing access to the interactive server.
0 commit comments