<?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: Select rows with min in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Select-rows-with-min/m-p/1375004#M813333</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;From Table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where Diff_Date &amp;lt;= 1;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Sep 2017 14:30:29 GMT</pubDate>
    <dc:creator>antoniotiman</dc:creator>
    <dc:date>2017-09-19T14:30:29Z</dc:date>
    <item>
      <title>Select rows with min</title>
      <link>https://community.qlik.com/t5/QlikView/Select-rows-with-min/m-p/1375002#M813331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need help with aggregating my table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Table_origin.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/177073_Table_origin.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From this table I need only the yellow lines with a minimum in "Diff_Date" in each product-Group. And if there are two min, like product A1, I need both lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="table_result.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/177074_table_result.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i manage this in my script?&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/Select-rows-with-min/m-p/1375002#M813331</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Select rows with min</title>
      <link>https://community.qlik.com/t5/QlikView/Select-rows-with-min/m-p/1375003#M813332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Diff_Date,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Date-1],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Date-2],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Key_Product&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM ....;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Right Join (Table)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Key_Product,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Min(Diff_Date) as Diff_Date&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #ff0000;"&gt;Group By Key_Product&lt;/SPAN&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Updated my response based on &lt;A href="https://community.qlik.com/people/fvelascog72"&gt;fvelascog72&lt;/A&gt; comment who pointed out that i missed Group By statement &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2017 14:26:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-rows-with-min/m-p/1375003#M813332</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-09-19T14:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: Select rows with min</title>
      <link>https://community.qlik.com/t5/QlikView/Select-rows-with-min/m-p/1375004#M813333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;From Table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where Diff_Date &amp;lt;= 1;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2017 14:30:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-rows-with-min/m-p/1375004#M813333</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2017-09-19T14:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: Select rows with min</title>
      <link>https://community.qlik.com/t5/QlikView/Select-rows-with-min/m-p/1375005#M813334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, but the smalles number could be any number. Only in the example it is 0 and 1. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2017 06:07:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-rows-with-min/m-p/1375005#M813334</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-20T06:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: Select rows with min</title>
      <link>https://community.qlik.com/t5/QlikView/Select-rows-with-min/m-p/1375006#M813335</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;The same solution plus GROUP BY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;LOAD * Inline [&lt;/P&gt;&lt;P&gt;Date_1, Date_2, Diff_Date, Key_Product&lt;/P&gt;&lt;P&gt;01/01/2017, 01/01/2017, 1, Product B&lt;/P&gt;&lt;P&gt;02/01/2017, 02/01/2017, 7, Product B&lt;/P&gt;&lt;P&gt;03/01/2017, 03/01/2017, 0, Product A1&lt;/P&gt;&lt;P&gt;04/01/2017, 04/01/2017, 16, Product A1&lt;/P&gt;&lt;P&gt;05/01/2017, 05/01/2017, 0, Product A2&lt;/P&gt;&lt;P&gt;01/02/2017, 01/02/2017, 36, Product A2&lt;/P&gt;&lt;P&gt;02/02/2017, 02/02/2017, 2, Product C&lt;/P&gt;&lt;P&gt;03/02/2017, 03/02/2017, 0, Product A1&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right Join&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; Min(Diff_Date) as Diff_Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Key_Product&lt;/P&gt;&lt;P&gt;Resident Table1&lt;/P&gt;&lt;P&gt;Group by Key_Product;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Saludos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2017 06:23:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-rows-with-min/m-p/1375006#M813335</guid>
      <dc:creator>fvelascog72</dc:creator>
      <dc:date>2017-09-20T06:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: Select rows with min</title>
      <link>https://community.qlik.com/t5/QlikView/Select-rows-with-min/m-p/1375007#M813336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! This works and I learnd something new!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2017 09:21:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-rows-with-min/m-p/1375007#M813336</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-20T09:21:50Z</dc:date>
    </item>
  </channel>
</rss>

