Tabulens
Download
Open app

Row calculations: running total, rank, share, group total

“A running total by month within each hospital”, “what place is each row in”, “what percent of the total is this” — in SQL these are window functions, in Excel formulas dragged down a column. In Tabulens such a calculation is built with a form and added as a calculated column.

Open a file Download for Windows

Free to use. “Transform” → “Row calculation…”, or a column header menu → “Calculate by column…”. Windows version — 5.4 MB, no installation: details. Pro — $29 once: price.

Updated 2026-09-30 · format CSV

What you can calculate

CalculationWhat the column holds
Row number in group1, 2, 3… restarting in each group
Running totalthe sum of values from the start of the group to this row
Moving averagethe average over a window of the number of rows you set
Difference from the previous rowthe value minus the value one row above
Value from the previous or next rowthe neighbour in order
Rankthe row’s place in the order; equal values share a place
Share of total, %which part of the group’s sum the row makes up
Group totalsum, average, count, minimum or maximum of the group, shown on every row of it

How to add one

  1. “Transform” → “Row calculation…”, or “Calculate by column…” in a column header menu, when the value column is already chosen.
  2. Pick what to calculate and the value column. To calculate within groups (per hospital, per customer), tick the columns in “Within groups”; with none ticked the whole table is one group.
  3. In “Row order” say how rows follow each other — by date, for example. A running total and a difference depend on the order, so it is set explicitly rather than taken from the screen; rank requires an order.
  4. Name the column and press “Add”.

Good to know

FAQ

How is this different from a pivot table?

A pivot collapses rows into totals. A row calculation keeps every row in place and adds a column, so each row shows both its own value and the running total or share.

How do I rank within a group?

Pick “Rank”, tick the group column in “Within groups” and set the order: by the amount column, descending, the largest gets first place. Rows with equal order values share a place.

What happens to empty values?

Empty and non-numeric values are skipped when summing and averaging. In “Difference from the previous row” the first row of a group stays empty, and so does a row where either of the two values is not a number.

Your file never leaves your computer. Parsing happens in the browser, in a background thread. The page's security policy forbids sending data to third-party addresses — you can check this in the developer tools. After the first visit the app keeps working offline.
Open the app Download for Windows

Free to use. Your file is not uploaded to a server. Windows version — 5.4 MB, no installation: details. Pro — $29 once: price.