changed exclusion rule for metrics depending on invoicing
This commit is contained in:
parent
142b5a526f
commit
396d19b549
2 changed files with 32 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue