Bird
Raised Fist0
Tableaubi_tool~10 mins

Reference bands in Tableau - Cell-by-Cell Formula Trace

Choose your learning style10 modes available

Start learning this pattern below

Jump into concepts and practice - no test required

or
Recommended
Test this pattern10 questions across easy, medium, and hard to know if this pattern is strong
Sample Data

Monthly sales data for 5 months.

CellValue
A1Month
B1Sales
A2Jan
B2100
A3Feb
B3150
A4Mar
B4120
A5Apr
B5130
A6May
B6170
Formula Trace
AVG([Sales])
Step 1: SUM([Sales])
Step 2: COUNT([Sales])
Step 3: AVG([Sales]) = SUM([Sales]) / COUNT([Sales])
Cell Reference Map
    A       B
1 | Month | Sales |
2 |  Jan  | 100  |
3 |  Feb  | 150  |
4 |  Mar  | 120  |
5 |  Apr  | 130  |
6 |  May  | 170  |

References: [Sales] column (B2:B6) used to calculate average.
The formula uses the Sales values from cells B2 to B6.
Result
    A       B       C
1 | Month | Sales | Avg |
2 |  Jan  | 100   |     |
3 |  Feb  | 150   |     |
4 |  Mar  | 120   |     |
5 |  Apr  | 130   |     |
6 |  May  | 170   | 134 |

Cell C6 shows the average sales as a reference band value.
The average sales value 134 is shown as a reference band on the chart, representing the average line across months.
Sheet Trace Quiz - 3 Questions
Test your understanding
What is the total sum of sales used to calculate the average?
A5
B670
C134
D150
Key Result
Reference bands use aggregate calculations like AVG([Measure]) to draw lines or bands on charts.

Practice

(1/5)
1. What is the main purpose of adding a Reference Band in a Tableau chart?
easy
A. To add a title to the chart
B. To change the color of the entire chart background
C. To highlight a range of values on the axis for easy comparison
D. To filter out data points outside a specific range

Solution

  1. Step 1: Understand what a Reference Band does

    A Reference Band highlights a range on the axis, making it easier to see where data points fall within that range.
  2. Step 2: Compare options to the purpose

    Only To highlight a range of values on the axis for easy comparison describes highlighting a range for comparison, which matches the purpose of Reference Bands.
  3. Final Answer:

    To highlight a range of values on the axis for easy comparison -> Option C
  4. Quick Check:

    Reference Band = Highlight range [OK]
Hint: Reference bands highlight ranges, not filter or color whole chart [OK]
Common Mistakes:
  • Confusing reference bands with filters
  • Thinking reference bands change chart background color
  • Assuming reference bands add titles
2. Which of the following is the correct way to add a Reference Band in Tableau?
easy
A. Right-click the axis, select 'Add Reference Line', then choose 'Band'
B. Drag a measure to the Filters shelf and select 'Reference Band'
C. Click 'Worksheet' menu and select 'Add Reference Band' directly
D. Double-click the title and type 'Reference Band'

Solution

  1. Step 1: Recall the method to add Reference Bands

    In Tableau, Reference Bands are added by right-clicking the axis, selecting 'Add Reference Line', and then choosing 'Band'.
  2. Step 2: Evaluate each option

    Only Right-click the axis, select 'Add Reference Line', then choose 'Band' correctly describes this process. The other options describe incorrect or nonexistent steps.
  3. Final Answer:

    Right-click the axis, select 'Add Reference Line', then choose 'Band' -> Option A
  4. Quick Check:

    Add Reference Band = Right-click axis > Add Reference Line > Band [OK]
Hint: Always add reference bands via axis right-click menu [OK]
Common Mistakes:
  • Trying to add reference bands from Filters shelf
  • Looking for a direct menu option under Worksheet
  • Confusing reference bands with chart titles
3. Given a sales chart with a Reference Band set between $10,000 and $20,000, what will happen to sales values of $25,000?
medium
A. They will be highlighted inside the band
B. They will be outside the highlighted band range
C. They will be filtered out from the chart
D. They will change color to red automatically

Solution

  1. Step 1: Understand the Reference Band range

    The Reference Band highlights values between $10,000 and $20,000 only.
  2. Step 2: Analyze where $25,000 falls

    $25,000 is greater than $20,000, so it lies outside the band and will not be highlighted.
  3. Final Answer:

    They will be outside the highlighted band range -> Option B
  4. Quick Check:

    Value > band max = outside band [OK]
Hint: Values outside band range are not highlighted [OK]
Common Mistakes:
  • Assuming values above band max are highlighted
  • Thinking reference bands filter data
  • Believing colors change automatically without setup
4. You added a Reference Band but it does not appear on your Tableau chart. What is the most likely reason?
medium
A. You need to add a filter before adding a band
B. You forgot to refresh the data source
C. Reference Bands only work on pie charts
D. The band range is set outside the data's axis scale

Solution

  1. Step 1: Check Reference Band range vs axis scale

    If the band range is outside the visible axis scale, it won't show on the chart.
  2. Step 2: Evaluate other options

    Refreshing data or filters are unrelated to band visibility; Reference Bands work on many chart types, not just pie charts.
  3. Final Answer:

    The band range is set outside the data's axis scale -> Option D
  4. Quick Check:

    Band range inside axis scale = visible band [OK]
Hint: Ensure band range fits axis scale to see it [OK]
Common Mistakes:
  • Thinking data refresh affects band visibility
  • Believing bands only work on pie charts
  • Assuming filters are required before bands
5. You want to highlight sales performance between $15,000 and $30,000 on a line chart and also show the average sales as a reference line. How do you correctly set this up in Tableau?
hard
A. Add a Reference Band from $15,000 to $30,000 and add a Reference Line for average sales on the same axis
B. Add two Reference Bands: one for $15,000 to $30,000 and one for average sales
C. Add a Reference Line for $15,000 and another Reference Line for $30,000, then add average sales as a band
D. Add a filter to show only sales between $15,000 and $30,000 and add average sales as a color

Solution

  1. Step 1: Add Reference Band for sales range

    Use 'Add Reference Line' > 'Band' to highlight sales between $15,000 and $30,000.
  2. Step 2: Add Reference Line for average sales

    Add a separate Reference Line on the same axis to show the average sales value.
  3. Step 3: Confirm correct setup

    Add a Reference Band from $15,000 to $30,000 and add a Reference Line for average sales on the same axis correctly describes adding one band for the range and one line for average, which is the best practice.
  4. Final Answer:

    Add a Reference Band from $15,000 to $30,000 and add a Reference Line for average sales on the same axis -> Option A
  5. Quick Check:

    Band for range + line for average = correct setup [OK]
Hint: Use band for range and line for average on same axis [OK]
Common Mistakes:
  • Using two bands instead of band plus line
  • Confusing lines and bands roles
  • Filtering data instead of highlighting range