Merged PR 3605: Beautification of Reporting String values
# Description Creates a macro for beautification of categorical values. # 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. Related work items: #20809
This commit is contained in:
parent
86c81c1f21
commit
c23380583b
3 changed files with 17 additions and 13 deletions
|
|
@ -4,9 +4,9 @@ with
|
|||
)
|
||||
select
|
||||
date as date,
|
||||
time_granularity as time_granularity,
|
||||
dimension as dimension,
|
||||
dimension_value as dimension_value,
|
||||
{{ capitalise_and_remove_underscores("time_granularity") }} as time_granularity,
|
||||
{{ capitalise_and_remove_underscores("dimension") }} as dimension,
|
||||
{{ capitalise_and_remove_underscores("dimension_value") }} as dimension_value,
|
||||
created_services as created_services,
|
||||
booking_with_created_services_count as booking_with_created_services_count
|
||||
from int_kpis__product_new_dash_agg_metrics
|
||||
|
|
|
|||
|
|
@ -233,8 +233,8 @@ models:
|
|||
tests:
|
||||
- accepted_values:
|
||||
values:
|
||||
- daily
|
||||
- monthly
|
||||
- Daily
|
||||
- Monthly
|
||||
|
||||
- name: dimension
|
||||
data_type: string
|
||||
|
|
@ -242,14 +242,14 @@ models:
|
|||
tests:
|
||||
- accepted_values:
|
||||
values:
|
||||
- global
|
||||
- by_number_of_listings
|
||||
- by_billing_country
|
||||
- by_deal
|
||||
- by_new_dash_version
|
||||
- by_has_upgraded_service
|
||||
- by_service
|
||||
- by_host
|
||||
- "Global"
|
||||
- "By Number Of Listings"
|
||||
- "By Billing Country"
|
||||
- "By Deal"
|
||||
- "By New Dash Version"
|
||||
- "By Has Upgraded Service"
|
||||
- "By Service"
|
||||
- "By Host"
|
||||
|
||||
- name: dimension_value
|
||||
data_type: string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue