“Lost time is never found again.” – Benjamin Franklin.
So said the man on the US $100 bill. Fortunately, a lot has changed since the 18th century, including the ability to find lost time in time series data. In the first of my new quick tip series, we’ll look at how to do this using the first Makeover Monday dataset of 2020!
There are two possible approaches to this challenge – both involve converting Year into a Date data type. Right-Click + Dragging Year onto columns will give the option of using it as a:
Because measures are continuous, selecting the green option for Year(Year) will let you skip to the last step in this post (Bring the dots back). If interested in how to do this with Year(Year) as a dimension, read on!
If you’ve selected the dimension, you’ll notice the data includes years 2004-8, 2013 and 2017 (skipping over both the ’09 swine flu pandemic and ’14 Ebola epidemic – of course nothing to do with the dataset). The equal spacing makes this misleading.
- Ensure the dimension is in the Date or Date & Time format.
- Right-click the axis and select Show Hidden Values.
Join the dots
The next part is a little more hidden, but straight forward once you know.
- Right-click in the chart to bring up the formatting options.
- Select the measure as the field.
- Change to the Pane tab.
- At the bottom under Special Values change Marks to Hide (Connect Lines).
Bring the dots back
Finally, our original intent was to make the chart look less misleading and more visually appealing. Note that it appears as though we have data for all years 2004-17, which is not the case.
The final step is to bring back the dots so that we know which years have data and which don’t.
- Click colours, then click the line with dots next to Markers.
As always, thanks for taking the time to read my blog! If you have any comments, suggestions or want to chat, free to connect with me on my LinkedIn!
~ Ryan Edwards