What is a Calendar Heat Map?
A calendar map uses colour encoding to show data over specific dates; this can include showing aggregated data over months, weeks or days. They are useful for understanding and analysing patterns, trends and correlations within the data.
Creating a Single Month Calendar in Tableau
1. Open Tableau Desktop, connect to the data source and ensure that the data includes a date field.
2. Go to a new worksheet, then drag the date field to the ‘Filters’ card and filter to a specific month / year period.
3. Drag the date field from the ‘Data’ pane onto the ‘Rows’ shelf, right-click and select ‘Week Number’ under ‘More’ from the discrete date parts.

4. Drag the date field from the ‘Data’ pane onto the ‘Columns’ shelf, right-click and select ‘Weekday’ under ‘More’ from the discrete date parts.

5. Right-click on the ‘WEEK(Date)’ field on the ‘Rows’ shelf and uncheck the ‘Show Headers’ option. This will hide the week column in the calendar.

6. Right-click on the ‘WEEKDAY(Date)’ field in the ‘Columns’ shelf, select ‘Format’, go to ‘Dates’ and select ‘Abbreviation’ to change the full name of weekday to its three-letter abbreviation.

7. Right-click on the ‘Date’ header in the calendar and select ‘Hide Field Labels for Columns’. This will hide the ‘Date’ header.

8. Drag the date field onto the ‘Text’ card, right-click and change the format to ‘Day’ from the discrete date parts. This displays the dates in a calendar month.
9. Drag a measure field that adds meaning to the calendar map, for example, ‘Mean Temperature’, to the ‘Colour’ card. Change the ‘Mark’ type to square. The default colour palette in Tableau is blue-teal. The colour palette can be customised in the ‘Colour’ card. Since this calendar shows the daily mean temperature, an orange-gold colour palette may be more suitable, as we can clearly see that the days in a darker shade of orange have the higher mean temperatures of that month.

10. Other formatting options:
- The current calendar format has Sunday as the start of the week. To change the beginning of the week, right-click the data source in the ‘Data’ pane, select ‘Date Properties’ and change ‘Week start’ to Monday.

- Add the correct unit (°C) for mean temperature by right-clicking on the field, select ‘Default Properties’ > ‘Number Format’ > add °C to ‘Suffix’.

- Customising tooltips provides additional information when hovering over or clicking on specific dates.

- Add border to the calendar map by selecting ‘Colour’ card > Border = “White”
11. To make the calendar map interactive, add a Month / Year filter to the calendar. Right-click on ‘MY(Date)’ field in the ‘Filters’ card and select ‘Show Filter’. Click the ‘Ctrl’ key while selecting the ‘MY(Date)’ field in the ‘Filters’ card and drag it to the ‘Rows’ shelf before ‘WEEK(Date)’. The calendar map view changes according to the Month / Year selected.

Creating a 12-Month Calendar in Tableau

1. To create a 12-month calendar, repeat steps 1 – 9 from the previous section. For step two, filter to a specific year, e.g. 2009, instead of a specific Month / Year period. This will provide a single column of days in a week for the entire year.

2. Create a calculated field ‘Column Group’ with the following calculation. Drag ‘Column Group’ onto the ‘Columns’ shelf, right-click on the field and uncheck ‘Show Header’ to hide the header.

This splits the single column into three columns.

3. The weeks in each month are not aligned in the same row, to align them, we create a Level of Detail (LOD) calculated field called ‘Week Index’ with the following calculation.

This calculation subtracts the minimum week number at the month-level from the week number at the level of the visualisation to shift the weeks up.
4. Convert ‘Week Index’ from measures to dimensions and replace ‘WEEK(Day)’ field in the ‘Rows’ shelf with ‘Week Index’.
5. To get the calendar map to display 12 months, drag a date field to the ‘Rows’ shelf and select ‘Quarter’ from the discrete date parts. Uncheck ‘Show Header’ for ‘QUARTER(Date)’ field and ‘Week Index’ field.


Summary
Calendar maps are helpful tools for effective time management, scheduling, and visualising patterns across a period of dates. Additionally, they offer a visually intuitive approach to discern time-bound trends, making them invaluable for data-driven decision-making processes.
Not sure what heat map you should be using? Check out our Heat Maps 101 post to get caught up!