<?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: Group By one column only - max date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Group-By-one-column-only-max-date/m-p/1002625#M650571</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;TABLE2:&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; ORDER,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; FirstSortedValue(X_FIELD, -DATE),&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; FirstSortedValue(DATE, -DATE)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident TABLE1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;group by ORDER;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Aug 2015 19:51:29 GMT</pubDate>
    <dc:creator>maxgro</dc:creator>
    <dc:date>2015-08-26T19:51:29Z</dc:date>
    <item>
      <title>Group By one column only - max date</title>
      <link>https://community.qlik.com/t5/QlikView/Group-By-one-column-only-max-date/m-p/1002623#M650569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Qlik Communty:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I have this Table1: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="222"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="24" width="74"&gt;TABLE1:&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="24"&gt;ORDER&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;"&gt;X_FIELD&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;"&gt;DATE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="24" style="border-top: none;"&gt;10001&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;20/08/2015&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="24" style="border-top: none;"&gt;10001&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;15/08/2015&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="24" style="border-top: none;"&gt;10002&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;19/08/2015&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="24" style="border-top: none;"&gt;10002&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;20/08/2015&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="24" style="border-top: none;"&gt;10002&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;21/08/2015&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="24" style="border-top: none;"&gt;10003&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;18/08/2015&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="24" style="border-top: none;"&gt;10003&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;20/08/2015&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and need to Group By &lt;SPAN style="font-size: 13.3333330154419px;"&gt;ORDER &lt;/SPAN&gt;showing the max(DATE&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;) and &lt;SPAN style="font-size: 13.3333330154419px;"&gt;X_FIELD&lt;/SPAN&gt;, something like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 222px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl66" height="24" width="74"&gt;ORDER&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="74"&gt;X_FIELD&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="74"&gt;DATE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl67" height="24" style="border-top: none;"&gt;10001&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;20/08/2015&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl67" height="24" style="border-top: none;"&gt;10002&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;21/08/2015&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl67" height="24" style="border-top: none;"&gt;10003&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;20/08/2015&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I write this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;LOAD ORDER, X_FIELD, MAX(DATE) AS DATE&lt;/P&gt;&lt;P&gt;RESIDENT TABLE1 GROUP BY ORDER&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got an error because X_FIELD is missing after &lt;SPAN style="font-size: 13.3333330154419px;"&gt;ORDER &lt;/SPAN&gt;in Group By.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I write &lt;SPAN style="font-size: 13.3333330154419px;"&gt;GROUP BY&lt;/SPAN&gt; &lt;SPAN style="font-size: 13.3333330154419px;"&gt;ORDER, &lt;/SPAN&gt;X_FIELD&lt;/P&gt;&lt;P&gt;I got a diferent result from the one I am expecting (above).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help, &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2015 19:37:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-By-one-column-only-max-date/m-p/1002623#M650569</guid>
      <dc:creator />
      <dc:date>2015-08-26T19:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: Group By one column only - max date</title>
      <link>https://community.qlik.com/t5/QlikView/Group-By-one-column-only-max-date/m-p/1002624#M650570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Inner Join (TABLE1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD ORDER, MAX(DATE) AS DATE&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;RESIDENT TABLE1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;GROUP BY ORDER&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com" rel="nofollow"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com" rel="nofollow"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2015 19:50:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-By-one-column-only-max-date/m-p/1002624#M650570</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2015-08-26T19:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: Group By one column only - max date</title>
      <link>https://community.qlik.com/t5/QlikView/Group-By-one-column-only-max-date/m-p/1002625#M650571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;TABLE2:&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; ORDER,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; FirstSortedValue(X_FIELD, -DATE),&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; FirstSortedValue(DATE, -DATE)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident TABLE1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;group by ORDER;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2015 19:51:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-By-one-column-only-max-date/m-p/1002625#M650571</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-08-26T19:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Group By one column only - max date</title>
      <link>https://community.qlik.com/t5/QlikView/Group-By-one-column-only-max-date/m-p/1002626#M650572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Beautiful. Thanks Rob!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2015 20:04:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-By-one-column-only-max-date/m-p/1002626#M650572</guid>
      <dc:creator />
      <dc:date>2015-08-26T20:04:34Z</dc:date>
    </item>
  </channel>
</rss>

