Business Intelligence Information Systems · Week 3 · Tableau lab 2 of 5

How do I see it?

A 70-minute lab in 7 steps on the same hotel bookings as last week. This time the question is not what to show but how: which visual channel (position, length, colour, size) carries which number, and which chart answers the question fastest. Every step ends with a checkpoint; your progress is saved in this browser.

1. Start: your workbook and a recap (5 min)

Open Surname_Lab1.twbx from last week. If you do not have it, connect again to hotel_bookings.csv (Connect › To a File › Text file) and you can still do everything below.

The channels you will use today

ChannelWhere in TableauBest forWeak for
PositionRows / ColumnsAny number; the most precise channelMore than two measures at once
LengthBarsComparing magnitudesParts of a whole across many categories
Colour (sequential)Marks › Color, a measureLow→high patterns in tables and mapsReading exact values
Colour (categorical)Marks › Color, a dimensionUp to ~6 groupsMany categories, colour-blind readers
SizeMarks › Size, a measureA third measure on a scatter plotPrecise comparison; negative values
Label / TextMarks › LabelExact numbers where they matterEverything, everywhere (clutter)
THE QUESTION OF THE DAYLast week we saw that the City Hotel loses 4 in 10 bookings to cancellations. Today we look at who cancels, what they pay and when they book, and we choose the chart that makes each answer obvious.

2. Who cancels? A proportion on colour (12 min)

Counts answer “how many”; a manager usually wants “what share”. We build the stacked bar first, then turn the labels into percentages within each segment.

  1. New worksheet. Market Segment to Rows, Booking ID (Count) to Columns. Sort descending.
  2. Canceled to Color. Each bar splits into Yes / No. Length now shows the count, colour the status.
  3. Booking ID (Count) to Label. Right-click that label pill › Quick Table Calculation › Percent of Total.
  4. Right-click the same pill again › Compute Using › Canceled. Now each segment adds up to 100 % and the label on the “Yes” part is the cancellation rate of that segment.
  5. Open Color › Edit Colors: give “Yes” a strong colour (orange) and “No” a light grey. The eye should go to the problem, not to the background.
  6. Rename the sheet Cancellation by segment.
Checkpoint 1
What percentage of Groups bookings were cancelled?

3. Two measures at once: price vs lead time (12 min)

Bars encode one measure. A scatter plot puts one measure on each axis, so every mark answers two questions: at what price does this segment book, and how far ahead?

  1. New worksheet. ADR to Columns, Lead Time (days) to Rows. Change both pills to Measure › Average. One mark: the whole dataset.
  2. Market Segment to Detail on the Marks card. One mark per segment. Then drag it also onto Label.
  3. Hotel to Color: each segment splits into a resort mark and a city mark.
  4. Booking ID (Count) to Size: big circles = many bookings. Set the mark type to Circle if it is not already.
  5. Canceled to Filters, keep No: prices and lead times of stays that happened.
  6. Rename the sheet Price vs lead time.
Checkpoint 2
Average lead time of Groups bookings at the Resort Hotel (non-cancelled)?

Read the plot like a map: top-left are segments that book early and pay little (tour operators, groups), bottom-right book late and pay more (direct, online). Write one sentence about what this means for the hotel's pricing.

4. Colour on a grid: the highlight table (12 min)

When the question is “price per hotel and per month”, a bar chart with 24 bars is hard to read. A highlight table keeps the exact numbers and adds a sequential colour so the pattern jumps out.

  1. New worksheet. Arrival Date to Rows; on the pill choose Month from the upper (discrete) block, so you get January … December. Do not use the text column Arrival Month: Tableau would sort it alphabetically.
  2. Hotel to Columns.
  3. ADR to Color and again to Label; set both to Average. Marks type: Square. Canceled to Filters, keep No.
  4. Open Color › Edit Colors: choose a sequential palette (one hue, light→dark, e.g. Orange or Blue). Avoid a diverging red–blue palette here: there is no meaningful midpoint for a price.
  5. Format the label to 0 decimals and prefix €. Rename the sheet Price by month and hotel.
Checkpoint 3
Average ADR of the Resort Hotel in August (non-cancelled)?

5. A number that cannot be right: deposit type (10 min)

Encoding well also means noticing when a chart shows something that should not be possible. Rebuild the proportion chart from step 2 with a different dimension.

  1. Duplicate Cancellation by segment, rename the copy Cancellation by deposit.
  2. Drag Deposit Type onto the Market Segment pill on Rows (it swaps). Check that the label is still Percent of Total computed using Canceled.
  3. Read the three bars: No Deposit, Non Refund, Refundable.
Checkpoint 4
What percentage of Non Refund bookings were cancelled?

6. Same question, three charts: seasonality (10 min)

“How do arrivals vary over the year, per hotel?” Build it three ways on one sheet by changing only the encoding, then decide.

  1. New worksheet. Arrival Date to Columns as Month (discrete, upper block). Booking ID (Count) to Rows. Canceled to Filters, keep No. You have 12 bars.
  2. Hotel to Color. Bars become stacked. Try side-by-side bars from Show Me. Can you compare the two hotels month by month?
  3. Change the mark type to Line. Two lines, one per hotel. Now the shape of each season is visible.
  4. Try a third version: Show Me › highlight table (Hotel on Columns, months on Rows, count on Colour and Label).
  5. Keep the version you find clearest and rename the sheet Arrivals by month.
Checkpoint 5
How many non-cancelled bookings arrived in August (both hotels)?
Checkpoint 6
Which version shows the seasonality of the two hotels best?

7. Before you leave, and homework (8 min)

  1. File › Save As › Surname_Lab2.twbx.
  2. Open Price vs lead time › Worksheet › Export › Image › PNG.
  3. Upload the .twbx and the PNG to eClass before you leave.
HOMEWORK (BY NEXT LECTURE, ~15 MIN) One paragraph in eClass: (1) explain the scatter plot to a hotel manager in two sentences – what the axes are and what the position of Groups vs Direct means for pricing; (2) state the Non Refund paradox as a question you would investigate, and name the dimension you would add to the chart first.
Checkpoint 7
How many named sheets does your workbook have now?

Next lecture

Week 4: where and when? Maps of the guests' countries, dates as discrete vs continuous, trend lines and a first forecast. Bring your .twbx.