Creating Indicator Bars for MoM or YoY Change Using Parameters in Tableau

Indicator bars are a simple but effective way to show whether a metric has increased or decreased over time. By combining parameters and calculated fields, you can build a single indicator that dynamically switches between Month-on-Month (MoM) and Year-on-Year (YoY) change, with colour and directional arrows to highlight positive and negative movement.

This approach assumes that the MoM and YoY percentage change calculations already exist and focuses on how to visualise and switch between them.



Step 1: Create the Indicator Bar Base

Start by creating a blank, coloured indicator bar.

To do this:

  • Type MIN(1.0) directly onto the Columns shelf
  • Remove all axes, borders, gridlines, and titles

This creates a simple, uniform shape that can be used purely as a visual indicator rather than a traditional chart.

Step 2: Create a Parameter to Switch Between MoM and YoY

Next, create a parameter that allows the user to choose whether the indicator should display a MoM or YoY change.

This parameter typically:

  • Uses a String data type
  • Contains two values: MoM and YoY
  • Is shown on the dashboard as a toggle or drop-down

Create a calculated field named MoM/YoY Switch to connect the parameter to the underlying percentage change calculations.

Example Field Calculation:

IF [MoM/YoY Switch] = 'MoM'
THEN [MoM Change %]
ELSE [YoY Change %]
END

This calculation allows the indicator to dynamically switch between the MoM and YoY percentage change values based on the parameter selection.

Step 4: Create a Calculated Field for the Colour Indicator

Next, create a calculated field that determines the colour of the indicator based on whether the change is positive or negative.

IF [MoM/YoY Switch] < 0
THEN 'Purple'
ELSE 'Blue'
END

You can customise the colours to match your own branding or dashboard theme, in this case I'm just using purple and blue.

Once created:

  • Drag this Indicator Colour field onto Colour in the Marks card
  • Click the colour legend and manually assign the colours to match the labels

📸 (Screenshot showing colour assignment)


Step 5: Add Labels and Directional Indicators

To complete the indicator:

  • Add the MoM/YoY Switch calculated field to the Label shelf
  • Also add the parameter itself so users can clearly see which view is active
  • Set the label alignment to Centre

Adding Directional Arrows

To display arrows that reflect positive or negative change:

  • Format the calculated field in the Label section
  • Choose Custom number formatting
  • Enter the following format:

â–²0.0%;â–¼0.0%

This ensures:

  • An upward arrow appears for positive values
  • A downward arrow appears for negative values


Final Formatting Touches

To keep the indicator clean and focused:

  • Turn off tooltips
  • Remove any remaining borders or gridlines
  • Ensure spacing and alignment are consistent across the dashboard

These can then be added into KPI cards for finishing touches.

Author:
Beza Taye
Powered by The Information Lab
1st Floor, 25 Watling Street, London, EC4M 9BR
Subscribe
to our Newsletter
Get the lastest news about The Data School and application tips
Subscribe now
© 2026 The Information Lab