Video | Tableau | Data visualisation | Analytics

How to use the Distance calculations in Tableau Desktop 2019.4 and newer.

Tableau 2019.3 lets you calculate the distance between two points directly, no external pre-calculation required.

Part ofWhat's new in Tableau 2019.4
  • The DISTANCE function takes a start point, an end point and a distance unit such as 'kilometers'
  • Use MAKEPOINT with latitude and longitude to create the start and finish points the function references
  • Tableau calculates distance 'as the bird flies' — a straight line, so treat it like a radius between two points
  • You can drag the distance measure onto columns and add trip ID to build a bar chart, then use it as a filter
  • This removes the need to pre-calculate distances outside of Tableau