<?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 Re: Recordset selection based on the Radius determination in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Recordset-selection-based-on-the-Radius-determination/m-p/1038009#M349700</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Leon,&lt;/P&gt;&lt;P&gt;what is the problem with this calculation? Do you need any help?&lt;/P&gt;&lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 May 2016 17:55:33 GMT</pubDate>
    <dc:creator>rbecher</dc:creator>
    <dc:date>2016-05-13T17:55:33Z</dc:date>
    <item>
      <title>Recordset selection based on the Radius determination</title>
      <link>https://community.qlik.com/t5/QlikView/Recordset-selection-based-on-the-Radius-determination/m-p/1038004#M349695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial',sans-serif; color: #002060;"&gt;Greeting All,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial',sans-serif; color: #002060;"&gt;I am looking for solution for the following requirements (Oracle Database).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial',sans-serif; color: #002060;"&gt;The data includes Origination (let’s say Los Angeles) and Destination (let’s say New York) points within US as a fields. The requirement is to query the dataset based on these 2 points and not only the cities specified, but all records within all cities which would come up into the area within certain radius selected by user (let’s say 50, 100 and 200 mi) from the main cities. As an example, user is selecting LA and NY as a filter criteria and specifying the radius 50mi. The output of the query should return all records satisfying the main conditions plus all records for all cities surrounding LA and NY within 50 mi radius (let’s say Beverly Hills, Pasadena, etc. for origination and Manhattan, Brooklyn, etc. for destination). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial',sans-serif; color: #002060;"&gt;It is worth noting that providing this functionality is critical for the whole QlikView project.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial',sans-serif; color: #002060;"&gt;Would be great to have any advice on possible solution.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial',sans-serif; color: #002060;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial',sans-serif; color: #002060;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Leon&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 23:00:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Recordset-selection-based-on-the-Radius-determination/m-p/1038004#M349695</guid>
      <dc:creator />
      <dc:date>2016-04-14T23:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: Recordset selection based on the Radius determination</title>
      <link>https://community.qlik.com/t5/QlikView/Recordset-selection-based-on-the-Radius-determination/m-p/1038005#M349696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Leon,&lt;/P&gt;&lt;P&gt;have a look at&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/284004"&gt;Re: How do I use latitude and longitude values to find near by records&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2016 16:32:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Recordset-selection-based-on-the-Radius-determination/m-p/1038005#M349696</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-15T16:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: Recordset selection based on the Radius determination</title>
      <link>https://community.qlik.com/t5/QlikView/Recordset-selection-based-on-the-Radius-determination/m-p/1038006#M349697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Leon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you have the geo position (lat/lon) you can calculate the Haversine formula:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://gist.github.com/ralfbecher/a4c22c35ee2f3ab43d6f" title="https://gist.github.com/ralfbecher/a4c22c35ee2f3ab43d6f"&gt;https://gist.github.com/ralfbecher/a4c22c35ee2f3ab43d6f&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14607381658412766 jive_text_macro" jivemacro_uid="_14607381658412766"&gt;
&lt;P&gt;// calculation of distance of two geo references (lat/lon):&lt;/P&gt;
&lt;P&gt;= 12742 * atan2(sqrt(sqr(sin(((lat2-lat1)*PI()/180)/2)) &lt;/P&gt;
&lt;P&gt;+ (cos(lat1*PI()/180) * cos(lat2*PI()/180)) &lt;/P&gt;
&lt;P&gt;* pow(sin(((lon2-lon1)*PI()/180)/2),2)),&lt;/P&gt;
&lt;P&gt;sqrt(1 - (sqr(sin(((lat2-lat1)*PI()/180)/2)) &lt;/P&gt;
&lt;P&gt;+ (cos(lat1*PI()/180) * cos(lat2*PI()/180)) &lt;/P&gt;
&lt;P&gt;* pow(sin(((lon2-lon1)*PI()/180)/2),2))))&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://en.wikipedia.org/wiki/Haversine_formula" title="https://en.wikipedia.org/wiki/Haversine_formula"&gt;Haversine formula - Wikipedia, the free encyclopedia&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2016 16:37:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Recordset-selection-based-on-the-Radius-determination/m-p/1038006#M349697</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2016-04-15T16:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: Recordset selection based on the Radius determination</title>
      <link>https://community.qlik.com/t5/QlikView/Recordset-selection-based-on-the-Radius-determination/m-p/1038007#M349698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial',sans-serif; color: #002060;"&gt;Thank you guys for your prompt respond – I was under impression that it is a dead end.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial',sans-serif; color: #002060;"&gt;I’ll go through your recommendations and let you know.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial',sans-serif; color: #002060;"&gt;Thanks again,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial',sans-serif; color: #002060;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Leon&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2016 17:01:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Recordset-selection-based-on-the-Radius-determination/m-p/1038007#M349698</guid>
      <dc:creator />
      <dc:date>2016-04-15T17:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: Recordset selection based on the Radius determination</title>
      <link>https://community.qlik.com/t5/QlikView/Recordset-selection-based-on-the-Radius-determination/m-p/1038008#M349699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ralf,&lt;/P&gt;&lt;P&gt;Just letting you know that even with your recommendations, my experienced developer is still working on this function (almost for a month!). I think would be really beneficial for QlikView if Product Development team would get involved into that since this functionality is a showstopper for our QV project and could be extremely important for other customers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Leon&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW&lt;/P&gt;&lt;P&gt;It was nice meeting you at Qonnection. Would be great if this message would be passed to Aran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 16:44:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Recordset-selection-based-on-the-Radius-determination/m-p/1038008#M349699</guid>
      <dc:creator />
      <dc:date>2016-05-13T16:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: Recordset selection based on the Radius determination</title>
      <link>https://community.qlik.com/t5/QlikView/Recordset-selection-based-on-the-Radius-determination/m-p/1038009#M349700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Leon,&lt;/P&gt;&lt;P&gt;what is the problem with this calculation? Do you need any help?&lt;/P&gt;&lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 17:55:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Recordset-selection-based-on-the-Radius-determination/m-p/1038009#M349700</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2016-05-13T17:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: Recordset selection based on the Radius determination</title>
      <link>https://community.qlik.com/t5/QlikView/Recordset-selection-based-on-the-Radius-determination/m-p/1038010#M349701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ralf,&lt;/P&gt;&lt;P&gt;Yes, I do. Would be great if we can discuss this off-line.&lt;/P&gt;&lt;P&gt;I guess you have my contact info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Leon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 18:23:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Recordset-selection-based-on-the-Radius-determination/m-p/1038010#M349701</guid>
      <dc:creator />
      <dc:date>2016-05-13T18:23:05Z</dc:date>
    </item>
  </channel>
</rss>

