<?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 Nearest distance calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Nearest-distance-calculation/m-p/64883#M10782</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the X and Y coordinate in the Pos.txt file with a PosID field and &lt;/P&gt;&lt;P&gt;X and Y coordinate in the Dod.txt file with an ID field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My goal is to consolidate this two-tables into one table based on the X and Y coordinate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, what ‘PosID’ falls under what ‘ID’ based on the nearest X &amp;amp; Y coordinates of the PosID to the X &amp;amp; Y coordinates of the ‘ID’ field? is the condition to achieve this goal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any Help is highly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 May 2018 01:29:17 GMT</pubDate>
    <dc:creator>AH</dc:creator>
    <dc:date>2018-05-08T01:29:17Z</dc:date>
    <item>
      <title>Nearest distance calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Nearest-distance-calculation/m-p/64883#M10782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the X and Y coordinate in the Pos.txt file with a PosID field and &lt;/P&gt;&lt;P&gt;X and Y coordinate in the Dod.txt file with an ID field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My goal is to consolidate this two-tables into one table based on the X and Y coordinate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, what ‘PosID’ falls under what ‘ID’ based on the nearest X &amp;amp; Y coordinates of the PosID to the X &amp;amp; Y coordinates of the ‘ID’ field? is the condition to achieve this goal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any Help is highly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2018 01:29:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nearest-distance-calculation/m-p/64883#M10782</guid>
      <dc:creator>AH</dc:creator>
      <dc:date>2018-05-08T01:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: Nearest distance calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Nearest-distance-calculation/m-p/64884#M10783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shan&lt;/P&gt;&lt;P&gt;I found a few posts about similar calculations and I've applied them to an app that demonstrates what I hope you're after.&lt;/P&gt;&lt;P&gt;The crucial part of the calculation is the Distance Calculation which is done using a Macro. &lt;/P&gt;&lt;P&gt;If found reference to that here &lt;A href="https://community.qlik.com/thread/31990"&gt;distance between two coordinates&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Your requirement is a bit different to that example as you want to group certain locations under others based on distance. My app shows how to do that. It ended up being simpler than I thought.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="DistanceFromID.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/201785_DistanceFromID.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2018 08:18:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nearest-distance-calculation/m-p/64884#M10783</guid>
      <dc:creator>duncanblaine</dc:creator>
      <dc:date>2018-05-08T08:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: Nearest distance calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Nearest-distance-calculation/m-p/64885#M10784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Duncan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much for the solution! It works great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2018 00:21:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nearest-distance-calculation/m-p/64885#M10784</guid>
      <dc:creator>AH</dc:creator>
      <dc:date>2018-05-10T00:21:25Z</dc:date>
    </item>
  </channel>
</rss>

