Tableau must know and know how to quickly make nested bar graphs

Nested bar graphs are generally used in scenarios such as resource coverage and indicator progress completion comparisons, which can make relevant data look more comparable.

Resource coverage: For example, the total amount of resources and the amount allocated to each district, used to check the advantages of each district in the distribution of resources;

Indicator completion progress: For example, each person's planned workload and actual completed workload each month, used to compare and view the progress.

So, how to make a nested bar chart in Tableau?

Here, we use the data source of global orders to compare the two years by making nested bar graphs. Other application scenarios can refer to this step to make.

Specific steps are as follows:

1. Create two calculated fields

Sales in 2010: IF YEAR([Order Date])=2010 THEN [Sales] END

Sales in 2011: IF YEAR([Order Date])=2011 THEN [Sales] END

2. Drag "Measure Name" to the filter

Three, generate overlapping bar graphs

Drag "Product Subcategory" to the column, "Measure Value" to the row, and "Measure Name" to the color card. Generate overlapping bar graphs.

Guess you like

Origin blog.csdn.net/wenyusuran/article/details/107552958