How to create routes with the MAKEPOINT and MAKELINE functions

Sdílet
Vložit
  • čas přidán 4. 09. 2024
  • In this week's tip, I show you how to use the makepoint and makeline functions that became available in Tableau 2019.2 to create routes. I show two examples: airline routes, and bus routes. The bus routes also shows you how to use a calculated join to bring one row up to the previous row.
    Get a taste for vector maps as well. Download the workbook here - www.vizwiz.com...

Komentáře • 76

  • @jizhang2407
    @jizhang2407 Před 5 lety

    thanks for sharing, Andy. I never knew there are the makepoint and makeline functions... until today

    • @vizwiz
      @vizwiz  Před 5 lety

      Ji Zhang they are a new feature in 2019.2

  • @aniiketpatiil7685
    @aniiketpatiil7685 Před 5 lety +1

    Hey Andy you are doing great job.Even i was searching for best use cases in tableau and you are doing same.Thanks for this and please keep uploading such videos.

  • @sergioloyola4261
    @sergioloyola4261 Před 3 lety +1

    You are a life saver! - Thank you!!!

  • @rajeshtukdeo
    @rajeshtukdeo Před 4 lety +1

    Thanks Andy for this wonderful video !!

  • @sunithaambala3396
    @sunithaambala3396 Před 5 lety

    Thank you Andy .. I keep learning from your videos

  • @chandrabhanu4478
    @chandrabhanu4478 Před 5 lety

    Got to learn something new today... Thanks Andy

  • @aashishkshah
    @aashishkshah Před 5 lety

    I keep learning from you .. Thanks Andy and team!

  • @sj8648
    @sj8648 Před 2 lety

    Thank you Andy!!!

  • @funguy29
    @funguy29 Před 3 lety +1

    super solid sir. thanks

  • @magagsi
    @magagsi Před 5 lety

    Super duper!!! Thank you Andy!

  • @JurijFedorov
    @JurijFedorov Před 5 lety +1

    Every single video about this uses the same kind of dataset. There is so much info in such a dataset. I may just have cities and nothing else.

  • @Data.Monster
    @Data.Monster Před 5 lety

    Awesome Andy, great tutorial !!!

  • @25070410
    @25070410 Před 5 měsíci

    Thanks for this video. I have question, how to show top 10 busiest air routes from the dataset that you have.

    • @vizwiz
      @vizwiz  Před 5 měsíci

      This data set doesn’t have passenger information.

  • @datapeek
    @datapeek Před 2 lety

    It was really helpful. Thanks

  • @vizlab_kr
    @vizlab_kr Před 5 lety

    Great resource! Thanks!

  • @rohitshyam9833
    @rohitshyam9833 Před 2 lety

    You are a saviour. Can i use same technique for shipping data.

    • @vizwiz
      @vizwiz  Před 2 lety

      As long as your data is structured the same way.

  • @romanvasiura6705
    @romanvasiura6705 Před rokem

    Andy, hello!
    Could you give a link for the dataset(s)? I would like to repeat each step from your video... but without dataset I can't do it...

    • @vizwiz
      @vizwiz  Před rokem +1

      Download the workbook.

  • @harishmahamure7574
    @harishmahamure7574 Před 3 lety

    Amazing, just a quick question. The lat long details need to be at how much depth? Like zip code or we can dive more?

    • @vizwiz
      @vizwiz  Před 3 lety

      That’s totally up to you.

  • @MrMaiqbal
    @MrMaiqbal Před 4 lety

    Hi Andy, great work and demonstration. Just a quick question, can you add all stops on a route (Bus routes in London) and somehow highlight them while selecting/filtering a route? like some dots/circles on a single route line with their names in tooltip while hovering over those dots/circles? thanks

  • @adnansaqib9468
    @adnansaqib9468 Před 2 lety

    Great Work!
    I have one question. How can we get check-In & out of every station and can we find the distance between each station.

    • @vizwiz
      @vizwiz  Před 2 lety

      You would need to find the data. As for distance, there’s a DISTANCE function you can use.

  • @zii8181
    @zii8181 Před rokem

    How about for zip code that starts with zero, distance formula won't show the difference. Any thoughts??

    • @vizwiz
      @vizwiz  Před rokem

      The data needs the be lat/lon but zip code

  • @rizwanalvi786
    @rizwanalvi786 Před 2 lety

    Great Video.. I just have a small question.. in case of airport route, it is obvious that there is a curved straight line between origin and destination point, but how come, in case of London Bus Stop example, it is creating a proper route between two points ? which is zig-zag in certain cases.??

    • @vizwiz
      @vizwiz  Před 2 lety

      Tableau considers the curvature of the earth when deciding whether to curve the line. If you are zoomed in quite far, like the London bus example, the curvature will have no impact. Tableau is still drawing a curve, but you can't see it.

  • @drparthagopal5023
    @drparthagopal5023 Před 2 lety

    Superb..

  • @srinivasaai
    @srinivasaai Před rokem

    Great video ✈️, how to plot flight path connecting series of lat long on map.

    • @vizwiz
      @vizwiz  Před rokem

      You can’t do it with makeline. You would need each point in an individual row and then you should be able to put the field that orders the points along the route onto the path shelf. Or you might need to use the pages shelf

  • @acmerritt
    @acmerritt Před 5 lety

    I do a lot of work with airlines and so I appreciate the tip, as always. (one of my mantras, WWAD - What Would Andy Do?). Back in 2016, I worked out the custom geocoding sufficiently to create Airports as a Geographic Role and I use that to map various things but I've never been able to map the routes. Can I use MAKELINE to connect the Departure and Arrival airports when they are already defined by their geographic role (latitude / longitude)?

    • @vizwiz
      @vizwiz  Před 5 lety

      acmerritt you can use these functions if you have lat/lon fields in the data set. You can’t use tableau’s automatically generated lat/lon.

    • @acmerritt
      @acmerritt Před 5 lety

      @@vizwiz Thank you so much for answering Andy. (I live in a small beachside town in Australia, a long way from any capital city user groups that I could ask). The lat/lon fields are not in the dataset per se, but they are in a file (of my making) that sits in the folder for the custom geocoding. Would you suggest I bring that excel file into the relevant workbook, 'undefine' the airport fields from geographic role to just string and go from there? It feels like I'm going backwards to undo it but can do that if you think it the way to go. Or should I be asking this on a forum - I don't want to impose.

  • @josephshuffield6113
    @josephshuffield6113 Před 2 lety

    HI Andy--I've used your airport example to create a map that shows facilities within a state as destination, and counties from where people are referred to those facilities as origin. I've used color for destination so all referrals to each destination from across the state are the same color--but I would really love to be able to select the facility and have the names of counties (origin of referral) show up at the end of each line. Is there a way to do that?

    • @vizwiz
      @vizwiz  Před 2 lety

      Does it work if you put that field on the tooltip shelf?

    • @josephshuffield6113
      @josephshuffield6113 Před 2 lety

      @@vizwiz Actually I found a way using a layer, and initially I wasn't pulling that info from the right source, but now it's working--thank you for a great tutorial!

  • @mickyandguitar
    @mickyandguitar Před 4 lety +1

    Amazing :)

  • @hishamd
    @hishamd Před 2 lety

    Hi Andy! Very helpful video. Do you know of an easy way to load longitude and latitude for multiple dimensions (e.g. Destination airport and Origin airport) within Tableau? Tableau auto generates longitude and latitude for just one dimension. For the life of me, I couldn't figure out a way to auto generate longitude and latitude for multiple dimensions.

    • @vizwiz
      @vizwiz  Před 2 lety

      Use the makepoint function if you already have the lat/lon.

  • @javierfernandez5468
    @javierfernandez5468 Před 3 lety

    Why do I get straight lines when showing the map of streets (in your case the bus-routes). I don't get the routes by roads. It's just straight lines. How can I change it?

    • @vizwiz
      @vizwiz  Před 3 lety

      Because you’re telling tableau to draw between two points. Tableau won’t follow roads. The map in the background is merely for reference.

  • @bunty2577
    @bunty2577 Před 3 lety

    Hi Andy, thanks for this tutorial. I have Origin Zip and Dest Zip however don't have origin lan/lat and dest lan/late like you. How do I get that?

    • @vizwiz
      @vizwiz  Před 3 lety

      Find it on Google.

  • @ChandraShekhar-ds8cp
    @ChandraShekhar-ds8cp Před 4 lety

    Nice Video.
    I have another dataset which consists of List of Airports. So, can you tell us how to extract latitude and longitude as another column, from List of Airports.

    • @vizwiz
      @vizwiz  Před 4 lety

      The location information has to be in the data source. Tableau can't give you the lat lon from a list of airports.

  • @namratanagvekar6857
    @namratanagvekar6857 Před rokem

    Why I m not able to create makepoint functions? Any idea.. i have origin and destination lat longs

    • @vizwiz
      @vizwiz  Před rokem

      Are you in a really old version of Tableau?

    • @namratanagvekar6857
      @namratanagvekar6857 Před rokem

      @@vizwiz no i have 2022 and 2021 in both it's not shwoing

  • @adamkapuscinski3187
    @adamkapuscinski3187 Před 4 lety

    I am probably overlooking something, but why does the makeline function follow the streets when you specified start and end points? Wouldn't it just draw a straight line?

    • @vizwiz
      @vizwiz  Před 4 lety

      They are straight lines. For the airports, it will follow the curve of the earth since it’s zoomed out far enough.

    • @adamkapuscinski3187
      @adamkapuscinski3187 Před 4 lety

      @@vizwiz ok, so if you overlaid the street network it wouldn't coalesce, but rather go straight from one bus stop to the next?

    • @vizwiz
      @vizwiz  Před 4 lety +1

      Correct

    • @adamkapuscinski3187
      @adamkapuscinski3187 Před 4 lety

      @@vizwiz interesting. Aside from displaying the map in the background have you tried bringing in the vector file for street networks? Like from Tiger files?

    • @vizwiz
      @vizwiz  Před 4 lety

      Adam Kapuscinski no. That’s overkill for what I was doing.

  • @Neutrino-xw6jl
    @Neutrino-xw6jl Před 5 lety

    Amazing

  • @ShubhamKumar-xb6ee
    @ShubhamKumar-xb6ee Před 3 lety

    Can u please provide me the link to download the Airline Routes dataset.

    • @vizwiz
      @vizwiz  Před 3 lety

      You can download the workbook and unzip it to get the data. Otherwise, a simple google search will find it.

  • @harikrishnaradadiya421

    Awesome explanation, but I can not find the work book. can you please guide me in downloading the data.
    Thanks,
    H@ri

    • @vizwiz
      @vizwiz  Před 5 lety

      Harikrishna Radadiya there is a link in the description.

    • @harikrishnaradadiya421
      @harikrishnaradadiya421 Před 5 lety

      @@vizwiz Thanks for getting back to me quickly. The link in description take me to the blog where I am able to download Tableau file but not the core data. I want data because I am highly interested in doing the analysis on my own.
      Thanks,
      H@ri

    • @vizwiz
      @vizwiz  Před 5 lety +1

      After you download the workbook, unzip it and you’ll see the twb and the data.

  • @champakalibhattacharjee9679

    how to convert coordinates to latitude and longitudes..

  • @Ozzyfrog78
    @Ozzyfrog78 Před 4 lety

    You do in 13mn what takes me 2h! So fast and my English is pretty ordinary so I have to watch this video in 0.5 playback - but then it sounds like drunken slur!

  • @Sbudarh_P
    @Sbudarh_P Před rokem

    Wow this is wonderful there more I dig your videos @andykriebel I always learn amazing stuff.🤝🏽

    • @vizwiz
      @vizwiz  Před rokem +1

      That’s great to hear thank you. Spread the word. 😊