Video | Tableau | Data visualisation | Analytics

The ShapeType Function | New in Tableau 2023.2

There's a new ShapeType function in Tableau 2023.2 that tells you exactly what kind of geometry you're dealing with.

Part ofWhat's new in Tableau 2023.2Tableau Functions
Watch on YouTube
  • The ShapeType function in Tableau 2023.2 takes a spatial object and returns its geometry type
  • Build it by highlighting the geometry field, opening a calculation, typing ShapeType and double-clicking to wrap the spatial object
  • The function distinguishes geometry types such as line string versus multi-line string
  • You can store different geometry types in a single column and use ShapeType to identify them
  • The returned shape type can be used as a filter to selectively work with shapes, polygons and geometries

Tableau 2023.2 introduces a ShapeType function that takes a spatial geometry field and tells you what kind of shape it is, which is handy when a single dataset or column mixes different geometry types.

Tim works with a water bodies dataset containing spatial geometries of different types stored in one field. He builds the calculation from scratch on a new sheet to show how simple it is.

The Breakdown
  1. Open a calculation on the geometry field 0:21

    Highlight the spatial geometry field you want to inspect and open a new calculated field.

  2. Type ShapeType and wrap the spatial object 0:41

    Type ShapeType into the calculation, then double-click the geometry field so the function wraps it as its input; it needs a spatial object to work.

  3. Use it where geometry types are mixed 1:14

    If your data pivots or stores multiple geometry types in a single column, ShapeType lets you identify what each row actually contains rather than assuming a consistent shape.

  4. Filter by shape type 1:28

    Once you have the ShapeType result, you can use it as a filter to isolate specific shapes, polygons or geometries for separate analysis.

Use It When

Reach for this when a spatial field contains more than one geometry type and you need to identify, separate, or filter records based on what kind of shape each one actually is.

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.