What if you never had to update your sales totals by hand again?
Why Rolling period calculations in Tableau? - Purpose & Use Cases
Imagine you have sales data for every day, and your boss asks you to show the total sales for the last 7 days, updated every day. You try to do this by copying and pasting sums for each day in a spreadsheet.
This manual method is slow and tiring. You might miss some days or add wrong numbers. Every time new data comes in, you have to redo everything. It's easy to make mistakes and hard to keep up.
Rolling period calculations automatically sum or average data over a moving window, like the last 7 days. Tableau does this with simple formulas that update as new data arrives, saving time and avoiding errors.
Sum sales for each day manually and add last 7 days by hand
WINDOW_SUM(SUM([Sales]), -6, 0) // sums sales from 6 days ago to today
With rolling period calculations, you can quickly see trends and patterns over time without manual updates, making your reports dynamic and reliable.
A store manager uses a 30-day rolling sales total to spot if sales are improving or dropping, helping decide when to run promotions.
Manual rolling sums are slow and error-prone.
Rolling calculations update automatically with new data.
They help spot trends easily and keep reports accurate.