Тёмный

How to create routes with the MAKEPOINT and MAKELINE functions 

Andy Kriebel
Подписаться 65 тыс.
Просмотров 30 тыс.
50% 1

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...

Наука

Опубликовано:

 

17 июн 2019

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 76   
@aniiketpatiil7685
@aniiketpatiil7685 5 лет назад
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.
@jizhang2407
@jizhang2407 5 лет назад
thanks for sharing, Andy. I never knew there are the makepoint and makeline functions... until today
@vizwiz
@vizwiz 5 лет назад
Ji Zhang they are a new feature in 2019.2
@sunithaambala3396
@sunithaambala3396 5 лет назад
Thank you Andy .. I keep learning from your videos
@rajeshtukdeo
@rajeshtukdeo 4 года назад
Thanks Andy for this wonderful video !!
@sergioloyola4261
@sergioloyola4261 3 года назад
You are a life saver! - Thank you!!!
@aashishkshah
@aashishkshah 5 лет назад
I keep learning from you .. Thanks Andy and team!
@chandrabhanu4478
@chandrabhanu4478 5 лет назад
Got to learn something new today... Thanks Andy
@funguy29
@funguy29 3 года назад
super solid sir. thanks
@sj8648
@sj8648 2 года назад
Thank you Andy!!!
@Data.Monster
@Data.Monster 5 лет назад
Awesome Andy, great tutorial !!!
@25070410
@25070410 5 месяцев назад
Thanks for this video. I have question, how to show top 10 busiest air routes from the dataset that you have.
@vizwiz
@vizwiz 4 месяца назад
This data set doesn’t have passenger information.
@magagsi
@magagsi 5 лет назад
Super duper!!! Thank you Andy!
@romanvasiura6705
@romanvasiura6705 11 месяцев назад
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 11 месяцев назад
Download the workbook.
@rohitshyam9833
@rohitshyam9833 2 года назад
You are a saviour. Can i use same technique for shipping data.
@vizwiz
@vizwiz 2 года назад
As long as your data is structured the same way.
@JurijFedorov
@JurijFedorov 5 лет назад
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.
@datapeek
@datapeek 2 года назад
It was really helpful. Thanks
@vizwiz
@vizwiz 2 года назад
You're welcome!
@vizlab_kr
@vizlab_kr 5 лет назад
Great resource! Thanks!
@MrMaiqbal
@MrMaiqbal 4 года назад
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
@vizwiz
@vizwiz 4 года назад
Yes
@harishmahamure7574
@harishmahamure7574 3 года назад
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 3 года назад
That’s totally up to you.
@srinivasaai
@srinivasaai Год назад
Great video ✈️, how to plot flight path connecting series of lat long on map.
@vizwiz
@vizwiz Год назад
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
@zii8181
@zii8181 Год назад
How about for zip code that starts with zero, distance formula won't show the difference. Any thoughts??
@vizwiz
@vizwiz Год назад
The data needs the be lat/lon but zip code
@adnansaqib9468
@adnansaqib9468 2 года назад
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 2 года назад
You would need to find the data. As for distance, there’s a DISTANCE function you can use.
@rizwanalvi786
@rizwanalvi786 2 года назад
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 2 года назад
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.
@acmerritt
@acmerritt 5 лет назад
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 5 лет назад
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 5 лет назад
@@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.
@javierfernandez5468
@javierfernandez5468 3 года назад
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 3 года назад
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 3 года назад
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 3 года назад
Find it on Google.
@josephshuffield6113
@josephshuffield6113 2 года назад
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 2 года назад
Does it work if you put that field on the tooltip shelf?
@josephshuffield6113
@josephshuffield6113 2 года назад
@@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!
@hishamd
@hishamd 2 года назад
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 2 года назад
Use the makepoint function if you already have the lat/lon.
@namratanagvekar6857
@namratanagvekar6857 Год назад
Why I m not able to create makepoint functions? Any idea.. i have origin and destination lat longs
@vizwiz
@vizwiz Год назад
Are you in a really old version of Tableau?
@namratanagvekar6857
@namratanagvekar6857 Год назад
@@vizwiz no i have 2022 and 2021 in both it's not shwoing
@ChandraShekhar-ds8cp
@ChandraShekhar-ds8cp 4 года назад
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 4 года назад
The location information has to be in the data source. Tableau can't give you the lat lon from a list of airports.
@drparthagopal5023
@drparthagopal5023 2 года назад
Superb..
@ShubhamKumar-xb6ee
@ShubhamKumar-xb6ee 3 года назад
Can u please provide me the link to download the Airline Routes dataset.
@vizwiz
@vizwiz 3 года назад
You can download the workbook and unzip it to get the data. Otherwise, a simple google search will find it.
@adamkapuscinski3187
@adamkapuscinski3187 4 года назад
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 4 года назад
They are straight lines. For the airports, it will follow the curve of the earth since it’s zoomed out far enough.
@adamkapuscinski3187
@adamkapuscinski3187 4 года назад
@@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 4 года назад
Correct
@adamkapuscinski3187
@adamkapuscinski3187 4 года назад
@@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 4 года назад
Adam Kapuscinski no. That’s overkill for what I was doing.
@mickyandguitar
@mickyandguitar 4 года назад
Amazing :)
@harikrishnaradadiya421
@harikrishnaradadiya421 4 года назад
Awesome explanation, but I can not find the work book. can you please guide me in downloading the data. Thanks, H@ri
@vizwiz
@vizwiz 4 года назад
Harikrishna Radadiya there is a link in the description.
@harikrishnaradadiya421
@harikrishnaradadiya421 4 года назад
@@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 4 года назад
After you download the workbook, unzip it and you’ll see the twb and the data.
@Neutrino-xw6jl
@Neutrino-xw6jl 5 лет назад
Amazing
@champakalibhattacharjee9679
@champakalibhattacharjee9679 3 года назад
how to convert coordinates to latitude and longitudes..
@vizwiz
@vizwiz 3 года назад
I don’t understand your question.
@champakalibhattacharjee9679
@champakalibhattacharjee9679 3 года назад
@@vizwiz Geometric Coordinates i mean
@vizwiz
@vizwiz 3 года назад
Isn’t it already in lat/lon?
@champakalibhattacharjee9679
@champakalibhattacharjee9679 3 года назад
@@vizwiz No ..
@champakalibhattacharjee9679
@champakalibhattacharjee9679 3 года назад
@@vizwiz No
@Ozzyfrog78
@Ozzyfrog78 4 года назад
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!
@vizwiz
@vizwiz 4 года назад
hahaha!
@Sbudarh_P
@Sbudarh_P Год назад
Wow this is wonderful there more I dig your videos @andykriebel I always learn amazing stuff.🤝🏽
@vizwiz
@vizwiz Год назад
That’s great to hear thank you. Spread the word. 😊
Далее
Mastering 4-Level Map Drill Downs in Tableau
14:30
Просмотров 12 тыс.
女孩妒忌小丑女? #小丑#shorts
00:34
Просмотров 27 млн
Tableau Calculations : Distance Between 2 Points
4:59
TABLEAU DESTINATION MAPS
15:47
Просмотров 113 тыс.
How to Add Info Buttons to Dashboards in Tableau
8:54