Showing the percentage of totals

Seeing the percentage of each group as compared to the total of all groups is as useful as seeing totals and breakdowns. This gives the reader an idea about the magnitude of every value compared to that of the totals. Tableau offers various options to see values as percentages of the totals. These options include seeing percentages of the row totals, the column totals, or the grand total.

Getting ready

Let's use the sample file Sample – Coffee Chain (Access). Open a new worksheet and select Sample – Coffee Chain (Access) as the data source.

How to do it...

Once the data is loaded on the worksheet, perform the following steps to see percentage values:

  1. Drag-and-drop Product Type from Dimensions in the Columns shelf.
  2. Drag-and-drop Market from Dimensions in the Rows shelf.
  3. Drag-and-drop Profit from Measures in the Text box under the Marks pane.
  4. To see percentage profit by every Product Type in all the Market types, expand the Analysis menu option from the main menu toolbar. Then, expand the Percentage of option and select Column as shown in the following screenshot:
    How to do it...
  5. To see the percentage profit by every Market type in all the Product Type values, expand the Analysis menu option from the main menu toolbar, followed by expanding the Percentage of option, and select Row to generate a table as shown in the following screenshot:
    How to do it...
  6. To see profit by every Market and Product Type values as a fraction of the total Profit value, expand the Analysis menu option from the main menu toolbar, followed by the Percentage of option, and select Table to generate a percentage table as shown in the following screenshot:
    How to do it...

There's more...

Tableau provides options to change how percentages are calculated, such as across, down, by cell, or by other fields. These options can be changed by clicking on the aggregated measure and expanding options under Compute using, as shown in the following screenshot:

There's more...
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset