Merged PR 2525: Modified mtd_aggregated_metrics to reporting
# Description Modified mtd_aggregated_metrics to reporting # Checklist - [X] The edited models and dependants run properly with production data. - [X] The edited models are sufficiently documented. - [X] The edited models contain PK tests, and I've ran and passed them. - [X] I have checked for DRY opportunities with other models and docs. - [X] I've picked the right materialization for the affected models. # Other - [ ] Check if a full-refresh is required after this PR is merged. Modified mtd_aggregated_metrics to reporting Related work items: #19559
This commit is contained in:
commit
0777b3210a
2 changed files with 8 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue