Published: 16 Sep 2022 Last Modified Date: 16 Sep 2022
Question
How to display the cumulative sales by year as a bar graph.
Environment
Tableau Desktop
Answer
1. Connect to the Sample-Superstore data source. 2. Drag Order Date to Columns and drill down by MONTH then remove QUARTER(Order Date) from Columns. 3. Drag Sales to Rows. 4. Right-click on Sales on Rows and select Add Table Calculation. Set the following: 5. On the Marks card, change the graph type to Bar. 6. Press CTRL anddrag YEAR(Order Date) on Columns to Color.
Thank you for providing your feedback on the effectiveness of the article.