Addressed comments
This commit is contained in:
parent
21858d4d59
commit
64c3c6d1f0
8 changed files with 75 additions and 54 deletions
|
|
@ -81,10 +81,16 @@ Please note that strings should be encoded with " ' your_value_here ' ",
|
|||
{{ return({"dimension": "'by_dash_source'", "dimension_value": "dash_source"}) }}
|
||||
{% endmacro %}
|
||||
{% macro dim_has_payment() %}
|
||||
{{ return({"dimension": "'by_has_payment'", "dimension_value": "'has_payment'"}) }}
|
||||
{{ return({
|
||||
"dimension": "'by_has_payment'",
|
||||
"dimension_value": "case when has_payment then 'True' else 'False' end"
|
||||
}) }}
|
||||
{% endmacro %}
|
||||
{% macro dim_has_id_check() %}
|
||||
{{ return({"dimension": "'by_has_id_check'", "dimension_value": "'has_id_check'"}) }}
|
||||
{{ return({
|
||||
"dimension": "'by_has_id_check'",
|
||||
"dimension_value": "case when has_id_check then 'True' else 'False' end"
|
||||
}) }}
|
||||
{% endmacro %}
|
||||
|
||||
/*
|
||||
|
|
@ -114,7 +120,7 @@ Provides a general assignemnt for the Dimensions available for each KPI
|
|||
{% endif %}
|
||||
|
||||
{# Add entity-specific dimensions #}
|
||||
{% if entity_name == "GUEST_JOURNEY_METRICS" %}
|
||||
{% if entity_name == "CHECK_IN_ATTRIBUTED_GUEST_JOURNEYS" %}
|
||||
{% set additional_dimensions = [dim_has_payment(), dim_has_id_check()] %}
|
||||
{% endif %}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue