<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Calculating distance between branches in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-distance-between-branches/m-p/3192720#M115828</link>
    <description>&lt;P&gt;Hi all!&lt;/P&gt;&lt;P&gt;I need your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;with three columns:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Branch_ID, Lat, Long&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and I want, when I select a branch (from the left table), to calculate the distance between this branch and all the other (in the right table).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help me please!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Tue, 18 Apr 2023 05:37:51 GMT</pubDate>
    <dc:creator>stathar0s</dc:creator>
    <dc:date>2023-04-18T05:37:51Z</dc:date>
    <item>
      <title>Calculating distance between branches</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-distance-between-branches/m-p/3192720#M115828</link>
      <description>&lt;P&gt;Hi all!&lt;/P&gt;&lt;P&gt;I need your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;with three columns:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Branch_ID, Lat, Long&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and I want, when I select a branch (from the left table), to calculate the distance between this branch and all the other (in the right table).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help me please!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 05:37:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-distance-between-branches/m-p/3192720#M115828</guid>
      <dc:creator>stathar0s</dc:creator>
      <dc:date>2023-04-18T05:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating distance between branches</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-distance-between-branches/m-p/3192768#M115834</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="545229" data-lia-user-login="stathar0s" class="lia-mention lia-mention-user"&gt;stathar0s&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;some of sites like below do this for you :&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nhc.noaa.gov/gccalc.shtml" target="_blank" rel="noopener"&gt;https://www.nhc.noaa.gov/gccalc.shtml&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But for the formula You need Latitude and Longitude to calculate the distance between two locations with following formula:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=acos(sin(lat1)*sin(lat2)+cos(lat1)*cos(lat2)*cos(lon2-lon1))*6371&amp;nbsp;&lt;/EM&gt;(6371 is Earth radius in km.)&lt;/P&gt;&lt;P&gt;this is useful too:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://dataveld.com/2019/03/20/display-points-within-a-distance-radius-on-a-power-bi-map/" target="_blank" rel="noopener"&gt;https://dataveld.com/2019/03/20/display-points-within-a-distance-radius-on-a-power-bi-map/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 06:14:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-distance-between-branches/m-p/3192768#M115834</guid>
      <dc:creator>ShirinArshadnia</dc:creator>
      <dc:date>2023-04-18T06:14:32Z</dc:date>
    </item>
  </channel>
</rss>

