Tableau Simples #8: Barcode Chart

by Henry Mak
  1. Put your continuous measure onto Columns and discrete Month into Rows. In my case, I used the Median of Profit (from the Superstore dataset)
  2. Drag the dimension that you want to split the view up by into Detail. In my case, I used Postal Code
  3. Change the mark type from automatic to Gantt Bar
  4. Reduce the opacity of the Colour. This is so you are able to better distinguish between each line
  5. Colour the view as you please. I decided to colour the lines based on whether they were above or below the median for each month. This was achieved via a calculated field:
MEDIAN([Profit]) > WINDOW_MEDIAN(MEDIAN([Profit]))

Tableau Public

Twitter

LinkedIn