{% extends "base.html" %} {% from "_macros.html" import money %} {% block title %}Auswertungs-Builder{% endblock %} {% block heading %}Auswertungs-Builder{% endblock %} {% block content %} {% set GROUPS = [ ('month', 'Monat'), ('customer', 'Kunde'), ('rep', 'Vertriebler'), ('item_type', 'Artikel-Typ'), ] %} {% set METRICS = [ ('revenue', 'Umsatz (Netto)'), ('margin', 'Marge ~30 %'), ('count', 'Anzahl Rechnungen'), ] %}

Achsen + Kennzahl wählen

Pivot über Rechnungen — leere Y-Achse zeigt nur 1D-Aggregat. Klick auf eine Zelle drillt zu der entsprechenden Liste in der Hauptanwendung.

Zurück zum Reports-Dashboard
CSV-Export

{{ pivot.x_label }}{% if pivot.y_label %} × {{ pivot.y_label }}{% endif %} · {% for k, label in METRICS %}{% if pivot.metric == k %}{{ label }}{% endif %}{% endfor %}

{{ pivot.date_from }} bis {{ pivot.date_to }} — Gesamtsumme: {% if pivot.metric == 'count' %}{{ pivot.grand_total|int }}{% else %}{{ money(pivot.grand_total) }}{% endif %}

{% if pivot.x_labels %}
{% if pivot.group_y %} {% for y in pivot.y_labels %} {% endfor %} {% else %} {% endif %} {% for x in pivot.x_labels %} {% if pivot.group_y %} {% for y in pivot.y_labels %} {% set v = pivot.matrix.get(x, {}).get(y, 0) %} {% endfor %} {% else %} {% endif %} {% endfor %} {% if pivot.group_y %} {% for y in pivot.y_labels %} {% endfor %} {% endif %}
{{ pivot.x_label }}{{ y }}Summe{% for k, label in METRICS %}{% if pivot.metric == k %}{{ label }}{% endif %}{% endfor %}
{{ x }} {% if v %} {% if pivot.metric == 'count' %}{{ v|int }}{% else %}{{ '%.2f'|format(v) }}{% endif %} {% else %} {% endif %} {% if pivot.metric == 'count' %}{{ pivot.totals_x[x]|int }}{% else %}{{ '%.2f'|format(pivot.totals_x[x]) }}{% endif %} {% if pivot.metric == 'count' %}{{ pivot.totals_x[x]|int }}{% else %}{{ '%.2f'|format(pivot.totals_x[x]) }}{% endif %}
Summe {% if pivot.metric == 'count' %}{{ pivot.totals_y[y]|int }}{% else %}{{ '%.2f'|format(pivot.totals_y[y]) }}{% endif %} {% if pivot.metric == 'count' %}{{ pivot.grand_total|int }}{% else %}{{ '%.2f'|format(pivot.grand_total) }}{% endif %}
{% else %}
Keine Daten im gewählten Zeitraum.
{% endif %}
{% endblock %}