What if you could instantly see your best-selling product without reading a single number?
Why Bar charts (horizontal and vertical) in Tableau? - Purpose & Use Cases
Imagine you have a list of sales numbers for different products written down on paper. You want to compare which product sold the most, but you have to scan through all the numbers manually.
It's hard to quickly see which product is the best or worst just by looking at rows of numbers.
Manually comparing numbers is slow and tiring. You might make mistakes reading or adding them up. It's also hard to spot trends or patterns when everything is just text or numbers in a table.
This makes decision-making frustrating and time-consuming.
Bar charts turn numbers into simple bars that you can see and compare instantly. Horizontal or vertical bars show which values are bigger or smaller at a glance.
This visual approach makes understanding data fast, easy, and less error-prone.
Product A: 120 Product B: 80 Product C: 150
Bar Chart: |■■■■■■■■■■■■■■■■■■■■| Product C (150) |■■■■■■■■■■■■■■| Product A (120) |■■■■■■■■| Product B (80)
Bar charts let you quickly spot the highest and lowest values, making data-driven decisions easier and faster.
A store manager uses a vertical bar chart to see which product categories sold the most last month, helping decide what to stock more.
Manual number comparison is slow and error-prone.
Bar charts visualize data clearly with horizontal or vertical bars.
This helps you understand and act on data quickly.
Practice
Solution
Step 1: Understand vertical bar chart layout
Vertical bars are created by placing the dimension on Columns and the measure on Rows in Tableau.Step 2: Match the layout to options
Dimension on Columns and Measure on Rows matches this layout exactly.Final Answer:
Dimension on Columns and Measure on Rows -> Option AQuick Check:
Vertical bars = Dimension on Columns, Measure on Rows [OK]
- Confusing horizontal and vertical bar chart layouts
- Placing both dimension and measure on the same shelf
- Swapping rows and columns incorrectly
Solution
Step 1: Recall horizontal bar chart setup
Horizontal bars are made by placing the dimension on Rows and the measure on Columns.Step 2: Identify correct option
Dimension on Rows, Measure on Columns matches this setup exactly.Final Answer:
Dimension on Rows, Measure on Columns -> Option AQuick Check:
Horizontal bars = Dimension on Rows, Measure on Columns [OK]
- Mixing up rows and columns shelves
- Placing only measures without dimensions
- Choosing options with missing shelves
Solution
Step 1: Analyze shelf placement
Category on Rows and Sales on Columns creates vertical bars representing sales per category.Step 2: Identify chart type
This layout produces a vertical bar chart, not horizontal or other chart types.Final Answer:
A vertical bar chart showing sales per category -> Option DQuick Check:
Category rows + Sales columns = vertical bars [OK]
- Assuming horizontal bars instead of vertical
- Confusing bar chart with line or scatter plot
- Ignoring shelf placement rules
Solution
Step 1: Identify cause of vertical bars
Vertical bars appear when dimension is on Rows and measure on Columns.Step 2: Fix by swapping shelves
To get horizontal bars, swap dimension to Columns and measure to Rows.Final Answer:
Swap the dimension and measure between Rows and Columns shelves -> Option CQuick Check:
Swap shelves to switch bar orientation [OK]
- Changing mark type instead of shelf placement
- Removing dimension causing no bars
- Adding filters unrelated to orientation
Solution
Step 1: Set up horizontal bar chart for sales
Horizontal bars require dimension on Rows and measure on Columns.Step 2: Set up vertical bar chart for profit
Vertical bars require dimension on Columns and measure on Rows.Step 3: Match options to setup
For sales: Dimension on Rows, Measure on Columns; For profit: Dimension on Columns, Measure on Rows correctly assigns shelves for both charts.Final Answer:
For sales: Dimension on Rows, Measure on Columns; For profit: Dimension on Columns, Measure on Rows -> Option BQuick Check:
Horizontal bars = dim rows, measure columns; Vertical bars = dim columns, measure rows [OK]
- Using same shelf setup for both charts
- Placing measures on wrong shelves
- Confusing dimension and measure roles
Ready to prove it?
Pass the test and this pattern moves unknown
