Video | Tableau | Data visualisation | Analytics

Length function to calculate lengths of spatial lines | New in Tableau 2023.2

In Tableau 2023.2 you can calculate the length of a line straight from the geometry, no more blending in distances.

Part ofWhat's new in Tableau 2023.2
  • The LENGTH function works only with line and multi-line string geometries, and you specify the units (miles, kilometres, feet, etc.) as a string argument.
  • You can skip working with the raw geometry and just use the calculated length for analysis, such as finding the Grand Union Canal as London's longest water body at 23.88 miles.
  • Accuracy depends entirely on how detailed the source geometry is, and more detailed polygons mean larger file sizes, so some generalisation is expected.
  • You can wrap the LENGTH function around the outline function to measure the distance around a polygon boundary.
  • Watch out for multi-polygon wards, as adding the polygon ID reveals that some boundaries are combinations of several polygons, which affects the calculated outline length.

Length (Spatial lines) Calculates the combined length of all line strings in the spatial parameter.

The 2023.2 Playlist https://www.youtube.com/watch?v=d3E5efnM3qg&list=PLRfaJ7ZL0cF6QFlYCU-QQDH81HSYJAHTV&pp=iAQB

Timestamps 0:00 Intro 0:19 The setup 0:55 How the Length spatial function works in Tableau 1:35 Use cases 3:34 Length of an Outline

Join this channel to get access to perks: https://www.youtube.com/channel/UC7HYxRWmaNlJux-X7rNLZyw/join