Comparing Measures Against a Goal


1. Building Bar-in-Bar Charts

Bar-in-bar charts are useful for comparing two measures as overlapping bars in the same space.

Making the bars different sizes can avoid that the bars bidden underneath the others


Process to build a bar-in-bar chart

  • Add [dimension] to [Rows]

    Add the 1st [Measure] to [Columns]

    image-20210614110224399
  • Drag the 2nd [Measure] to the view, dropping it on the x-axis when two green bars appear.

    image-20210614110405228
  • Side-by-side bars for two [Measures]

    image-20210614110512156
  • Move the [Measure Names] from [Rows] to [Color] mark

    image-20210614110845733
  • Unstack bars

    [Analysis] menu --> [Stack Marks] --> [Off]

    image-20210614111240025 image-20210614111307271


  • Make the bars different size

    • Hold [Ctrl] and drag [Measure Name] to [Size]

    • Edit size:

      • Smallest : controls the size for the thinner bars
      • Largest : controls the size for the thicker bars

      image-20210614111715412 image-20210614111734298 image-20210614111758855


    image-20210614111931130


2. Building Bullet Graphs

Bullet graphs can be useful when you want to see how far a measure has progressed toward a goal. (i.e. comparing a measure against another measure)


>> Methods to create a bullet graph

[Method 1] In the Data Pane

[Question] How far enrollment has progressed towards the maximum enrollment that would be allowed

  • Build a view that shows current enrollment by department

    image-20210614125445025
  • Use Maximum Enrollment as a reference line

    • Add [Maximum Enrollment] to [Detail]

    • Right-click the x-axis (Students Enrolled axis), and choose [Add Reference Line]

    • Edit the reference line with [Scope], [Line] and [Formatting]

      image-20210614125641240 image-20210614125736991


      image-20210614125952753

  • Add distribution areas to show stages of process

    • Right-click the x-axis (Student Enrolled axis), and choose [Add Reference Line]

      image-20210614130221752
    • Edit the distribution

      - Scope: [Per Cell]

      - Computation: [Percentages] 25, 50, 75 — [Percent of] Sum(Maximum Enrolled) / Sum

      - Label : [None]

      - Formatting : check [Fill Below]

      image-20210614130533550 image-20210614130351229


      image-20210614130758991

  • Use color to distinguish whether a department has reached its maximum enrollment

    • Create a calculated field “Max Enrolled?”

      SUM([Students Enrolled]) >= SUM([Maximum Enrollment])

    • Drag [Max Enrolled?] to [Color]

    image-20210614131317367

[Method 2] Use the Show Me

  • Select two measures we want to compare, and any dimensions we want to include

  • Click [Show Me] and select the bullet graph icon

    • Here, Tableau uses

      - the Maximum Enrollment for the bars and

      - current enrollment for the reference lines and distribution

    image-20210614132009819 image-20210614132031246 image-20210614132150639


  • Swap how the two measures are used

    • Right-click the x-axis (Maximum Enrollment axis) --> [Swap Reference Line Fields]

      image-20210614132818737image-20210614132853178