diff --git a/models/reporting/general/mtd_aggregated_metrics.sql b/models/reporting/general/mtd_aggregated_metrics.sql index fe1d00d..75f7601 100644 --- a/models/reporting/general/mtd_aggregated_metrics.sql +++ b/models/reporting/general/mtd_aggregated_metrics.sql @@ -18,6 +18,7 @@ select value as value, previous_year_value as previous_year_value, 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 diff --git a/models/reporting/general/schema.yaml b/models/reporting/general/schema.yaml index 5d5443a..c3f56e8 100644 --- a/models/reporting/general/schema.yaml +++ b/models/reporting/general/schema.yaml @@ -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