DS12's Dashboard Week, Day 5

What do you do when your date columns are split into three different columns?

In other words, you have three columns: Year, Month, Day.

To put them together in Tableau (or Prep), create a calculated field and write as seen in Image 1.

Image 1: Creating a date by joining the the three columns.

What do you do when your hours a split into 24 different columns?

With the dataset that Kriebel had given us, the hours were split into 24 columns from 0-23.

Pivot the hour fields. Afterwards, produce the calculated field in Image 2.

Image 2: Joining the [Date] field with the [Hour] column.

The calculation had to convert the [Hour] field to an integer because it was entered as a string.

Author:
Seffana Mohamed-Ajaz
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
© 2025 The Information Lab