How To Create Pareto Chart In Tableau
How To Create Pareto Chart In Tableau
- Drag Profit to Rows and Product Name to Columns.
- Click the Sort Desc icon at the top below the Analysis menu.
- Click on Profit and then hold down the ctrl key and drag a second instance of the pill to the right on the Rows shelf.
- Click the down arrow on the of the second Profit pill. Click Add Table Calculation.
- In the calculation type, select Running Total. Leave all the other defaults.
- Click the down arrow again on that second Profit pill. Click “Edit Table Calculation.”
- In the window that pops up, check the box in the bottom left that reads “Add Secondary Calculation.”
- In the Secondary Type box, select Percent of Total. Leave the other defaults.
- Close the box. You’ll now have two charts, one on top of the other. The first has your profit sorted by product in descending order. The second shows the percent of the total profit that each individual product contributes. So if total profit was $500 and Product A had a profit of $100, it would be 20% of the total profit
- On the second Profit pill, right click or click the down arrow. Choose Dual Axis. This combines them into the same chart.
- On the marks card, there are now two shelves, one for Sum(Profit), and the other says Sum(Profit) and has a triangle next to it (representing that it’s a table calculation).
- Click the first shelf for Profit and change the mark type to bar.
- On the second shelf (with the triangle), change that mark type to line.
- On the colors shelf, change the color of the bars to gray, and the line to orange.
- Right click on the orange line and select Drop Lines > Show Drop Lines.
- Right click on the secondary axis (on the right hand side) and Add a Reference Line.
- Set the Scope to Entire Table. Set the Value in the middle section to Constant (from the drop down menu) and type in 0.6.
- Click ok.
- You can now click any point on the orange line and see what portion of the cumulative profits it represents. By lassoing the bars under the 60% reference line, we can get a count to see how many products comprise 60% of the overall company profits. Of the 1263 products in the database, <35 make up 60% of the overall profits. That’s a staggering finding!
We hope that learning how to create a Tableau Pareto chart helps you and your company find solutions to your
Comments
Post a Comment