#34 Calculate the distance between two points/locations/coordinates in Power BI

Поділитися
Вставка
  • Опубліковано 3 лис 2024

КОМЕНТАРІ • 81

  • @excelisfun
    @excelisfun 7 років тому +2

    Thank you for the Custom Function Distance calculations!

    • @CurbalEN
      @CurbalEN  7 років тому +2

      +ExcelIsFun They are neat right? :)
      /Ruth

  • @TheDistractionStudio
    @TheDistractionStudio 7 років тому +1

    Thank You Very Much for taking the time out of your busy schedule and making this awesome tutorial. Greatly appreciated.

    • @CurbalEN
      @CurbalEN  7 років тому +1

      +rajan77 The pleasure is all mine, happy to help. :)
      /Ruth

  • @dirksmeyers877
    @dirksmeyers877 6 років тому +1

    Hi Ruth, This topic is great! I used until now something similar through VBA, but this is more reliable when more data is to process.
    Like Ahmad Hatahet I had also at the start an error with Column 1. In my case it was because My account for using the API was not set correctly yet. Now the error is gone.
    Every video you convince me that thanks to Power Query/BI, VBA is becoming obsolete ;-)
    Once again, Thanks a lot for all your videos with so much enthousiasm! Dirk

    • @CurbalEN
      @CurbalEN  6 років тому

      Yes! I have to change the code so it gives the google api error and not the power Bi one, the issue is find time to do it ! But glad it worked and you are becoming a power query believer :)
      /Ruth

  • @MrNillock
    @MrNillock 7 років тому +1

    Awesome! I built a method years ago (still used by my business unit) which uses an array function and re-parameterized Pythagoras for spherical coordinates that will itterate over 10s of thousands of GPS (lat/long) reference points and return the closest point with straightline distances. :) happy to provide that if its of interest

    • @CurbalEN
      @CurbalEN  7 років тому

      +Collin Taylor That is amazing Collin! :)
      /Ruth

  • @georgekaroubas6136
    @georgekaroubas6136 7 років тому +1

    One more great video. Thank you Ruth!

    • @CurbalEN
      @CurbalEN  7 років тому

      +George Karoubas Thanks to you for watching it and take the time to let me know :)
      /Ruth

  • @storybi8575
    @storybi8575 4 роки тому

    Thanks Ruth! This came up as a question at work today, and I thought this sounded like a job for Power BI (Query) :) Thanks!

  • @vincentjaugey6921
    @vincentjaugey6921 2 роки тому

    Very nice video. Congratulations !

  • @varunchandra9828
    @varunchandra9828 9 місяців тому

    Yes Ruth that could really help

  • @MarkCBB86
    @MarkCBB86 7 років тому +1

    That is really cool - Yes please, a more detailed video would be great. Thank you

    • @CurbalEN
      @CurbalEN  7 років тому +1

      +Mark Blackburn I will, I did that a bit too quickly... I will fix that for next weeks video!
      /Ruth

  • @bryon5491
    @bryon5491 4 роки тому

    Awesome tutorial Ruth!!! One question I had was what if the use case for defining "to" and "from" are located in the same location variable? in your scenario each row has a two and from lat, long points. The scenario I am trying to solve for is where there is only one variable that has lat and long points and you need to use two variables to define what is "to" and what is "from" destination points. Example ( From destination =( (Location type = "public school A") & "location") To destination = ((Location type = "Subway B") & "location").
    Thought I see if you had a way to code. Again, Awesome tutorial!!!

    • @CurbalEN
      @CurbalEN  4 роки тому

      Not sure I follow, I am afraid...

  • @DataSpinners
    @DataSpinners 7 років тому +1

    Thanks Ruth - looks like you used a custom vis - which one was it?

    • @CurbalEN
      @CurbalEN  7 років тому

      +DataSpinners Hi! It is this one:
      Flow Map
      store.office.com/en-us/app.aspx?assetid=WA104380901&sourcecorrid=df5b5ee8-a8cc-4add-a24c-dab978c53752&searchapppos=19&ui=en-US&rs=en-US&ad=US&appredirect=false
      /Ruth

    • @DataSpinners
      @DataSpinners 7 років тому +1

      Fantastic many thanks

    • @CurbalEN
      @CurbalEN  7 років тому

      +DataSpinners You welcome! :) and have a nice weekend!
      /Ruth

  • @mrquizworthing6741
    @mrquizworthing6741 3 роки тому

    If I have a list of 60 different places in Power BI, would this be able to use this to create the distances to the other 59 places and then distances to all other places 60x59x58x57 etc?

  • @marcelammelo
    @marcelammelo 6 років тому +1

    Amazing!

    • @CurbalEN
      @CurbalEN  6 років тому

      Isnt it? :)
      /Ruth

  • @Fiktage
    @Fiktage 4 роки тому

    Many thanks for your video! Is it possible to compare two list (tables) with coordinates lat, long and to find minimum (or any other specific parameters like less 1 km etc) distance between? Thanks for feedback

  • @pooneh1894
    @pooneh1894 4 роки тому

    Thanks for the video. Can you also show how to display these routes on the map? right now they are just lines but how can I show the routes on map in power bi?

  • @thierrycolin695
    @thierrycolin695 7 років тому +1

    Hi Ruth, Thanks for all useful videos you do. As a beginner, i tried to download you pbix template clicking on your link. It did not work. I got "unable to down load file" message. Is there a specific trick to fix this? Regards

    • @CurbalEN
      @CurbalEN  7 років тому

      +Thierry Colin Hi Thierry! My server is down at the moment. Please send me an email here and I will email it to you : Curbal.com/Contact

  • @mercadomarcos
    @mercadomarcos 7 років тому +1

    hello! Thanks for these helpful videos. Is there a way to show the actual routes of multiple Origins & Destinations on a map (Google or other) instead of just getting the distance & time values between them? Thanks!

    • @CurbalEN
      @CurbalEN  7 років тому +1

      +Marcos Mercado Hi Marcos!! Have you tried this one?
      store.office.com/en-us/app.aspx?assetid=WA104380985&sourcecorrid=b88d2b2a-82f7-425c-87aa-bbd460aa43ae&searchapppos=24&ui=en-US&rs=en-US&ad=US&appredirect=false
      I haven't tried it myself but it seems it should do what you are asking for.
      Let me know if it works !
      /Ruth

    • @mercadomarcos
      @mercadomarcos 7 років тому +1

      I believe we have and didn't work as expected, but we'll give it another try. Saludos y gracias!

    • @CurbalEN
      @CurbalEN  7 років тому +1

      +Marcos Mercado Perfect, after my vacation I will do a video on it to see what it does :)
      /Ruth

  • @vikasdad6936
    @vikasdad6936 3 роки тому

    Hi , Can we do the same in Power Query . Can you elaborate how the Distance function was created. I have the Lat & Long for all sites & i need to compute the distance amongst them

  • @PLBL
    @PLBL 4 роки тому

    Hey! Is this a function we can create ourselves? Or do we need to purchase it?

    • @CurbalEN
      @CurbalEN  4 роки тому

      You can create it yourself:)

  • @balaji_906
    @balaji_906 3 роки тому

    I am looking for videos on DAX to calculate distance between two points using lat and long. Any help is appreciated!

  • @CloudhoundCoUk
    @CloudhoundCoUk 7 років тому +1

    Fantastic

    • @CurbalEN
      @CurbalEN  7 років тому

      +Cloud Hound Thanks!
      /Ruth

  • @aaronsaunders4269
    @aaronsaunders4269 3 роки тому

    Hi Curbal, thanks so much for this solution! It's really awesome! Is there a way we can edit the function within Power Query to return the distance in metres, as opposed to text? e.g. "1000" instead of "1 km"

    • @CurbalEN
      @CurbalEN  3 роки тому +1

      Hi Aaron,
      Text.AfterDelimiter([distance], " ") should do it!

  • @rrrprogram8667
    @rrrprogram8667 7 років тому +1

    Good one .... So, you have chosen Mumbai and Bangalore... :D... have u ever been to India ?

    • @CurbalEN
      @CurbalEN  7 років тому

      +RRR program Hi!
      I have dear friends in India, but unfortunately I haven't been able to visit them there yet. I am planing a trip for next year to Gujarat where they live. I am really looking forward to it :)
      I guess my subconscious betrayed me when I chose the cities for the video!!
      Where in India do you come from?
      /Ruth

    • @rrrprogram8667
      @rrrprogram8667 7 років тому +1

      Its Hyderabadddd.... land of Biryani :D..
      Advance welcome to India.... Do visit in winter .. probably anywhere between Nov to Feb..... Else there would be soaring heat.. Don't miss Rajasthan...

    • @CurbalEN
      @CurbalEN  7 років тому

      +RRR program Yes, they told me that too 😂! November is a perfect time to go as it is so dark and cold in Sweden and if I am lucky I might be able to attend a wedding, perfect opportunity to embrace Indian culture!
      Have to check where you live :)
      /Ruth

    • @rrrprogram8667
      @rrrprogram8667 7 років тому +1

      Great......Have real fun :)....

    • @CurbalEN
      @CurbalEN  7 років тому

      +RRR program Yeah!! 😊
      /Ruth

  • @PLBL
    @PLBL 4 роки тому

    As soon as I use the API call in my code, it works perfectly in the editor, but as soon as I publish, I am unable to schedule a refresh. I each time need to refresh on my local and republish. Does anyone know why this is?

  • @thiagoriosbarros2287
    @thiagoriosbarros2287 5 років тому

    Thank you, Ruth! Can you help me with the access to Download Center? I'm trying do get the PBIX file here but apparently the Download Center isnt available.

    • @CurbalEN
      @CurbalEN  5 років тому +1

      Hi Thiago, i just checked and it is live. Can you check with another Wi-Fi or private computer? Cloud services are often blocked by companies.
      Let me know!
      -Ruth

    • @thiagoriosbarros2287
      @thiagoriosbarros2287 5 років тому

      @@CurbalEN You're right! It works. Thank you again, Ruth.

  • @AlessandroSilva-dl3vq
    @AlessandroSilva-dl3vq 4 роки тому

    Seria possível colocar o ponto inicial e o final em um tipo de filtro direto no painel e assim apresentar a rota no mapa?
    Obrigado pelas dicas aprendendo muito

  • @achielv5337
    @achielv5337 5 років тому

    Looks really good ! thanks for this. How can I access the .pbit file? the link in the description gives an error. Many thanks again for sharing this video !

  • @kabelomzwinila6844
    @kabelomzwinila6844 6 років тому +1

    Great video! Thank you Ruth, this is very helpful. However, i'm also unable to download the .pbit file :(

    • @CurbalEN
      @CurbalEN  6 років тому

      Check this out:
      m.ua-cam.com/video/NzmZcuyjWB4/v-deo.html
      /Ruth

  • @avulasandeep
    @avulasandeep 6 років тому +1

    how to create lat and long function ....can you please explain detailed????

    • @CurbalEN
      @CurbalEN  6 років тому

      Hi Sandeep, what do you mean exactly?
      /Ruth

    • @avulasandeep
      @avulasandeep 6 років тому +1

      i have some data related to long and lat for finding the distance and i had created parameters like above video but i am unable to create function as above it showing the all the table when i use invoke function....can you please help me ....i will send the excel sheet with lat and long need to find the distance

    • @CurbalEN
      @CurbalEN  6 років тому

      Hi Sandeep, I am not able to provide individual support, I get too many questions. Could you please post this in the Power BI community?
      Thanks!
      /Ruth

  • @dagaal92
    @dagaal92 7 років тому +1

    Hi,
    The Link to pbix template it's broken. :(
    I would be very grateful.

    • @CurbalEN
      @CurbalEN  7 років тому

      Hi Daniel,
      Here is the new link:
      gofile.me/2kEOD/BGLRw3qdv
      /Ruth

    • @dagaal92
      @dagaal92 7 років тому +1

      ¡ Thanks so much !

    • @CurbalEN
      @CurbalEN  7 років тому

      +Daniel Garcia Alvarez De nada ;)
      /Ruth

  • @MichaelSherif-z5z
    @MichaelSherif-z5z Рік тому

    How to add more modes for example vessels ?

  • @IgorGeorgeAbdo
    @IgorGeorgeAbdo 5 років тому

    Hi Ruth!!! I am not able to download the .pbit file
    thanskss

    • @CurbalEN
      @CurbalEN  5 років тому +1

      Hi Igor, all download files have moved to the download center at Curbal.com

    • @IgorGeorgeAbdo
      @IgorGeorgeAbdo 5 років тому

      @@CurbalEN Thankssss Ruth!!!! It's amazing!!

    • @CurbalEN
      @CurbalEN  5 років тому

      Yey!! Glad you found it and it was useful :)))
      /Ruth

  • @richardlee7311
    @richardlee7311 5 років тому

    The file doesn't seem to work anymore it is putting an error of can not find column 1 all the time

    • @CurbalEN
      @CurbalEN  5 років тому

      That means that something is wrong with your api key. Check that is valid.
      /Ruth

    • @richardlee7311
      @richardlee7311 5 років тому

      I've only just got the api key tried it a few times same result @@CurbalEN

    • @CurbalEN
      @CurbalEN  5 років тому

      It could be something wrong in the URL that is sent to google API. You need to check everything very careful, I got that error all the time in the beginning.
      For more personalized help, please contact the Power bi community and follow this steps:
      m.ua-cam.com/video/oXFOebuvRz0/v-deo.html
      /Ruth

    • @richardlee7311
      @richardlee7311 5 років тому

      followed each step several times. Same result, most of the google screens are now updated but I would assume the result would be the same. I will try something else.@@CurbalEN

    • @CurbalEN
      @CurbalEN  5 років тому

      Hi Richard,
      I checked to make sure the code is still ok and it works with my API key.
      I modified the function a bit so you can get the error message from google API and hopefully that will help you troubleshoot.
      Download the file again #34.
      /Ruth

  • @vicnatal
    @vicnatal 5 років тому

    Hi there! Can you upload the .pbit file again? I cannot download it

    • @CurbalEN
      @CurbalEN  5 років тому

      Hi, all download files have been moved to the download center at Curbal.com
      /Ruth

  • @ZombieBrainz
    @ZombieBrainz 7 років тому +2

    Hide your key @ 4:14 ;-)

    • @CurbalEN
      @CurbalEN  7 років тому

      +Zombie Brainz Oh dear, thanks! Better to reset it instead! Done ✅!
      /Ruth

  • @jamesdoku7807
    @jamesdoku7807 5 років тому

    Hello l cant download the file please help

    • @CurbalEN
      @CurbalEN  5 років тому

      You will find it in the download center at Curbal.com
      /Ruth