Skip to main content

Guides

Daily and monthly consumption reports from a kWh counter

A counter only goes up; a report needs the difference per period. From a cumulative log to daily and monthly consumption, and on to a report page that compares periods.

An energy counter holds a single number, and that number only goes up. The answer to "how much did we use yesterday?" is not in the counter itself; it is in the difference between two readings. In this guide we derive daily and monthly consumption from the archive of a kWh counter, compare periods with the previous period and export the result.

The screens use the two energy analyzers (TR1 and TR2) of the sample project that comes with a new installation. The steps are the same for your own counter.

Before you start: the counter's log

Consumption is calculated from the counter's archive records. This needs a log definition on the counter tag, and in that definition the information that the counter is Cumulative:

  • Log Type: Cyclic, Interval[s]: 60
  • Log Value Type: Current
  • In the Consumption & Run/Stop step, Consumption Value Type: Cumulative, Unit: kWh

We describe the log definition step by step in step 5 of Adding an energy analyzer to SCADA over Modbus TCP. The report covers only the time after the log started recording; no consumption is produced for the time before.

How consumption is calculated

For a Cumulative log, the consumption of a period is the sum of the increases between consecutive records:

  • The calculation starts with the last record before the period. This way the increase between the last record of one period and the first record of the next is counted as well.
  • If a record is smaller than the previous one (the counter was reset or replaced), that step counts as 0; no negative consumption appears.
  • If a period has no records, the value of that period stays empty.

The same rule is used on the Consumptions screen, in the Consumption Pivot and for consumption values on pages; for the same counter and period they all give the same result.

1. Daily consumption

  1. Open History > Consumptions from the left menu.
  2. Click the Chart Settings button on the chart toolbar. On the Tag Selection tab, select the counter tag and the log definition and click Ok. You can select more than one counter.
  3. In the Filters section, select Last Month as the Date range.
  4. Select Day as the Consumption Period and keep Align To Calendar on.
  5. Click Update.

One column appears per day; each series has a dashed line that shows its average. With Align To Calendar on, days start at midnight. With it off, periods start from the first record in the range and do not match calendar days; keep it on for daily and monthly reports.

Consumptions screen: Date range Last Month (October 1–31, 2026), Consumption Period Day, Align To Calendar on; the series TR1 and TR2 Aktif Enerji Tüketimi as daily columns, each with its average line (753.18 and 1,050.6); the chart is zoomed to the last days of the month

Screenshot: 2Win Scada 2.11.5, Consumptions; daily consumption of the sample project's two analyzers in October 2026. The chart shows the last days of the month; the strip below moves to the other days of the month. The consumption history is sample data generated for the screenshot; the series names are the sample project's Turkish tag descriptions.

2. Monthly consumption

Change two settings on the same screen:

  1. Select This Year or Last 3 Months as the Date range.
  2. Select Month as the Consumption Period and click Update.

Months start on the first day of the month. The Table view button on the toolbar shows the same result as a table: the start of the period on the left, next to it the period consumption of each counter. Mind two points when reading the summary rows below the table:

  • Total is the total consumption in the selected range.
  • Diff is the difference between the consumption of the last and the first period; it is not the total consumption.

3. Reading the periods

A low column does not always mean low consumption. Tell three cases apart:

CaseWhat you seeMeaning
Partial periodThe first or last column is shorter than the othersThe range does not fall on a period boundary. In the Today range, today's value is the consumption so far; the current month is not finished either.
Data gapAn empty column or a value lower than expectedRecords are missing in that period: the device was off, communication was lost or the log was not defined yet.
No base readingA warning icon above the chart and Some periods have data gaps; consumption may be understated.In the first period of a new counter, or for a counter that has not written records for a long time, no reading before the period was found; the first step could not be calculated.

You can look at the raw records of a doubtful period on the History > Trend Analysis screen.

4. Save the report and export it

Save the selection so that you do not have to repeat it every month:

  1. In the Report menu at the top of the screen, select New Report.
  2. Give the report a name and click Save.

The report keeps the selected tags, the consumption period and the Align To Calendar setting. It does not keep the dates; you choose the range when you open the report. A saved report is also listed on the other screens under History. To create and save reports, the user's group needs the Editor or ReportManagement role.

To share the result, use the Export button on the toolbar:

  • Export to PDF: the chart and the table.
  • Export to Excel: the report details and the table; the chart image is on a separate sheet of the same file.

The Export button becomes active after the first query. To get only the chart as a PNG, use the separate Save as image button on the toolbar; it works in the chart view, so switch back to the chart first if you are in the table view.

5. Compare with the previous period

There is a ready-made page for seeing one day's consumption next to the day before: Günlük Enerji Raporu (Daily Energy Report). In the sample project this page opens from the TR1 Daily Report and TR2 Daily Report links on the Genel Bakış (Overview) page.

The page contains:

  • The Today, Yesterday and This Month cards. The cards show fixed periods; they do not follow the date selection on the page.
  • The date picker: the Previous period and Next period arrows, the Now button and the presets Today, This week, This month, Last month and Custom range.
  • The Hourly consumption chart: the selected period next to the previous period.
  • The Hourly consumption table: the values hour by hour and the period total.

Daily Energy Report page, Trafo1_EA, 11/10/2026: the date picker at the top (previous and next period arrows, Now, Shortcuts); the cards Today 33 kWh, Yesterday 470 kWh and This Month 7,930 kWh; the Hourly consumption chart with columns of the selected day next to the previous period; below it the Hourly consumption table with the column header Saat (hour)

Screenshot: 2Win Scada 2.11.5, the sample project's Daily Energy Report page (TR1), November 10, 2026 and the day before. The consumption history is sample data generated for the screenshot; the warning icon on the Today and Yesterday cards marks a data gap caused by the screenshot installation being switched off for a while. The table's column header Saat (hour) is a fixed text of the sample page and appears in Turkish in every language.

The page is made for printing on paper; the Print button in the upper right corner produces an A4 printout.

Set up the same page for your own counter

The page is created from the ready-made page template named Daily Energy Report. This step uses the screen editor (Professional package, Editor role).

  1. On the Settings > Editor page, select File > New and type the page name.
  2. In the Start field, select From a page template and pick the Daily Energy Report template in the list.
  3. Type the counter's channel and device name in the Tag Prefix field (for example Pano1.Analizor1) and the name to show on the page in the Equipment Name field.
  4. Confirm the window. The page is created and saved.

The template looks for the energy counter under the name .KWH: combined with Tag Prefix it becomes Pano1.Analizor1.KWH. If your counter tag has a different name, change it in the widget settings after adding the template.

What to do next

  • Several counters with breakdowns: History > Consumption Pivot totals consumption by process group, tag and calendar breakdowns.
  • Consumption on your own page: The consumption of today, yesterday or last month can be bound to a value label like a normal tag.
  • If the counter is not connected yet: Adding an energy analyzer to SCADA over Modbus TCP.

Related pages in the manual:

If you would like to see what a report from your own counters looks like, we can go through it together in a demo meeting.

All guides