<?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 on MaxDate in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/group-By-on-MaxDate/m-p/841501#M1010464</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;You want this result at frontend or in the script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Apr 2015 12:30:03 GMT</pubDate>
    <dc:creator>ankitaag</dc:creator>
    <dc:date>2015-04-28T12:30:03Z</dc:date>
    <item>
      <title>group By on MaxDate</title>
      <link>https://community.qlik.com/t5/QlikView/group-By-on-MaxDate/m-p/841500#M1010463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, My data type is &lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 192px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="64"&gt;User&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="64"&gt;Date&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="64"&gt;Type&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;User1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;1/4/2015&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt; A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;User1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;4/4/2015&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt; B&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;User1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;2/4/2015&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt; C&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;User2&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;1/4/2015&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt; A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;User2&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;3/4/2015&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt; B&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;User2&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;5/4/2015&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt; C&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we want result this type (UserWise&amp;nbsp; Max(date)-&amp;gt; Type)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="72" style="width: 114px; height: 64px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" width="64"&gt;User&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="64"&gt;Type&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;User1&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;B&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;User2&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;C&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 12:27:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/group-By-on-MaxDate/m-p/841500#M1010463</guid>
      <dc:creator>vijayit43</dc:creator>
      <dc:date>2015-04-28T12:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: group By on MaxDate</title>
      <link>https://community.qlik.com/t5/QlikView/group-By-on-MaxDate/m-p/841501#M1010464</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;You want this result at frontend or in the script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 12:30:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/group-By-on-MaxDate/m-p/841501#M1010464</guid>
      <dc:creator>ankitaag</dc:creator>
      <dc:date>2015-04-28T12:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: group By on MaxDate</title>
      <link>https://community.qlik.com/t5/QlikView/group-By-on-MaxDate/m-p/841502#M1010465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi vij,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please see attached, should help with this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 12:35:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/group-By-on-MaxDate/m-p/841502#M1010465</guid>
      <dc:creator />
      <dc:date>2015-04-28T12:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: group By on MaxDate</title>
      <link>https://community.qlik.com/t5/QlikView/group-By-on-MaxDate/m-p/841503#M1010466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="color: blue; font-size: 9.0pt; font-family: 'Courier New';"&gt;Load&lt;/STRONG&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;User&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;FirstSortedValue&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Type&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,-&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Type&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Group&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;By&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;User&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9.0pt; font-family: 'Courier New';"&gt;Load&lt;/STRONG&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;User&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Date#&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,'DD/MM/YYYY') &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Type&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Inline&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[&lt;BR /&gt; User,Date,Type&lt;BR /&gt; User1,1/4/2015,A&lt;BR /&gt; User1,4/4/2015,B&lt;BR /&gt; User1,2/4/2015,C&lt;BR /&gt; User2,1/4/2015,A&lt;BR /&gt; User2,3/4/2015,B&lt;BR /&gt; User2,5/4/2015,C ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 12:42:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/group-By-on-MaxDate/m-p/841503#M1010466</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2015-04-28T12:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: group By on MaxDate</title>
      <link>https://community.qlik.com/t5/QlikView/group-By-on-MaxDate/m-p/841504#M1010467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;t1:&lt;/P&gt;&lt;P&gt;load * inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;User, Date ,Type&lt;/P&gt;&lt;P&gt;User1, 01/04/2015, A&lt;/P&gt;&lt;P&gt;User1 ,04/04/2015, B&lt;/P&gt;&lt;P&gt;User1, 02/04/2015 , C&lt;/P&gt;&lt;P&gt;User2 ,01/04/2015 , A&lt;/P&gt;&lt;P&gt;User2 ,03/04/2015 , B&lt;/P&gt;&lt;P&gt;User2 ,05/04/2015 , C&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t2:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;User as u,&lt;/P&gt;&lt;P&gt;Date(Date#(Date,'D/M/YYYY')) As Dat,&lt;/P&gt;&lt;P&gt;Type as T&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident t1;&lt;/P&gt;&lt;P&gt;drop Table t1;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="28-Apr-15 2-16-44 PM.jpg" class="jive-image image-1" src="/legacyfs/online/85242_28-Apr-15 2-16-44 PM.jpg" style="height: 186px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 13:17:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/group-By-on-MaxDate/m-p/841504#M1010467</guid>
      <dc:creator>robert_mika</dc:creator>
      <dc:date>2015-04-28T13:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: group By on MaxDate</title>
      <link>https://community.qlik.com/t5/QlikView/group-By-on-MaxDate/m-p/841505#M1010468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We want result in script..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 06:19:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/group-By-on-MaxDate/m-p/841505#M1010468</guid>
      <dc:creator>vijayit43</dc:creator>
      <dc:date>2015-04-29T06:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: group By on MaxDate</title>
      <link>https://community.qlik.com/t5/QlikView/group-By-on-MaxDate/m-p/841506#M1010469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear,&lt;/P&gt;&lt;P&gt;Use it,&lt;/P&gt;&lt;P&gt;table:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;User ,Date ,Type&lt;/P&gt;&lt;P&gt;User1, 1/4/2015, A&lt;/P&gt;&lt;P&gt;User1, 4/4/2015, B&lt;/P&gt;&lt;P&gt;User1, 2/4/2015, C&lt;/P&gt;&lt;P&gt;User2, 1/4/2015, A&lt;/P&gt;&lt;P&gt;User2 ,3/4/2015, B&lt;/P&gt;&lt;P&gt;User2, 5/4/2015, C&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MAX:&lt;/P&gt;&lt;P&gt;LOAD User,&lt;/P&gt;&lt;P&gt;User&amp;amp;max(Date)&amp;nbsp; as KEY,&lt;/P&gt;&lt;P&gt;max(Date) as MAXDATE&lt;/P&gt;&lt;P&gt;Resident table Group by User ;&lt;/P&gt;&lt;P&gt;Left Join&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;User&amp;amp;num(Date)&amp;nbsp; as KEY,&lt;/P&gt;&lt;P&gt;Type&lt;/P&gt;&lt;P&gt;Resident table;&lt;/P&gt;&lt;P&gt;DROP Table table;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 06:31:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/group-By-on-MaxDate/m-p/841506#M1010469</guid>
      <dc:creator />
      <dc:date>2015-04-29T06:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: group By on MaxDate</title>
      <link>https://community.qlik.com/t5/QlikView/group-By-on-MaxDate/m-p/841507#M1010470</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;Try this script :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T1:&lt;/P&gt;&lt;P&gt;LOAD User,Date(Date#(Date,'MM/DD/YYYY'),'MM/DD/YYYY') as Date,Type INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; User, Date, Type&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; User1, 1/4/2015, A&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; User1, 4/4/2015, B&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; User1, 2/4/2015, C&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; User2, 1/4/2015, A&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; User2, 3/4/2015, B&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; User2, 5/4/2015, C&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mapping:&lt;/P&gt;&lt;P&gt;Mapping LOAD Date,Type&lt;/P&gt;&lt;P&gt;Resident T1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;T2:&lt;/P&gt;&lt;P&gt;Load User,max(Date) as Date&lt;/P&gt;&lt;P&gt;Resident T1&lt;/P&gt;&lt;P&gt;group by User;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table T1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Final:&lt;/P&gt;&lt;P&gt;Load User,Date,ApplyMap('Mapping',Date) as Type&lt;/P&gt;&lt;P&gt;Resident T2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table T2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For further reference PFA the application&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 08:10:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/group-By-on-MaxDate/m-p/841507#M1010470</guid>
      <dc:creator>ankitaag</dc:creator>
      <dc:date>2015-04-29T08:10:31Z</dc:date>
    </item>
  </channel>
</rss>

