Last Modified Date: 08 Oct 2019
Environment
Tableau DesktopAnswer
- 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>]))
THEN RUNNING_SUM(SUM([<Field>]))
END
where<Field>
- 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
If the flat line shows at zero, then do the following:
- Right-click the calculated field in the view and select Format... If the view contains multiple measures, then right-click Measure Values and select Format...
- In the left-hand Format pane, under Special Values, in the Marks dropdown select Hide (Connect Lines)
Additional Information
Note: 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.
Discuss this article... Feedback Forum
Thank you for providing your feedback on the effectiveness of the article.
Open new Case
Continue Searching
Knowledge Base
Community
Product Help
Training and Tutorials