Skip to content

Commit

Permalink
add add'l granularities (#5979)
Browse files Browse the repository at this point in the history
adding more granularities to the list per PM request
  • Loading branch information
mirnawong1 authored Aug 27, 2024
1 parent 35ec4ed commit 5e2b1ac
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion website/docs/docs/build/dimensions.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,10 @@ Our supported granularities are:
* second
* minute
* hour
* day
* week
* quarter
* year

Aggregation between metrics with different granularities is possible, with the Semantic Layer returning results at the coarsest granularity by default. For example, when querying two metrics with daily and monthly granularity, the resulting aggregation will be at the monthly level.

Expand Down Expand Up @@ -240,7 +244,7 @@ Here’s an example configuration:
- name: tier_start # The name of the dimension.
type: time # The type of dimension (such as time)
label: "Start date of tier" # A readable label for the dimension
expr: start_date # Expression or column name the the dimension represents
expr: start_date # Expression or column name the dimension represents
type_params: # Additional parameters for the dimension type
time_granularity: day # Specifies the granularity of the time dimension (such as day)
validity_params: # Defines the validity window
Expand Down

0 comments on commit 5e2b1ac

Please sign in to comment.