Last Modified Date: 10 Apr 2023
Environment
Tableau DesktopAnswer
The steps below are also outlined in the attached package workbook found to the right of this information in the "Attachments" section.- 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 to the right of this text in the "Attachments" section 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
Continue Searching
Knowledge Base
Community
Product Help
Training and Tutorials