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
|
|
@ -20,6 +20,10 @@ It provides a proper display name for reporting purposes.
|
|||
{{ return(dimensions) }}
|
||||
{% endmacro %}
|
||||
|
||||
{% macro capitalise_and_remove_underscores(field_name) %}
|
||||
initcap(regexp_replace({{ field_name }}, '_', ' ', 'g'))
|
||||
{% endmacro %}
|
||||
|
||||
/*
|
||||
The following lines specify for each dimension the field to be used in a
|
||||
standalone macro.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue