All articles

KajoData / tableau en

Apple mobility dashboard in Tableau: dates, indices and comparisons

I explain a two-view dashboard, using a small synthetic table to check dates, aggregation and the limits of historical mobility data.

Kajo RudzińskiPublished Updated 12 min read

Golden routes enter an analytical display beside a closed archive box.

I start a Tableau dashboard with a question I can explain without sharing my screen. Here, the question is: how did an indicator change over time for a selected area and transport mode? I want a time view and a comparison of selected areas on the same day. Two views are enough for that purpose. I will add another chart when there is another specific question, rather than filling every available corner of the canvas.

The starting point is my older material about Apple’s mobility data. I keep it as a historical exercise. Apple stopped providing Mobility Trends Reports on April 14, 2022. In November 2026, an archive from that project does not describe current movement. Below, I distinguish the historical source from a small synthetic table, so you can understand the dashboard without finding exactly the same download.

Establish what the source measured

Apple’s 2020 announcement describes aggregated requests for directions in Apple Maps. That distinction matters. A route request does not prove that a journey happened. App users are not automatically a representative sample of everyone living in an area. I would therefore avoid labels such as “people on the street” or “completed journeys” when the file actually contains an index of requests.

In a source note, I record the dataset name, the dates present in my particular file, when I obtained it and what its values mean. I also check geographic levels and transport modes. A country, a region and a city identify different series. A country and its capital are not two disjoint components that can simply be added together. The geographic structure needs to be explicit before a ranking can carry a useful meaning.

If you have an archive, retain the original and prepare a separate working version. Describe the transformations between them. An old link is not a promise that the same file remains downloadable today. If the source is unavailable, use clearly labelled training data. A portfolio should let someone follow your reasoning. It does not need to suggest access to a current Apple system that the project never had.

Define a row and a key

In the target table, one row means one date for one combination of area, geographic level and transport mode. My proposed fields are Area, GeoType, Mode, Date and Index. You can use different names, provided the meaning remains clear. The first four fields form the key. If two rows share that key, explain why before using the values in a chart. Duplicate-looking records are an investigation task, not an automatic deletion instruction.

Two records might come from different archive versions, an accidental join or a geographic distinction hidden in another column. Those situations need different corrections. I compare the remaining fields and source description before choosing a record. Removing a row just because it is inconvenient could conceal a change of definition. A smooth chart is a poor reward for losing the explanation of how its data was assembled.

I treat identifiers as categories, the date as a date and the index as a number. A field containing digits is not necessarily a measure that should be summed. A year, an area code and an index value may look similar in a CSV preview, but they have different analytical roles. Hiding unused fields can make the Tableau workspace easier to navigate. It does not resolve whether a field belongs in the key or changes the interpretation of a series.

Turn date columns into date rows

An older file may store each day in a separate column. For the planned views, I want one date field and one value field. In a supported file source, I select the day columns on the Data Source tab and choose Pivot. Tableau documents which connections support that operation. The area identifiers and transport mode stay outside the selection because I need them to identify each resulting row.

I rename the pivot name and value fields, assign date and numeric types, and inspect records from the beginning, middle and end of the period. If the date field contains “walking”, I selected a metadata column by mistake. If numbers become null, I investigate the input format and decimal separator. Replacing everything with zero would hide the problem while giving it a very definite meaning on the chart.

A wide golden grid passes through short conveyors into an orderly stack of rows.

If another day is added to the file later, I check that its column is included in the transformation. A process that worked once is not automatically a reliable refresh process. For a fixed archive, a documented date range is sufficient. For a maintained report, I would also need a check that detects a missing latest day. The distinction belongs in the project description so the reader knows what level of maintenance to expect.

Use a tiny table with an explainable result

The following data is synthetic. The place names and values are for learning, rather than a transcription of Apple’s historical report. I define an illustrative reference level of 100 for each series. The example includes one transport mode and one geographic level. Keeping those choices fixed makes it easier to understand the index before introducing more filters, levels and opportunities to mix incompatible observations.

Area GeoType Mode Date Index
Alfa city walking 2021-04-01 100
Alfa city walking 2021-04-02 80
Alfa city walking 2021-04-03 120
Beta city walking 2021-04-01 100
Beta city walking 2021-04-02 110
Beta city walking 2021-04-03 90

On the second day, Alfa is 20% below the illustrative base. On the third, it is 20% above it. Moving from 80 to 120 is a 50% increase relative to the second day. These are different comparisons. The index increased by 40 points, but saying “40% day over day” would be wrong. I show the date and value in the tooltip and add a percentage only when I can name its reference clearly.

Adding 120 and 90 gives 210 arithmetically. It does not give 210 journeys or a combined population mobility index. The original counts behind the two reference levels might have been very different. Without appropriate weights, I cannot reconstruct the combined change. An equally weighted mean would also be a separately defined measure. It should not quietly acquire the label “national mobility” just because Tableau can calculate it.

Build a time view for a series

On the first worksheet, I place Date on Columns and Index on Rows. I choose an exact continuous date and Line marks. A continuous date creates an axis. I check that Tableau has not grouped together all Aprils from different years or all matching day numbers. The horizontal position must correspond to the actual order of observations in the file.

For Alfa, the three points should be 100, 80 and 120. I put area on Color when comparing both series, with geographic level and transport mode controlled explicitly. With a larger file, I choose a manageable set of areas instead of drawing dozens of overlapping lines. The dataset can be large while the view remains simple. Its job is to answer the question, rather than display every record at the same time.

