Skip to content

Pivot Report

A pivot report is one you build by configuring the table rather than drawing it: which variables, under which headings, with which calculation. When you would rather write the page yourself, the other family is the HTML Report.

The Pivot Report screen — the report list above, with Groups, Subgroups and Variables below

The three panels across the lower half of the screen are not incidental; they are the report’s structure:

Report Group (a section of the report) / Subgroup (a heading within the section) / Variable (a calculated cell) Report Group (a section of the report) Subgroup (a heading within the section) Variable (a calculated cell)

Select a report and you see its groups, select a group and you see its subgroups, select a subgroup and you see its variables. Every level carries an order field, and that is what sets the layout of the output.

FieldDescription
NameThe report’s name, up to 100 characters
DescriptionDescription
NoA report number or code
PeriodThe slice the report covers — see below
Report timeThe time the report is produced. Required for every period
LanguageThe language of the report’s headings and its total and deviation labels
LogoWhether the company logo is printed on the output
PeriodWhat it needs
HourlyThe time alone
MonthlyA day of the month (1–31)
MinutesA length in minutes (1–1439)

Each variable cell applies a calculation to the data gathered across the slice:

Min · Max · AvgLowest, highest, average
Sum · CountTotal, number of samples
First Value · Last ValueThe slice’s first and last reading
Max DifferenceThe largest difference within the slice
Last First DifferenceLast minus first — on a meter, this is consumption
Middle Value · Median ValueThe middle and the median reading

A cell can also take a format pattern (0.00, say), a total column computed from a second variable, and a deviation column measured against another cell.

The report has its own schedule, and separate day and time fields for printing and for mail, each of which can be turned on independently.

With mail on, the recipients come from the report’s own Mail To field. That holds when sending from a script too: the call takes no recipient list and uses the one on the report’s definition.

A report produces HTML and PDF; the PDF is printed by a headless browser on the server. There is no Excel output — use the export paths to get table data into Excel.

A report run by hand is distinguishable from a scheduled one in the output: the document’s heading reads Manual in one case and Automatic in the other.

  • HTML Report — the other family, where you write the page
  • Script Engine — producing and sending a report from a script