Video | Tableau | Data visualisation | Analytics

How to do Area calculations in Tableau [ with correction ] : New in Tableau 2021.2

I got it wrong, owned up to it, and then showed you exactly how Tableau's new AREA function really behaves.

Part ofWhat's new in Tableau 2021.2
Watch on YouTube
  • Never assume that data from a trusted source is correct, and always validate a conclusion before publishing it.
  • Tableau 2021.2's AREA function calculates the area of a polygon, taking a geometry dimension and a unit ('metres', 'kilometres', 'miles' or 'feet').
  • You can connect directly to shape files (.shp) in Tableau natively, and double-clicking a geometry field instantly builds a map.
  • The AREA function only gives an estimate over large or curved geographies because flattening the earth's curvature introduces variance, so it's most reliable for small, simple shapes like parks and playgrounds.
  • You could drive the unit argument with a parameter to switch dynamically between metres, feet, kilometres and miles.

Tableau 2021.2's new AREA function lets you calculate the area of a polygon directly from a spatial field, but Tim shows it's only an estimate over large or complex geographies, so you need to know when to trust it.

Tim originally compared Tableau's AREA function against pre-calculated area figures from a London flood-risk shape file and concluded Tableau's numbers were wrong. It turned out the source data itself was inaccurate, not Tableau, so he corrects that claim before walking through how the function actually behaves.

The Breakdown
  1. Own the mistake before anything else 0:00

    Tim had assumed a trusted third-party dataset (pre-calculated flood zone areas from a London data provider) was correct and used it to judge Tableau's AREA function. It turned out the source data's own calculations were wrong, not Tableau's, so the lesson is to validate a data source yourself before drawing a conclusion from it, especially before publishing.

  2. Connect to spatial files natively 3:15

    Tableau can connect directly to shape files (.shp) via the spatial file connector, no plugins needed. Shape files come bundled with supporting files, but you only need to open the one ending in .shp.

  3. Build a map from a geometry field 4:42

    Any field with the geometry/world icon can be double-clicked to instantly generate a map. From there you can switch the background map style (e.g. to streets) and dial down the wash so your data stands out against real-world context.

  4. Treat an ID field as a dimension for colouring shapes 6:21

    If a numeric ID field is being aggregated instead of treated as a category, drag it into the dimensions area to convert it, then use it on colour so each polygon gets a distinct, clickable colour.

  5. Write the AREA calculation 7:39

    The AREA function takes a polygon/geometry dimension and a unit string ('metres', 'kilometres', 'miles' or 'feet'). You could drive that unit argument with a parameter so users can dynamically switch units instead of maintaining separate calculations.

  6. Compare Tableau's estimate against a known-accurate source 8:58

    Putting the calculated area and a trusted reference area side by side on the tooltip or in a table shows that differences grow with the size and complexity of the geography — small shapes are nearly identical, large ones can be wildly off.

  7. Understand why it's only an estimate 9:40

    The AREA function has to flatten curved, real-world geography onto a flat plane to calculate area, and that flattening introduces variance that grows with the size and curvature of the shape — it isn't fully compensated for.

  8. Know where it's reliable and where it isn't 11:41

    Use AREA confidently for small, simple, self-contained shapes like parks or playgrounds. Be wary of it for polygons spanning large distances or complex forms (like a long river), where accuracy drops and some results can be dramatically wrong.

Worth Knowing
  • Some shape/polygon-level inaccuracies may come from problems in the polygon data itself rather than the AREA function, so a big discrepancy isn't automatically Tableau's fault.
  • Tim explicitly says he isn't a spatial-data expert and recommends reading Tableau's own paper on hexagon mapping for a rigorous explanation of the curvature-correction problem.
  • A dataset from a reputable source (here, a government environment agency) can still contain calculation errors — check before you rely on it for validation.
Use It When

Reach for AREA when you need a quick area estimate for compact, simple polygons like parks or property plots; don't rely on it for precise measurements over large or elongated geographies where curvature distorts the result.

How this Rollup was made provenance & method

A Rollup is drafted by AI from the video's transcript, then reviewed and edited by Tim. Everything used to produce this one is listed below — the model, the exact prompt, and the source video — so the process is transparent and reproducible.

Transcription
On-device — NVIDIA Parakeet v3 for recent videos, OpenAI Whisper large-v3 for earlier ones. The transcript never leaves the machine or gets published.
Drafting
Claude Sonnet 5 in the cloud, from that transcript.
Prompt
The exact Rollup prompt (v2) — the full system prompt, unedited.
Source video
Watch on YouTube
Drafted
5 July 2026 at 09:38
Reviewed & edited
5 July 2026 at 09:41 · by Tim Ngwena

Model + prompt + video is everything you'd need to recreate a Rollup like this yourself. The one thing we don't share is the transcript.

Rights. The video and its transcript are the property of TN Media Ltd. Unauthorised use or download is prohibited. © TN Media Ltd.