36 lines
No EOL
1.4 KiB
SQL
36 lines
No EOL
1.4 KiB
SQL
/*
|
|
Macro: get_kpi_dimensions
|
|
|
|
Provides a general configuration for the Dimensions available for the KPIs.
|
|
Please note that strings should be encoded with " ' your_value_here ' ",
|
|
while fields from tables should be specified like " your_field_here "
|
|
*/
|
|
|
|
{% macro get_kpi_dimensions() %}
|
|
{% set dimensions = [
|
|
{"dimension": "'global'", "dimension_value": "'global'"},
|
|
{"dimension": "'by_number_of_listings'", "dimension_value": "active_accommodations_per_deal_segmentation"},
|
|
{"dimension": "'by_billing_country'", "dimension_value": "main_billing_country_iso_3_per_deal"}
|
|
] %}
|
|
{{ return(dimensions) }}
|
|
{% endmacro %}
|
|
|
|
|
|
/*
|
|
Macro: get_kpi_dimensions_for_production
|
|
|
|
Provides the list of Dimensions that will be available in production for the KPIs.
|
|
This configuration ensures that working with new dimensions won't affect the display
|
|
until all development work has been done.
|
|
Additionally, it provides a proper display name for reporting purposes.
|
|
|
|
*/
|
|
|
|
{% macro get_kpi_dimensions_for_production() %}
|
|
{% set dimensions = [
|
|
{"dimension": "'global'", "dimension_display": "'Global'"},
|
|
{"dimension": "'by_number_of_listings'", "dimension_display": "'By # of Listings Booked in 12 Months'"},
|
|
{"dimension": "'by_billing_country'", "dimension_display": "'By Billing Country'"}
|
|
] %}
|
|
{{ return(dimensions) }}
|
|
{% endmacro %} |