I also inspect the aggregation. Tableau aggregates measures at the view’s level of detail. With exactly one observation per series and date, an average returns that observation. I would not use AVG as a cure for duplicates, though. If there are two rows behind a point, I go back to the key. Switching from SUM to AVG may make the line look plausible without explaining the duplicated data.

Compare areas on the same day

The second worksheet asks which selected area has the higher index on one specific day. I place area on Rows and the value on Columns, then restrict the date filter to a single day. On April 3 in the synthetic table, I should see Alfa at 120 and Beta at 90. The title includes the selected date and transport mode, because those choices are essential parts of the answer.

I start the bars at zero because length represents value. I add numeric labels and preserve each area’s colour between worksheets. If I add a reference line at 100, I label it as the index base. I would not call it a threshold for a healthy economy or normal life. Those interpretations would need other evidence. Crossing the reference level alone does not explain why requests for directions changed.

A comparison across a period needs a new measure definition. The average of three available observations is different from the last day’s index. If one series has missing dates, its average might cover a different selection of days. I therefore keep a single-day comparison in the first version. Extending the filter should be a deliberate analytical choice, with an explanation of the calculation, rather than an unnoticed change in what the chart means.

Assemble the dashboard and set filter scope

I create a dashboard and drag the two worksheets into it, following Tableau’s dashboard instructions. At the top, I put the question, date range and a short explanation of the indicator. The time view receives more space. The daily comparison sits beside or below it. Under the views, I retain the source note and a clear statement that the data is historical or synthetic.

Area and mode selections should behave consistently across the views. The single-day filter belongs to the bar comparison; I do not want it to turn the time series into one lonely point. I name the controls to explain their scope. If selecting a bar filters the line as well, I check the behaviour and how to clear the selection. Interactivity is useful when it helps someone answer a question without wondering what just disappeared.

I review three states: the default view, one selected area and a combination with no observations. An empty combination deserves a clear explanation. I avoid replacing a missing observation with zero. Zero is a specific value, while a missing row may mean the source did not provide the measurement. Someone looking at the dashboard should be able to distinguish the two cases without opening the underlying spreadsheet or asking its author.

Separate observations from explanations

For the finished exercise, I can write: “In the synthetic example, Alfa increased from 80 to 120.” That statement describes the table. It does not establish a cause. In a real archive, a change might coincide with restrictions, weather, seasonality or app-use patterns. A line chart alone cannot separate these explanations. I keep a descriptive finding and a possible explanation in separate sentences so their evidential status remains visible.

The area ranking needs the same care. A higher index means a higher value relative to that series’ own reference level. It need not mean more app users or journeys than another city’s lower index. If the audience wants a journey count, the honest answer may be that this dataset does not supply it. A useful analytical project also identifies questions it cannot answer, instead of disguising the gap with another KPI card.

Trace a chart point back to a row

Before handing over the project, I pick one point and find its record in the prepared table. Alfa, walking and April 2 should identify exactly one row with an index of 80. I compare the filter choices, chart value and source value. If the source says 80 while the view says 160, I investigate the number of contributing rows and the aggregation, instead of changing the axis to make the discrepancy less noticeable.

I check the first and last available dates for each mode, then test returning from several interactions. I select an area, change the day, select a bar and clear the selection. At each step, I establish what remains visible in both worksheets. If recovering the initial view requires remembering a complicated sequence of clicks, I simplify the interactions. A dashboard intended for independent use should communicate its filter state without a separate meeting with its author.

I also read the headings as if I had never seen the project. “City comparison” is too broad for one transport mode on one day. A heading describing the route-request index, selected cities and date makes the scope much clearer. For the exercise, I retain the synthetic-data label. A source note in the footer cannot correct an exaggerated headline that the reader encounters first.

My acceptance criteria are concrete: six example rows, two areas, three dates, no duplicated key, values matching the table, correct filter scope and a clear reference-level explanation. I check these before polishing background colours. If someone requests a weekday-versus-weekend comparison, I record a separate extension with its own calendar and comparison rules. That keeps the first version understandable while giving the next version a question that can actually be checked.

Check a phone layout and hand over the project

I use Device Preview and inspect the phone layout. Device layouts need their own review after changes. On a narrow screen, I stack views vertically, shorten titles and check whether the filters are usable. Limited space should not remove the date range or the indicator definition. Those details matter more to interpretation than an ornamental legend or an unusually elaborate background.

The handover note also identifies who prepared the data and the input file version, so the next reader can recognise the source without guessing.

For a portfolio description, I include the question, row definition, source, date transformation and one issue I investigated. Before publishing to Tableau Public, I check that the complete dataset can be public. The workbook and its data are not a private storage area there. Synthetic training data is enough to demonstrate a two-view dashboard; an employer’s internal spreadsheet is unnecessary for that learning objective.

For an independent exercise, remove one Beta observation and decide how the views should behave. Add a second transport mode and verify that the key and filters still make sense. Ask someone to read one finding without your explanation. If they confuse an index with a journey count, revise the wording. For related practice, see my introduction to Tableau and the small-data charity dashboard.

Key takeaways

Does Apple still publish these reports?

No. Apple stopped providing Mobility Trends Reports on April 14, 2022. This is a historical learning project.

Can I add the indices of several cities?

Their sum is not a total number of journeys. Each series has its own reference level, so any combined measure needs a stated method.

What should I do with dates stored as column headings?

For this project, pivot the date columns into rows while retaining the series identifiers. Then set the date and numeric field types.

AI was used in an automated way while working on this article. If you want to learn how to do it too, check out this project.

Kajo Rudziński

Newsletter KajoData

Let’s keep in touch.

I write about data analysis, learning and changing careers. My newsletter and the sign-up form are in Polish. If that works for you, I’d be glad to see you there.