To close off there year, he is a quick and simple tutorial on creating a Marimekko Chart in Tableau. No data densification or any such data tricks. Just a few Table Calculations.

Note: This is an alternative type of data visualisation, and sometimes pushed for by clients. Please always look at best practices for data visualisations before deploying this into production.

## Calculated Fields

With our data set loaded into Tableau, we are going to create the following Calculated Fields:

TC_Sales

``WINDOW_SUM(SUM([Sales]))``

TC_Total Sales

``WINDOW_SUM(SUM([Sales]))``

TC_Percentage of Total

``[TC_Sales]/[TC_Total Sales]``

TC_Percentage of Region

``[TC_Sales]/[TC_Total Sales]``

TC_Starting Point

``RUNNING_SUM([TC_Total Sales])-[TC_Total Sales]``

With this done, let us start creating our data visualisation.

## Worksheet

We will now build our first worksheet:

• Change the Mark Type to Bar.
• Drag Segment onto the Colour Mark.
• Drag Region onto the Detail Mark.
• Drag TC_Starting Point onto the Columns Shelf.
• Drag TC_Percentage of Region onto the Rows Shelf.

You should see the following:

We will now edit our Table Calculations.

• Right-click on TC_Starting Point.
• In Nested Calculations select TC_Total Sales.
• In Compute Using select Specific Dimensions. Ensure that Segment and Region are selected and that Segment is on top.
• In At the level select Segment.
• In Nested Calculations select TC_Starting Point.
• In Compute Using select Specific Dimensions. Ensure that only Region is selected.
• Right-click on TC_Percentage of Region.
• In Nested Calculations select TC_Sales
• In Compute Using select Cell
• In Nested Calculations select TC_Total Sales.
• In Compute Using select Specific Dimensions. Ensure that only Segment is selected.

You want to have the following:

We are getting closer and now will adjust the width of our bar charts. Drag TC_Total Sales onto the Size Mark and you should now see the following:

Now we will adjust our cosmetics::

• Drag TC_Percentage of Region onto the Tooltip Mark and adjust. the Table Calculation.
• In Nested Calculations select TC Sales, and in Compute Using select Cell.
• In Nested Calculations select TC_Total Sales, and in Compute Using select Specific Dimensions, select Region and Segment and ensure that Region is on top.
• Edit the Axis Header text.

And we will finally have our Marimekko Chart.

and boom, we are done! I hope you enjoyed this tutorial, and as always, you can find this data visualisation on Tableau Public at https://public.tableau.com/profile/toan.hoang#!/vizhome/MarimekkoCharts/MarimekkoCharts

## Summary

I hope you all enjoyed this article as much as I enjoyed writing it and as always do share the love. Do let me know if you experienced any issues recreating this Visualisation, and as always, please leave a comment below or reach out to me on Twitter @Tableau_Magic. Do also remember to tag me in your work if you use this tutorial.

If you like our work, do consider supporting us on Patreon, and for supporting us, we will give you early access to tutorials, exclusive videos, as well as access to current and future courses on Udemy:

Also, do be sure to check out our various courses:

Toan Hoang, Tableau Zen Master 2020, has over 15 years of experience in Business Intelligence, Data Management, Big Data, Data Lakes, Internet of Things (IoT), Data Visualisation and the Data Analytics space; the last six years has been dedicated to delivering end-to-end solutions using Tableau.

1. We were doing this in a viz session at Conference in the US… I straight up gave up. The speakers weren’t to enthused about it either.

I’ve never heard of this chart. What would be a use case for it? Love all the work!

• Hi Keith, I do debate the practical application but have not actual come to a solid conclusion yet. Using Marrimekko charts, you are adding additional information to your bar chart, not just the height, but width as well. For example, the number Quantity on the x axis and Sales on the y axis.

2. Hi Toan the Magician,
I am not getting the percent of total displayed in tool tip, could you please help me on the same

3. Hi Toan,

Thanks for the detailed walkthrough! However I’ve tried to replicate the report and haven’t been really able to do it. Would it be possible to get the sample workbook so I can further analyze it?

Thanks,

This site uses Akismet to reduce spam. Learn how your comment data is processed.