2024-08-08 13:19:57 +00:00
|
|
|
/*
|
2024-08-19 09:57:28 +00:00
|
|
|
Macro: get_kpi_dimensions
|
|
|
|
|
|
2024-08-08 13:19:57 +00:00
|
|
|
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"}
|
|
|
|
|
] %}
|
|
|
|
|
{{ return(dimensions) }}
|
2024-08-19 09:57:28 +00:00
|
|
|
{% 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.
|
|
|
|
|
|
|
|
|
|
To be added: 'by_number_of_listings'
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
{% macro get_kpi_dimensions_for_production() %}
|
|
|
|
|
{% set dimensions = "('global')" %}
|
|
|
|
|
{{ return(dimensions) }}
|
2024-08-08 13:19:57 +00:00
|
|
|
{% endmacro %}
|