From 6c60d45e3a6599200aa04f33ee3acb173ba3c71f Mon Sep 17 00:00:00 2001 From: morgan-at-cube <153563892+morgan-at-cube@users.noreply.github.com> Date: Thu, 9 May 2024 16:12:52 -0700 Subject: [PATCH 1/2] Update measures.mdx Please note that Redshift does not support intervals of type month or year. --- docs/pages/reference/data-model/measures.mdx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/pages/reference/data-model/measures.mdx b/docs/pages/reference/data-model/measures.mdx index bcab9a012e8e7..8dc174896566d 100644 --- a/docs/pages/reference/data-model/measures.mdx +++ b/docs/pages/reference/data-model/measures.mdx @@ -257,6 +257,12 @@ with a defined date range. + + +Please note that Redshift does not support intervals of type month or year. + + + These parameters have a format defined as `(-?\d+) (minute|hour|day|week|month|year)`. The `trailing` and `leading` parameters can also be set to an `unbounded` value, which means infinite size From 88aa9497010019058670c32fa38c2e8f71bd3a3c Mon Sep 17 00:00:00 2001 From: morgan-at-cube <153563892+morgan-at-cube@users.noreply.github.com> Date: Thu, 9 May 2024 16:14:43 -0700 Subject: [PATCH 2/2] Update period-over-period.mdx Please note that Redshift does not support intervals of type month or year. --- .../guides/recipes/data-modeling/period-over-period.mdx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/pages/guides/recipes/data-modeling/period-over-period.mdx b/docs/pages/guides/recipes/data-modeling/period-over-period.mdx index d14b7360ded30..1bbc51a0bcf2f 100644 --- a/docs/pages/guides/recipes/data-modeling/period-over-period.mdx +++ b/docs/pages/guides/recipes/data-modeling/period-over-period.mdx @@ -17,6 +17,12 @@ _previous period_. these `rolling_window` measures and uses them in a calculation, e.g., divides or subtracts them. + + +Please note that Redshift does not support intervals of type month or year. + + + The following data model allows to calculate a month-over-month change of some value. `current_month_sum` and `previous_month_sum` measures define two rolling windows and the `month_over_month_ratio` measure divides @@ -89,4 +95,4 @@ Here's the result: [ref-rolling-window]: /reference/data-model/measures#rolling_window [ref-calculated-measure]: /product/data-modeling/overview#4-using-calculated-measures -[ref-time-dimension-granularity]: /product/apis-integrations/rest-api/query-format#time-dimensions-format \ No newline at end of file +[ref-time-dimension-granularity]: /product/apis-integrations/rest-api/query-format#time-dimensions-format