Last Modified Date: 14 Oct 2019
AnswerGraph the bars on a continuous axis of the running sum of the measure also used on Size to define the width of the bars.
The attached example workbook uses the sample data set Superstore to demonstrate the following directions:
- Drag [City] to the Filters shelf
- In the Filter dialog, check only "Austin" and click OK.
- Drag [Sales] to the Rows shelf
- Drag [Customer Name] to Label on the Marks card
- Drag [Quantity] to Size on the Marks card
- Drag [Quantity] to the Columns shelf
- Right-click SUM(Quantity) on the Columns shelf and select Quick Table Calculation > Running Total
- Right-click SUM(Quantity) on the Columns shelf and select Compute Using > Customer Name
- On the Marks card, in the Mark type dropdown select Bar
- Click Size, and do the following:
- Select Fixed
- For Alignment, select Right
- Right-click [Customer Name] on Label and select Sort…
- In the Sort dialog, so the following and click OK:
- For Sort by, select Field
- In the dropdown menu, select Sales
- Right-click SUM(Quantity) on the Columns shelf and uncheck Show Header.
Additional InformationOnly a continuous axis will allow the bars to touch.
Additional examples can be found in the following resources:
Creating a Skyline Chart (Variable Width Column Chart)
How to build a Marimekko chart in Tableau (Blog post by Tableau Zen Master Jonathan Drummey)
To view the above steps in action. see the video below.
Note: the video has no sound.
Discuss this article...
Thank you for providing your feedback on the effectiveness of the article.
Open new Case
Training and Tutorials