<?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 the distance between elements + Counting the # of elements within a specific range in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculating-the-distance-between-elements-Counting-the-of/m-p/964005#M647127</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, how are you? &lt;/P&gt;&lt;P&gt;I have a list of shops with their corresponding latitude and longitude values (in a decimal format) and I'd like to calculate the amount of shops in the same city located within 1 kilometer for each one of them. I've managed to do this in Excel in a very homemade and manual way but I need to automate it to be able to work with bigger data.&lt;/P&gt;&lt;P&gt;The list contains the following fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shop name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Shop ID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LATITUDE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LONGITUDE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, I'd like to know for every shop what the 'shop density' around it is. &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Distances between the elements aren't too big, so the Pythagorean distance formula will do.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any kind of help is appreciated.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Nov 2015 15:42:50 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-11-09T15:42:50Z</dc:date>
    <item>
      <title>Calculating the distance between elements + Counting the # of elements within a specific range</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-the-distance-between-elements-Counting-the-of/m-p/964005#M647127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, how are you? &lt;/P&gt;&lt;P&gt;I have a list of shops with their corresponding latitude and longitude values (in a decimal format) and I'd like to calculate the amount of shops in the same city located within 1 kilometer for each one of them. I've managed to do this in Excel in a very homemade and manual way but I need to automate it to be able to work with bigger data.&lt;/P&gt;&lt;P&gt;The list contains the following fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shop name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Shop ID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LATITUDE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LONGITUDE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, I'd like to know for every shop what the 'shop density' around it is. &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Distances between the elements aren't too big, so the Pythagorean distance formula will do.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any kind of help is appreciated.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2015 15:42:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-the-distance-between-elements-Counting-the-of/m-p/964005#M647127</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-09T15:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating the distance between elements + Counting the # of elements within a specific range</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-the-distance-between-elements-Counting-the-of/m-p/964006#M647128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See this post: &lt;A href="https://community.qlik.com/message/137084"&gt;Re: distance between two coordinates&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Or maybe this one: &lt;A href="https://community.qlik.com/message/105094"&gt;WGS84 Compliant Great Circle Distance Calculation&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2015 09:45:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-the-distance-between-elements-Counting-the-of/m-p/964006#M647128</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-11-10T09:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating the distance between elements + Counting the # of elements within a specific range</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-the-distance-between-elements-Counting-the-of/m-p/964007#M647129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much. I modified the first one and it worked just fine. I created the following expression which displayed the "shop density" for each shop:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(if(Distance&amp;lt;[insert distance in kilometers],1,0))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2015 19:52:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-the-distance-between-elements-Counting-the-of/m-p/964007#M647129</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-12T19:52:14Z</dc:date>
    </item>
  </channel>
</rss>

