Transformations
Summarising and Aggregating
Use these when you want totals, averages, or counts instead of showing every individual row.
Reduce — DF_REDUCE
Collapse all rows into a single summary row.
Use this when: you want one headline number per column — like total energy consumed, average temperature, or peak demand.
Available calculations: sum, avg, min, max, count, first, last.
Before
Code
After — total kWh and average temperature
Code
Code
Group By — DF_GROUP_BY
Summarise your data within groups, giving you one summary row per group.
Use this when: you want totals or averages broken down by a category — for example, total energy per floor, or average temperature per device type.
Before
Code
After — total kWh grouped by floor
Code
Code
Last modified on