<?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: filtering on highest x for each y in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/filtering-on-highest-x-for-each-y/m-p/333876#M703558</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is my way, but I wonder if there are better ways:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t2:&lt;/P&gt;&lt;P&gt;LOAD person,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; max(rowid) As max_rowid&lt;/P&gt;&lt;P&gt;Resident t1&lt;/P&gt;&lt;P&gt;Group By person;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left Join (t2)&lt;/P&gt;&lt;P&gt;LOAD person,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; rowid As max_rowid,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; phone_no&lt;/P&gt;&lt;P&gt;Resident t1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Field max_rowid;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Aug 2012 11:59:03 GMT</pubDate>
    <dc:creator>gandalfgray</dc:creator>
    <dc:date>2012-08-02T11:59:03Z</dc:date>
    <item>
      <title>filtering on highest x for each y</title>
      <link>https://community.qlik.com/t5/QlikView/filtering-on-highest-x-for-each-y/m-p/333875#M703557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example data is like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t1:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; person, rowid, phone_no&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Joe, 1, 1234567&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Joe, 2, 7880833&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Jack, 3, 8797400&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Jack, 4, 5866969&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What's the smartest way to create a new table t2 from t1 with only person and one phone_no per person, where the phone_no used is &lt;STRONG&gt;the one with highest rowid for each person&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resulting table:&lt;/P&gt;&lt;P&gt;t2:&lt;/P&gt;&lt;P&gt;person, phone_no&lt;/P&gt;&lt;P&gt;Joe, 7880833&lt;/P&gt;&lt;P&gt;Jack, 5866969&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2012 11:46:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/filtering-on-highest-x-for-each-y/m-p/333875#M703557</guid>
      <dc:creator>gandalfgray</dc:creator>
      <dc:date>2012-08-02T11:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: filtering on highest x for each y</title>
      <link>https://community.qlik.com/t5/QlikView/filtering-on-highest-x-for-each-y/m-p/333876#M703558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is my way, but I wonder if there are better ways:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t2:&lt;/P&gt;&lt;P&gt;LOAD person,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; max(rowid) As max_rowid&lt;/P&gt;&lt;P&gt;Resident t1&lt;/P&gt;&lt;P&gt;Group By person;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left Join (t2)&lt;/P&gt;&lt;P&gt;LOAD person,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; rowid As max_rowid,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; phone_no&lt;/P&gt;&lt;P&gt;Resident t1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Field max_rowid;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2012 11:59:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/filtering-on-highest-x-for-each-y/m-p/333876#M703558</guid>
      <dc:creator>gandalfgray</dc:creator>
      <dc:date>2012-08-02T11:59:03Z</dc:date>
    </item>
  </channel>
</rss>

