Skip to content

Commit

Permalink
Update sl-jdbc.md
Browse files Browse the repository at this point in the history
fixing some updates
  • Loading branch information
rpourzand authored Dec 8, 2023
1 parent 8c510b7 commit 436577f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions website/docs/docs/dbt-cloud-apis/sl-jdbc.md
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ Where Filters have a few objects that you can use:
Note: If you prefer a more explicit path to create the `where` clause, you can optionally use the `TimeDimension` feature. This helps separate out categorical dimensions from time-related ones. The `TimeDimension` input takes the time dimension name optionally requires granularity, like this: `TimeDimension('metric_time', 'month')`.
For both `TimeDimension()` and `Dimension()` objects, the grain is only required if the aggregation time dimensions for the measures & metrics associated with the where filter have different grains.
For both `TimeDimension()` and `Dimension()` objects, the grain is only required if in the WHERE filter if the aggregation time dimensions for the measures & metrics associated with the where filter have different grains.
For example, consider this Semantic Model and Metric Config which contains two metrics that are aggregated across different time grains. This example shows a single Semantic Model, but the same goes for metrics across more than one Semantic Model.
Expand All @@ -287,10 +287,10 @@ defaults:
time_granularity: month
- name: order_year
type: time
time_granularity: year
type_params:
time_granularity: year
...
metrics:
name: metric_0
description: A metric with a month grain.
Expand All @@ -306,7 +306,7 @@ metrics:
```
Assuming the user is querying metric_0 and metric_1 together, a valid filter would be:
Assuming the user is querying metric_0 and metric_1 together in a single request, a valid WHERE filter would be:
* `"{{ TimeDimension('metric_time', 'year') }} > '2020-01-01'"`
Expand Down

0 comments on commit 436577f

Please sign in to comment.