From 5e2b1ace98c1fb9cb7d1cc098ed34e57d66f1475 Mon Sep 17 00:00:00 2001 From: Mirna Wong <89008547+mirnawong1@users.noreply.github.com> Date: Tue, 27 Aug 2024 18:10:05 +0100 Subject: [PATCH] add add'l granularities (#5979) adding more granularities to the list per PM request --- website/docs/docs/build/dimensions.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/website/docs/docs/build/dimensions.md b/website/docs/docs/build/dimensions.md index 14548454332..6b665f4251c 100644 --- a/website/docs/docs/build/dimensions.md +++ b/website/docs/docs/build/dimensions.md @@ -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. @@ -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