<?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 Maximum value per field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Maximum-value-per-field/m-p/513570#M191918</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have&amp;nbsp; a table like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE bgcolor="#ffffff" border="1" cellpadding="2" cellspacing="0" style="font-size: 9pt;"&gt;&lt;TBODY&gt;&lt;TR bgcolor="#f5f5f5"&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Company&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Transaction Id&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Amount&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;20&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;SPAN style="color: #575757;"&gt; &lt;/SPAN&gt;&lt;STRONG style="text-decoration: underline;"&gt;10&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;19&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;9&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;2&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;18&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG style="text-decoration: underline;"&gt;5&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;2&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;17&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;3&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;16&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG style="text-decoration: underline;"&gt;2&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;3&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;15&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I'd like to get in a table, the maximum possible amount by Transaction Id per Company, that will be --&amp;gt;&lt;STRONG&gt; 10 + 5 + 2 = 17.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I'm trying :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;num(sum(&amp;nbsp; {$ &amp;lt; [Transaction Id] = {$(=max([Transaction Id]))}&amp;nbsp; &amp;gt;} Amount),'#.##0,00 €')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aggr( num(sum(&amp;nbsp; {$ &amp;lt; [Transaction Id] = {$(=max([Transaction Id]))} &amp;gt;} Amount ),'#.##0,00 €') , Company )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I only got the maximum value of the maximum Transaction Id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attached the example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do yo know how to get my desired result?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Oct 2013 15:13:34 GMT</pubDate>
    <dc:creator>marcel_olmo</dc:creator>
    <dc:date>2013-10-23T15:13:34Z</dc:date>
    <item>
      <title>Maximum value per field</title>
      <link>https://community.qlik.com/t5/QlikView/Maximum-value-per-field/m-p/513570#M191918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have&amp;nbsp; a table like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE bgcolor="#ffffff" border="1" cellpadding="2" cellspacing="0" style="font-size: 9pt;"&gt;&lt;TBODY&gt;&lt;TR bgcolor="#f5f5f5"&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Company&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Transaction Id&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Amount&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;20&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;SPAN style="color: #575757;"&gt; &lt;/SPAN&gt;&lt;STRONG style="text-decoration: underline;"&gt;10&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;19&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;9&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;2&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;18&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG style="text-decoration: underline;"&gt;5&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;2&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;17&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;3&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;16&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG style="text-decoration: underline;"&gt;2&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;3&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;15&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I'd like to get in a table, the maximum possible amount by Transaction Id per Company, that will be --&amp;gt;&lt;STRONG&gt; 10 + 5 + 2 = 17.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I'm trying :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;num(sum(&amp;nbsp; {$ &amp;lt; [Transaction Id] = {$(=max([Transaction Id]))}&amp;nbsp; &amp;gt;} Amount),'#.##0,00 €')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aggr( num(sum(&amp;nbsp; {$ &amp;lt; [Transaction Id] = {$(=max([Transaction Id]))} &amp;gt;} Amount ),'#.##0,00 €') , Company )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I only got the maximum value of the maximum Transaction Id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attached the example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do yo know how to get my desired result?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 15:13:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Maximum-value-per-field/m-p/513570#M191918</guid>
      <dc:creator>marcel_olmo</dc:creator>
      <dc:date>2013-10-23T15:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum value per field</title>
      <link>https://community.qlik.com/t5/QlikView/Maximum-value-per-field/m-p/513571#M191919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here it is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 15:28:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Maximum-value-per-field/m-p/513571#M191919</guid>
      <dc:creator />
      <dc:date>2013-10-23T15:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum value per field</title>
      <link>https://community.qlik.com/t5/QlikView/Maximum-value-per-field/m-p/513572#M191920</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;This should do what you want if I have understood you correctly&lt;/P&gt;&lt;P&gt;Sum(Aggr(FirstSortedValue(Amount, -[Transaction Id]), Company))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 15:31:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Maximum-value-per-field/m-p/513572#M191920</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2013-10-23T15:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum value per field</title>
      <link>https://community.qlik.com/t5/QlikView/Maximum-value-per-field/m-p/513573#M191921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks guys!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It worked with firstSortedValue. Thank you guys!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="sorted.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/48015_sorted.png" style="width: 620px; height: 101px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 15:36:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Maximum-value-per-field/m-p/513573#M191921</guid>
      <dc:creator>marcel_olmo</dc:creator>
      <dc:date>2013-10-23T15:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum value per field</title>
      <link>https://community.qlik.com/t5/QlikView/Maximum-value-per-field/m-p/513574#M191922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=FirstSortedValue(Amount, -[Transaction Id]) is much better !&lt;/P&gt;&lt;P&gt;Thanks Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 15:39:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Maximum-value-per-field/m-p/513574#M191922</guid>
      <dc:creator>yduval75</dc:creator>
      <dc:date>2013-10-23T15:39:45Z</dc:date>
    </item>
  </channel>
</rss>

