changed exclusion rule for metrics depending on invoicing

This commit is contained in:
Joaquin Ossa 2025-01-30 15:43:53 +01:00
parent 142b5a526f
commit 396d19b549
2 changed files with 32 additions and 2 deletions

View file

@ -70,7 +70,7 @@ where
or lower(metric) like '%retained%'
or lower(metric) like '%damage host%'
)
and {{ is_date_before_previous_month("date") }}
and {{ is_date_before_previous_month_fixed_20("date") }}
)
-- Not show current month if the metric is Expected MRR, unlike other
-- revenue metrics, Expected MRR is calculated for the next month, so it is not
@ -78,7 +78,7 @@ where
or not
(
lower(metric) like '%mrr%'
and date_trunc('month', m.date)::date = date_trunc('month', now())::date
and date_trunc('month', date)::date = date_trunc('month', now())::date
)
-- Keep all history for the rest of metrics
or not