Running Sums with no hacks in Tableau Prep | New in Tableau 2023.3
Tableau Prep now does running sums natively in 23.3, and honestly this interface is my favourite bit of the whole Tableau platform this year.
- Running calculations are created by selecting a column, adding a calculated field, and choosing 'running calculation' from the dropdown in a clean step
- Whatever field you order by is automatically removed from the group by options, so you can't both group and order by the same field
- Grouping by a dimension like sales region restarts the running sum within each group, similar to using panes in Tableau Desktop table calculations
- The interface animates the rows being summed and uses blue highlights on the right to show where each running sum ends
- You can compute running sums or running averages on any measure such as sales, profit or discount
Tableau Prep can now do running sums and running averages natively from 2023.3, with a visual interface that shows you exactly how each calculation is grouped, ordered and computed — no more workaround calcs.
Tim uses the default Superstore flow in Tableau Prep, adding a clean step to a section that aggregates sales data. The goal is to demonstrate the new running calculation option that appears when creating a calculated field.
- Add a clean step first 0:41
The running calculation option only appears when you create a calculated field from within a clean step, so you need one in your flow before you can access it — select a column, add a calculated field, and choose 'running calculation' from the dropdown.
- Choose your grouping 1:25
Running sums need a grouping context; by default it runs across the whole table, but you can instead group by a dimension so the sum resets within each group.
- Choose your ordering — watch the field lock 1:42
You also pick a field to order the calculation by, which determines the direction the running sum flows. Whatever field you use to order is automatically removed from the group-by options, so you can't group and order by the same field.
- Read the animated explanation 2:42
Clicking a row shows a dotted-line animation around the rows being summed and displays the result, making it easy to verify the calculation is doing what you expect as you move down the table.
- Grouping by a dimension resets the sum per group 3:15
Grouping by something like sales region rearranges the data to group first, then order within each group, so the running sum restarts at the beginning of each new group — similar to using panes with table calculations in Tableau Desktop, but easier to see.
- Blue highlights mark where sums end 4:21
The interface highlights on the right-hand side show exactly where each running sum ends, which is a quick way to check your grouping boundaries are correct without manually scanning the data.
- Running average and other measures 5:16
Switching the calculation type to average sums the preceding rows and divides by the count, so it respects the same grouping and ordering rules. You can run either calculation on any measure, not just sales.
- Rename before or after finishing 5:45
Hitting done completes the calculation, but the field name defaults to something generic, so you'll usually want to rename it — Tim notes he often forgets to do this until afterwards.
- Ordering by a field removes it from the available group-by options — you can't do both on the same field.
- Renaming the calculated field isn't obviously available at creation time; Tim mentions occasionally hitting a quirk where it does let him rename inline, but it's inconsistent.
Reach for this when you need running sums or running averages in a data prep flow itself, rather than relying on table calculations in Tableau Desktop — useful when you want the running total baked into the data before it hits your workbook.
How this Rollup was made provenance & method
A Rollup is drafted by AI from the video's transcript, then reviewed and edited by Tim. Everything used to produce this one is listed below — the model, the exact prompt, and the source video — so the process is transparent and reproducible.
- Transcription
- On-device — NVIDIA Parakeet v3 for recent videos, OpenAI Whisper large-v3 for earlier ones. The transcript never leaves the machine or gets published.
- Drafting
- Claude Sonnet 5 in the cloud, from that transcript.
- Prompt
- The exact Rollup prompt (v2) — the full system prompt, unedited.
- Source video
- Watch on YouTube
- Drafted
- 5 July 2026 at 09:38
- Reviewed & edited
- 5 July 2026 at 09:41 · by Tim Ngwena
Model + prompt + video is everything you'd need to recreate a Rollup like this yourself. The one thing we don't share is the transcript.
Rights. The video and its transcript are the property of TN Media Ltd. Unauthorised use or download is prohibited. © TN Media Ltd.