<?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 distinct value with max date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/distinct-value-with-max-date/m-p/971222#M975977</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;&lt;/P&gt;&lt;P&gt;I am trying to solve a problem. I have the following table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/97933_1.PNG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I would like to have only distinct serialnumbers with max date associated with them like shown below:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/97940_2.PNG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Parth &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Sep 2015 21:31:31 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-09-03T21:31:31Z</dc:date>
    <item>
      <title>distinct value with max date</title>
      <link>https://community.qlik.com/t5/QlikView/distinct-value-with-max-date/m-p/971222#M975977</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;&lt;/P&gt;&lt;P&gt;I am trying to solve a problem. I have the following table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/97933_1.PNG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I would like to have only distinct serialnumbers with max date associated with them like shown below:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/97940_2.PNG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Parth &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Sep 2015 21:31:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/distinct-value-with-max-date/m-p/971222#M975977</guid>
      <dc:creator />
      <dc:date>2015-09-03T21:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: distinct value with max date</title>
      <link>https://community.qlik.com/t5/QlikView/distinct-value-with-max-date/m-p/971223#M975978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;in script&lt;/STRONG&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SET DateFormat='M/D/YYYY';&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;a:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load * inline [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SerialNumber, Date&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;abcd,6/5/2014&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;efgh,7/15/2015&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;xyz,3/2/2013&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;pqr,4/16/2015&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;abcd,9/2/2015&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;xyz,5/15/2015&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;pqr,9/3/2015&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;inner Join (a)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; SerialNumber, date(max(Date)) as Date&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident a&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Group By SerialNumber;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;or if you want in chart&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;dimension&amp;nbsp;&amp;nbsp;&amp;nbsp; SerialNumber&lt;/P&gt;&lt;P&gt;expression&amp;nbsp;&amp;nbsp;&amp;nbsp; max(Date) &lt;STRONG&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Sep 2015 21:45:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/distinct-value-with-max-date/m-p/971223#M975978</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-09-03T21:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: distinct value with max date</title>
      <link>https://community.qlik.com/t5/QlikView/distinct-value-with-max-date/m-p/971224#M975979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much Massimo. This helped me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a good one &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Parth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2015 02:01:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/distinct-value-with-max-date/m-p/971224#M975979</guid>
      <dc:creator />
      <dc:date>2015-09-04T02:01:26Z</dc:date>
    </item>
  </channel>
</rss>

