reporting schema
This commit is contained in:
parent
05d5cc6d10
commit
df16cdb00c
4 changed files with 109 additions and 144 deletions
|
|
@ -166,7 +166,7 @@ models:
|
|||
description: The full date for the last day of the year.
|
||||
|
||||
- name: daily_currency_exchange_rates
|
||||
description:
|
||||
description:
|
||||
This model holds a lot of data on currency exchange rates. The time
|
||||
granularity is daily. Each record holds a currency pair for a specific
|
||||
day, source and version.
|
||||
|
|
@ -306,7 +306,7 @@ models:
|
|||
It's the main source of information for the Main KPIs reporting, specifically
|
||||
on the MTD (Month To Date) and the Monthly Overview.
|
||||
|
||||
tests:
|
||||
tests:
|
||||
- dbt_utils.unique_combination_of_columns:
|
||||
combination_of_columns:
|
||||
- date
|
||||
|
|
@ -322,7 +322,7 @@ models:
|
|||
- not_null
|
||||
|
||||
- name: month
|
||||
data_type: int
|
||||
data_type: int
|
||||
description: Month number of the given date.
|
||||
tests:
|
||||
- not_null
|
||||
|
|
@ -370,11 +370,11 @@ models:
|
|||
The dimension or granularity of the metrics. Keep in mind that
|
||||
in this reporting model this field corresponds to the
|
||||
dimension_display; this is, the name of the dimension for
|
||||
displaying purposes.
|
||||
displaying purposes.
|
||||
|
||||
tests:
|
||||
- not_null
|
||||
|
||||
|
||||
- name: dimension_value
|
||||
data_type: string
|
||||
description: The value or segment available for the selected dimension.
|
||||
|
|
@ -404,31 +404,31 @@ models:
|
|||
data_type: text
|
||||
description: Allows for grouping and formatting for displaying purposes.
|
||||
tests:
|
||||
- accepted_values:
|
||||
values: ['integer', 'percentage', 'currency_gbp']
|
||||
- accepted_values:
|
||||
values: ["integer", "percentage", "currency_gbp"]
|
||||
|
||||
- name: value
|
||||
data_type: numeric
|
||||
description: |
|
||||
data_type: numeric
|
||||
description: |
|
||||
Numeric value (integer or decimal) that corresponds to the MTD computation of the metric
|
||||
at a given date. Note that if the month is not in progress, then this value corresponds
|
||||
to the monthly figure.
|
||||
|
||||
- name: previous_year_value
|
||||
data_type: numeric
|
||||
description: |
|
||||
data_type: numeric
|
||||
description: |
|
||||
Numeric value (integer or decimal) that corresponds to the MTD computation of the metric
|
||||
on the previous year at a given date.
|
||||
|
||||
- name: relative_increment
|
||||
data_type: numeric
|
||||
description: |
|
||||
data_type: numeric
|
||||
description: |
|
||||
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: |
|
||||
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
|
||||
|
|
@ -448,9 +448,9 @@ models:
|
|||
the int_mtd_aggregated metrics because 1) the mtd version contains more computing dates
|
||||
than the by deal version, the latest being a subset of the first, and 2) the deal based model
|
||||
enforces that a booking/guest journey/listing/etc has a host with a deal assigned, which is
|
||||
not necessarily the case.
|
||||
not necessarily the case.
|
||||
|
||||
tests:
|
||||
tests:
|
||||
- dbt_utils.unique_combination_of_columns:
|
||||
combination_of_columns:
|
||||
- date
|
||||
|
|
@ -463,10 +463,10 @@ models:
|
|||
tests:
|
||||
- not_null
|
||||
- latest_date_is_yesterday
|
||||
|
||||
|
||||
- name: id_deal
|
||||
data_type: character varying
|
||||
description: Id of the deal associated to the host.
|
||||
description: Id of the deal associated to the host.
|
||||
tests:
|
||||
- not_null
|
||||
|
||||
|
|
@ -490,7 +490,7 @@ models:
|
|||
- not_null
|
||||
|
||||
- name: month
|
||||
data_type: int
|
||||
data_type: int
|
||||
description: month number of the given date.
|
||||
tests:
|
||||
- not_null
|
||||
|
|
@ -499,4 +499,4 @@ models:
|
|||
data_type: int
|
||||
description: day monthly number of the given date.
|
||||
tests:
|
||||
- not_null
|
||||
- not_null
|
||||
Loading…
Add table
Add a link
Reference in a new issue