How to do it...

In the next example, we're going to work with avocado data and show which cities eat a higher percentage of organic versus conventional. Use Donut.twbx to work through the example.

  1. Create a calculation called Donut with zero hardcoded as the value, as follows:

  1. Place Donut on the Rows shelf twice, as follows:

  1. In the Marks card for all values, change the default mark from Automatic to Pie, as follows:

In the following screenshot, ...

Get Tableau 2019.x Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.