Last Modified Date: 02 Mar 2017
- In Tableau Desktop, add the field you want a running sum for to the view.
- Select the drop down arrow > Quick Table Calculation > Running Total to see the full extent of data in the dataset.
- Select Analysis > Create Calculated Field to create a calculated field.
- In the Calculated Field dialog box that opens, type a name for the field.
- In the formula field, create a calculated field similar to the following and then click OK:
IF NOT ISNULL(SUM([<Field>]))
where <Field> is the field that is used in the running total quick table calculation.
- Create similar calculations for all measures in the view that are being calculated as running totals.
- Replace the running total quick table calculations in the view with the newly created calculated fields.
Additional InformationNote: This solution will work if you have rows/dates in your data set that don't yet have numeric data. For example, a skeleton transaction table with future dates in the year listed, but empty sales data until transactions have occurred. See the attached sample workbook for an example.
To see these steps in action, watch the video below.
Note: Video is silent.
Thank you for providing your feedback on the effectiveness of the article.
Open new Case
Training and Tutorials