<?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: Closest Number in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Closest-Number/m-p/1237510#M874154</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;apologies Sunny there lies the problem. although the Address allows for a link between the two tables there is no values that are the same. I've played around with some cartesian tables to no avail. &lt;/P&gt;&lt;P&gt;im going to try and sort this with an expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am going to close this thread. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Nov 2016 16:21:45 GMT</pubDate>
    <dc:creator>samuel_brierley</dc:creator>
    <dc:date>2016-11-11T16:21:45Z</dc:date>
    <item>
      <title>Closest Number</title>
      <link>https://community.qlik.com/t5/QlikView/Closest-Number/m-p/1237508#M874152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;just wondering what the most efficient method of finding the closest number between two dimensions is?&lt;/P&gt;&lt;P&gt;i have two tables;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 1&lt;/P&gt;&lt;P&gt;[Address]&lt;/P&gt;&lt;P&gt;A_car&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 2&lt;/P&gt;&lt;P&gt;[Address]&lt;/P&gt;&lt;P&gt;K_car&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;both A_car and K_car are integers and i want to know what the closest K_car is to each A_car.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Closest-Number/m-p/1237508#M874152</guid>
      <dc:creator>samuel_brierley</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Closest Number</title>
      <link>https://community.qlik.com/t5/QlikView/Closest-Number/m-p/1237509#M874153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess one way would be to join the two tables and then find the absolute difference between A_car and K_car and keep the one which is the smallest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TempTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Address,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A_car&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Join(NewTable)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Address,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; K_car&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table2;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FinalTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Address,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A_car,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; K_car,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fabs(A_car - K_car) as Diff&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident TempTable;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Right Join (FinalTable)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Address,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Min(Diff) as Diff&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident FinalTable&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Group By Address;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP Table TempTable;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2016 14:29:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Closest-Number/m-p/1237509#M874153</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-11-11T14:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: Closest Number</title>
      <link>https://community.qlik.com/t5/QlikView/Closest-Number/m-p/1237510#M874154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;apologies Sunny there lies the problem. although the Address allows for a link between the two tables there is no values that are the same. I've played around with some cartesian tables to no avail. &lt;/P&gt;&lt;P&gt;im going to try and sort this with an expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am going to close this thread. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2016 16:21:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Closest-Number/m-p/1237510#M874154</guid>
      <dc:creator>samuel_brierley</dc:creator>
      <dc:date>2016-11-11T16:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: Closest Number</title>
      <link>https://community.qlik.com/t5/QlikView/Closest-Number/m-p/1237511#M874155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps do loads on table 1 sorted in one order then the other to get the halfway point between each A_car as a min and max on each record, then intervalmatch with the K_cars.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2016 20:55:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Closest-Number/m-p/1237511#M874155</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2016-11-11T20:55:00Z</dc:date>
    </item>
  </channel>
</rss>

