Simple Spatial Functions in Tableau?

    Spatial data in general deals with geographic data. Examples of this include crimes in London, London bus routes, and subway stations. To work with spatial we can use the following formulas.

MAKEPOINT (<latitude>, <longitude>):

  • Here longitude and latitude are converted into spatial data.
  • File Types that can be used: Shapefiles, MapInfo tables, KML (Keyhole Markup Language) files, GeoJSON files, TopoJSON files, and Esri File Geodatabases.
  • We just need to use hyper and TDE for Tableau.
  • Most people will use hyper files.
  • Able to create a point, line, or polygon map using the data in those files.

MAKELINE (<geometry1>,<geometry2>):

  • Creates a line between two points.
  • MAKELINE (OriginPoint, DestinationPoint)
  • Build upon the MAKEPOINT.
Author:
Mohammed Uddin
Powered by The Information Lab
1st Floor, 25 Watling Street, London, EC4M 9BR
Subscribe
to our Newsletter
Get the lastest news about The Data School and application tips
Subscribe now
© 2025 The Information Lab