{{ query.config.name }}
{% if query.sampled %}
Using {{ query.sampleSize / query.sampleSpace * 100 }}% of data as a sample.
{% endif %}
{% for metric, data in query.data.items() %}
{{ metric }}
Dimension(s) |
Value |
Percent of total |
{% for label, value in data.items() %}
{{ label }} |
{% set data_type = query.data_types[metric] %}
{% set total = data.total %}
{% if data_type == 'INTEGER' %}
{{ format_comma(value) }} |
{% if total > 0 %}
{{ format_percent(value, total) }}
{% else %}
-
{% endif %}
|
{% elif data_type == 'TIME' %}
{{ format_duration(value) }} |
- |
{% else %}
{{ '{:.1f}'.format(value) }} |
- |
{% endif %}
{% endfor %}
{% endfor %}
{% endfor %}