Making a Comparison Chart in Tableau
Learn how to build a comparison chart in Tableau step by step, from choosing the right view to laying out side-by-side marks that make differences easy to read.
Contents
- Pick the view before you drag fields
- Place the fields on the shelves
- Refine the marks and labels
- Questions About Tableau Comparison Charts
- How do I make a comparison chart in Tableau?
- Which chart type should I use for a side-by-side comparison in Tableau?
- Can Tableau compare two measures on the same chart?
- How do I line up estimate line items in a side-by-side chart?
Making a comparison chart in Tableau means placing two or more measures or categories beside each other so their differences show at a glance. You build one by choosing a view such as a bar chart or a side-by-side layout, placing each value on a shelf, and adjusting the marks until the comparison reads clearly. The page covers the build, the layout choices, and the details that keep a comparison honest.
Pick the view before you drag fields
A comparison chart in Tableau works best when the view matches the question you are asking. A bar chart suits values that sit side by side across categories. A side-by-side comparison, where each category splits into two bars, suits two measures shown for the same set of items. Choosing the view first keeps the shelves and the marks simple.
Place the fields on the shelves
The shelves in Tableau decide what the comparison chart shows. Dragging a dimension to Rows and a measure to Columns gives one bar per category. Adding a second dimension to Columns splits each category into a side-by-side pair. The measure you drop becomes the length of each mark, so the comparison depends on which measure you choose.
Refine the marks and labels
A comparison chart in Tableau reads clearly when the marks carry labels and a steady scale. You can format the axis, add data labels, and sort categories so the differences line up. Keeping the scale the same across both sides of a side-by-side comparison stops the chart from exaggerating a small gap. A reference line can mark a target that you want each item compared against.
Questions About Tableau Comparison Charts
How do I make a comparison chart in Tableau?
Making a comparison chart in Tableau starts by choosing a chart type that shows values beside each other. You place a dimension on Rows and a measure on Columns for a basic bar chart. Adding a second dimension to Columns splits each bar into a side-by-side pair for direct comparison. You then format the axis and add labels so the differences stay readable.
Which chart type should I use for a side-by-side comparison in Tableau?
A side-by-side comparison in Tableau is built from a bar chart with a second dimension on the Columns shelf. Each category then shows two bars, one per item, at the same scale. A grouped bar chart keeps the pairs close together so the eye can compare them. Avoid a stacked bar here, since stacking hides the separate values.
Can Tableau compare two measures on the same chart?
Tableau can place two measures on the same comparison chart when you want them shown together. Use a dual axis to give each measure its own scale, or a combined axis when both share the same units. A combined axis keeps the comparison honest because both measures sit on one scale. A dual axis is clearer when the measures differ in size.
How do I line up estimate line items in a side-by-side chart?
Repair estimate line items go side by side in Tableau when each line item is a row and each estimate is a separate column. A grouped bar chart then shows the cost of each item under both estimates at the same scale. Sorting by the largest difference makes the items worth discussing stand out. You can review that chart with a local service provider before you agree on the work.