Fixed models for mtd_aggregated_metrics

This commit is contained in:
Joaquin Ossa 2024-08-08 17:06:11 +02:00
parent 6caac0bb02
commit 87bee4a95a
4 changed files with 83 additions and 15 deletions

View file

@ -17,7 +17,8 @@ select
metric as metric,
value as value,
previous_year_value as previous_year_value,
relative_increment as relative_increment
relative_increment as relative_increment,
relative_increment_with_sign_format as relative_increment_with_sign_format
from int_mtd_aggregated_metrics
/*
The following where condition is applied to avoid displaying revenue metrics

View file

@ -406,6 +406,13 @@ models:
numeric value that corresponds to the relative increment between value and previous year value,
following the computation: value / previous_year_value - 1.
- name: relative_increment_with_sign_format
data_type: numeric
description: |
relative_increment value multiplied by -1 in case this metric's growth doesn't have a
positive impact for Superhog, otherwise is equal to relative_increment.
This value is specially created for formatting in PBI
- name: monthly_aggregated_metrics_history_by_deal
description: |
This model aggregates the monthly historic information regarding the different metrics computed