<?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: Max of a field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Max-of-a-field/m-p/1181638#M627916</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess this need to be done for each PO Number, try 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 [Org Name], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [PO Number], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Line Num], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [PO Creation Date], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [PO Approved Date], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Req No], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Buyer Name], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [PO Approver], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SEQUENCE_NUM, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Supplier Name], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Item Code]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2061" data-containertype="14" data-objectid="234105" data-objecttype="1" href="https://community.qlik.com/thread/234105"&gt;https://community.qlik.com/thread/234105&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(html, codepage is 1252, embedded labels, table is @1);&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 [PO Number],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Max(SEQUENCE_NUM) as SEQUENCE_NUM&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;Group By [PO Number];&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Sep 2016 16:30:16 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-09-26T16:30:16Z</dc:date>
    <item>
      <title>Max of a field</title>
      <link>https://community.qlik.com/t5/QlikView/Max-of-a-field/m-p/1181637#M627915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement where i have to show only one record(row) based on the last PO Approver Field and where SEQUENCE_NUM is maximum per Requisition. In the below case&amp;nbsp; the sequence no should be &lt;SPAN style="color: #575757;"&gt;6&lt;/SPAN&gt; and PO approver should be &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="text-decoration: underline;"&gt;Mr. Raju P S&lt;/SPAN&gt; . How can i acheive this in front end. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 726px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="64"&gt;Org Name&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="64"&gt;PO Number&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="64"&gt;Line Num&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="64"&gt;PO Creation Date&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="64"&gt;PO Approved Date&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="64"&gt;Req No&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="64"&gt;Buyer Name&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="86"&gt;PO Approver&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="64"&gt;SEQUENCE_NUM&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="64"&gt;Supplier Name&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="64"&gt;Item Code&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="65" style="border-top: none;"&gt;F05 Fal-Sahibabad-Eng-Meat-Org&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;" width="64"&gt;1.816E+09&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;" width="64"&gt;05-06-2016&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;" width="64"&gt;18-06-2016&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;" width="64"&gt;1.816E+09&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;" width="64"&gt;Mr. Raju P S&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;" width="86"&gt;Mr. Mohammed Abdul Haq&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;" width="64"&gt;4&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;" width="64"&gt;NP CHEM TREAT ENGINEERING CO.&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;" width="64"&gt;L02100401009&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="65" style="border-top: none;"&gt;F05 Fal-Sahibabad-Eng-Meat-Org&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;" width="64"&gt;1.816E+09&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;" width="64"&gt;05-06-2016&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;" width="64"&gt;18-06-2016&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;" width="64"&gt;1.816E+09&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;" width="64"&gt;Mr. Raju P S&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;" width="86"&gt;Mr. Raju P S&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;" width="64"&gt;6&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;" width="64"&gt;NP CHEM TREAT ENGINEERING CO.&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;" width="64"&gt;L02100401009&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Any help would be much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Many thanks,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Anam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Sep 2016 06:54:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-of-a-field/m-p/1181637#M627915</guid>
      <dc:creator />
      <dc:date>2016-09-26T06:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: Max of a field</title>
      <link>https://community.qlik.com/t5/QlikView/Max-of-a-field/m-p/1181638#M627916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess this need to be done for each PO Number, try 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 [Org Name], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [PO Number], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Line Num], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [PO Creation Date], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [PO Approved Date], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Req No], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Buyer Name], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [PO Approver], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SEQUENCE_NUM, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Supplier Name], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Item Code]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2061" data-containertype="14" data-objectid="234105" data-objecttype="1" href="https://community.qlik.com/thread/234105"&gt;https://community.qlik.com/thread/234105&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(html, codepage is 1252, embedded labels, table is @1);&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 [PO Number],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Max(SEQUENCE_NUM) as SEQUENCE_NUM&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;Group By [PO Number];&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Sep 2016 16:30:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-of-a-field/m-p/1181638#M627916</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-26T16:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: Max of a field</title>
      <link>https://community.qlik.com/t5/QlikView/Max-of-a-field/m-p/1181639#M627917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny, cant we use this in front end like, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dim: All the fields except SEQUENCE_NUM &lt;/P&gt;&lt;P&gt;Expr: = Aggr(Max(SEQUENCE_NUM), [PO Number])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Sep 2016 16:41:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-of-a-field/m-p/1181639#M627917</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2016-09-26T16:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: Max of a field</title>
      <link>https://community.qlik.com/t5/QlikView/Max-of-a-field/m-p/1181640#M627918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I did not see that this is needed on the front end. You can use as you have mentioned or you can use FirstSortedValue &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension&lt;/P&gt;&lt;P&gt;PO Number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expressions&lt;/P&gt;&lt;P&gt;1) &lt;STRONG&gt;FirstSortedValue(FieldName1, -SEQUENCE_NUM)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;2) &lt;STRONG&gt;FirstSortedValue(FieldName2, -SEQUENCE_NUM)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;and finally use &lt;STRONG&gt;Max(&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;SEQUENCE_NUM)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Sep 2016 16:44:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-of-a-field/m-p/1181640#M627918</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-26T16:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: Max of a field</title>
      <link>https://community.qlik.com/t5/QlikView/Max-of-a-field/m-p/1181641#M627919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes Firstsortedvalue will also work, but thought of just writing one expression. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Sep 2016 16:47:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-of-a-field/m-p/1181641#M627919</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2016-09-26T16:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: Max of a field</title>
      <link>https://community.qlik.com/t5/QlikView/Max-of-a-field/m-p/1181642#M627920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See this is how it helps me from experts like you, to think different alternative ways to do. Appreciate that buddy.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Sep 2016 16:48:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-of-a-field/m-p/1181642#M627920</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2016-09-26T16:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: Max of a field</title>
      <link>https://community.qlik.com/t5/QlikView/Max-of-a-field/m-p/1181643#M627921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Same goes for you brother. You help me think differently as well, so thanks to you as well &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Sep 2016 17:40:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-of-a-field/m-p/1181643#M627921</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-26T17:40:02Z</dc:date>
    </item>
  </channel>
</rss>

