STA1000 - Data Analytics and Metrics
In general, through the lectures we have seen variables:
But variables can be made of many more values. In business analytics, dates and locations are particularly important: how to handle date and location variables in Tableau?
Tableau is particularly interesting because it creates interactive figures: how to make them smart by customising their interactivity?
Finally, the figures are assembled in a dashboard: how to make them react together, and how to share the dashboard?
So far, we were only interested in two variable types:
However, we have seen that sometimes…
Survived, coded 0/1, in the Titanic data)In Tableau, change the type of a variable by drag-and-drop between Dimensions and Measures in the Data pane
A date refers to a specific time: it can be any combination and format of year, month, day, hour, minute, second …
For example, “March 23, 1984”, “03/23/84”, “23/03/1984” and “1984-03-23” have different formats but refer to the same date.
In data science, we use the ISO 8601 international standard format (YYYY-MM-DD), “1984-03-23”, which sorts dates easily.
By default, a date variable should be properly encoded: a calendar icon appears before it. If it is encoded as categorical (Abc) or continuous (#), convert it to Date or Date & Time. In insta-data.csv, posted_at (2025-01-08 20:00:00) is a Date & Time.
Date variables are usually used as the X axis (Columns in Tableau) to display the evolution of another variable over time.
The resolution of the chart can be adjusted by clicking on the + symbol of the date variable: from the year to the quarter, the month, the day …

While the date variable is in one field, drag and drop the other variable in the other field. It uses a statistical aggregation: by default the sum (SUM), but it can be changed to count, median, average …
To add a second line in the same figure:

The recordings in this lecture use a Covid-19 sample: the clicks are the same with your own data.
A date can be used as a Dimension (discrete, blue pill) or as a Measure (continuous, green pill). Switch from one to the other in the menu of the date pill: Discrete or Continuous.
As a Dimension: each unit of time (year, quarter, month …) is a category with its own header. The line stops at the end of each year: gaps between the units.

As a Measure: time is a continuous axis, a timeline. The line runs from the first date to the last: no gaps between the units.

A Dimension compares the same units year by year; a Measure follows the trend over the whole period.
More details about Tableau and time series figures, among other resources found online:

With insta-data.csv:
posted_at has a calendar iconreach by month: which month peaks? Which Lecture 3 post explains it?spend_eur and attributed_revenue_eur by month on a synchronised dual axis: how much revenue per euro spent?A list of geographical locations by:
By default, a location variable should be properly encoded: a globe icon appears before it. If it is encoded as categorical (made of characters) or continuous (made of numbers), give it a Geographic Role.

To create a map:

More details about Tableau and maps, among other resources found online:


A symbol map (left) and a filled map (right)
insta-data.csv has no location, but Meta Ads Manager breaks the results of the 127 paid posts down by country: ads-by-country.csv, one row per post and country.
| post_id | country | amount_spent_eur | purchases | purchase_value_eur |
|---|---|---|---|---|
| LR0040 | Ireland | 202.33 | 8 | 877.84 |
| LR0040 | United Kingdom | 59.64 | 1 | 104.24 |
| LR0042 | Ireland | 93.82 | 5 | 507.76 |
| LR0042 | United Kingdom | 44.71 | 1 | 96.47 |
post_id, as in Lecture 4: each table keeps its own rowsSUM(amount_spent_eur) is €24,345.78, the spend_eur of insta-data.csvSUM(spend_eur) jumps to €106,899.36From Loop, download ads-by-country.csv, then with insta-data.csv:
post_id, and check the totalscountry should have a globe icon: a symbol map of purchases. Where do the sales come from?SUM([Purchase Value Eur]) / SUM([Amount Spent Eur]): where does a euro go furthest?Last week, in Tableau:
ads-by-country.csv, related to insta-data.csv on post_idToday:
Not an interactive feature, but a simple and useful tip: an alias renames the categories displayed by a variable, while the calculations keep the original values.
How: in the Data pane, open the menu of the variable ( right-click / ⌃ Control + click) → Aliases…, then type the new names.
Without aliases: Survived (Titanic data) shows its codes, 0 and 1

With aliases: 0 is displayed as Did not survive, 1 as Survived

An alias renames one category; a group merges several categories into one: to correct spellings, or to compare families of categories.
How: in the Data pane, open the menu of the variable ( right-click / ⌃ Control + click) → Create → Group…, then:
Shortcut: select marks in the figure, then click the paperclip icon of their tooltip.


Loomrow: campaign mixes three launches (SS25_Launch, AW25_Preorder, SS26_Launch) and three sales (Summer_Sale_25, Black_Friday_25, Deadstock_Drop_26), two groups to compare.
With insta-data.csv:
is_paid: False as Organic, True as PaidSUM([Attributed Revenue Eur]) / SUM([Spend Eur]) by campaign group: which group returns more per euro spent?Tableau designs the default figure automatically, according to what it considers the most relevant. The Marks card changes this design:
Each property of the design can be set:
format on Colour gives one colour per format, reach on Size bigger marks for a bigger reachLabels write the values on the marks. Click Label in the Marks card, then choose the marks to label: all of them, the minimum and maximum, the line ends, or only the selected or highlighted ones.
Annotations point at an insight. Open the menu of a mark ( right-click / ⌃ Control + click) → Annotate, then choose:

The tooltip is a series of information (numeric or graphic) displayed in a temporary box when the cursor goes over, or clicks on, an element of a figure. It gives the actual numbers behind the figure, and tells a short story about what is currently seen.

The default tooltip

A tooltip with conditional formatting

A figure in the tooltip
By default, the tooltip lists the variables of the figure, one per line. Click Tooltip in the Marks card to edit it: the text is free, and each variable between < > shows its value under the cursor (in annotations too).
For example, on reach by month:
Month of Posted At: <MONTH(Posted At)>
Reach: <SUM(Reach)>
Will show:
Month of Posted At: August 2025
Reach: 685,460
Rewritten as a sentence, the same tooltip tells a story:
In <MONTH(Posted At)>, <CNTD(Post Id)> posts reached <SUM(Reach)> accounts!
Will show:
In August 2025, 26 posts reached 685,460 accounts!
Two ways to put more in a tooltip:
post_id, counted with Count (Distinct)
On your sheet of reach by month:
reach by format for the month under the cursorA filter displays only specific data. Drag a variable onto the Filters shelf, then select what to keep: categories for a categorical variable, values for a continuous one.

The filter dialog depends on the variable:
SUM([Reach]) of at least 10,000SUM([Reach])
A filter menu (a filter card in Tableau Help) lets the readers make their own selection.
Add it:
Note: the same result comes from the Filters shelf: open the menu of the variable → Show Filter.
Choose its style:
Tick Only Relevant Values to hide the values that the other filters exclude.

By default, a filter only changes its own sheet. On a dashboard, the readers expect one filter menu to change all the figures.
On the Filters shelf, open the menu of the variable → Apply to Worksheets:
insta-data.csv or ads-by-country.csv, related on post_idA filter shared by several sheets gets an icon on the Filters shelf.

A highlighter menu lets the readers focus the figures on some categories. Unlike a filter, it keeps all the data in the figure: the categories not selected are only dimmed.
Add it:
On a dashboard, the highlighter menu applies to all the figures that use the highlighted variable.

format (multiple values, drop-down) on your monthly sheet, applied to all the sheets using insta-data.csvreach (a Top filter on post_id): which formats and themes?reach by theme: a filter on theme, then a highlighter. Select customer in each: where does it rank?Drag a date variable onto the Pages shelf to play the figure over time:

For Stephen Few, a dashboard is a visual display of the few things that matter to reach an objective, arranged on one screen and readable at a glance.
Like the dashboard of a car: the few numbers needed to drive, readable in a second, with warning lights when something goes wrong.
Few, S. (2006). Information Dashboard Design: The Effective Visual Communication of Data. O’Reilly.

Federica Pinza’s visualisation, DCU winner of the 2024 European Data Visualisation Challenge organised by EDHEC


One long page, read from top to bottom:

Key numbers in colour inside the text, and a Donate button

A year player with Show history, and a highlighter to select a country

Two measures on one map, the out-of-school rate (colour) and GDP per capita (circles), with a text to read it

Rural against urban population by region, in the two colours of the dashboard

The causes: one icon each, short texts, and the key numbers in bold and colour

The conclusion: a summary, and a call to action, raising awareness

Tableau’s best practices for dashboard design:

Know your audience

Consider display size

Plan for fast load times

Leverage the sweet spot

Limit views and colours
The first one comes before the first sheet. Answer four questions:
The 5-second test: after looking at it for 5 seconds, a reader should be able to say what it is about.
Creating a perfect Tableau dashboard is easy if you follow these steps:
Keep them in mind at every step:
Dashboards come in genres: curated ones tell one story (e.g., magazine, infographic), data collections let the readers explore (e.g., analytical, repository). Your assignment is a curated dashboard.
Every dashboard should include these key elements to fill its screenspace:
Optional elements can be added, such as images, buttons or menus.

Example of a dashboard structure, for illustration only: not necessarily to follow.
A good title, as in these real dashboards:

The story, the narrative conveying the information, has three parts:


Marketing dashboards often open with a few KPIs (Key Performance Indicators) as big numbers: at the top left, each with a comparison. For Loomrow, January to June 2026 against January to June 2025:
2.06M
accounts reached
against 0.45M
6.3%
engagement rate
against 6.4%
€2.75
of revenue per €1 spent
against €3.46
In Tableau: one sheet per number, with the measure on Text in the Marks card, then the sheets side by side in a horizontal container. The engagement rate:
(SUM([Engagements Followers]) + SUM([Engagements Non Followers])) / SUM([Reach])
Readers scan a screen from the top left, then across and down: put the most important view (or the KPIs) in that corner, and the details below or to the right.

A dashboard is a page made of:
First place the sheets and objects, then change the design features to give the dashboard a professional feel, and add the actions last (step 4 of the design strategy).
Click the New Dashboard icon at the bottom of the window, then drag the sheets from the left panel onto the page. Tiled keeps them in a tidy grid; Floating lets an object sit on top of the others.

Set the size before placing anything, in the Size menu of the Dashboard pane:
Device Preview shows the dashboard on a desktop, a tablet or a phone, and creates a layout for each device.

A container groups objects that resize together: a Horizontal container shares its width between them (e.g., a row of KPIs), a Vertical one its height (e.g., a column of filters).

Horizontal: side by side

Vertical: one above the other
The Objects of the Dashboard pane add everything that is not a sheet:

Any object or container can get a Show/Hide button, e.g., to hide a panel of filters.
Filters and highlighters are set up in each sheet; actions are set up in the dashboard, and make all its figures react together.

Click Dashboard in the top toolbar → Actions → Add Action, then choose:
Start with Filter and Highlight actions: they behave like filters and highlighters, but for the full dashboard. The other actions take more set-up, but they are essential to add buttons, for instance.
With the default settings, an action changes all the figures of the dashboard when the reader hovers over a figure, clicks on it, or selects a value from a menu.
Highlight actions are the easiest way to make a dashboard smart: with Hover as the trigger, the figures react together as the cursor moves.
Filter actions are useful too, but confusing with Hover or Select as the trigger, as the figures keep changing: trigger them from a Menu instead.

The quickest filter action: select a sheet on the dashboard and click its Use as Filter icon (a funnel). A click on one of its marks then filters all the other sheets.
The other actions of the Actions dialog:

One dashboard, fixed size 1200 × 800 px, to answer: which format should Loomrow post more of, and why?
format, box plots of reach by format, reach by month, return on ad spend by countryStart now, finish at home.
Publishing saves the dashboard online, where everyone can open it.
In Tableau Public in the browser, publishing is saving: click Publish As…, top right.
Warning: everything you publish is public, the data included.
For your assignment, publish your dashboard and submit its URL on Loop.

A checklist for your dashboard:
Swap with a neighbour and check each other’s dashboard: one compliment, one fix.
More details about dashboards in Tableau, among other resources found online:
You are the marketing analyst at an international company, just hired. Instagram is effectively the label’s whole top of the funnel, and the founders want to know what 18 months of posts tell them.
With the data you will receive by email, tell a story (i.e., a narrative) behind the data in ONE Tableau dashboard, ending with a recommendation.
Submit the URL of your Tableau Public dashboard on the STA1000 Loop page. Deadline: November 22nd at 12pm midday
Past challenges are an excellent way to see outstanding dashboards:



Thanks for your attention and don’t hesitate to ask if you have any questions!