<?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: Get greater amount from table using set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Get-greater-amount-from-table-using-set-analysis/m-p/1075040#M358715</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attached:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/111419_Capture.PNG" style="height: 343px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Jan 2016 21:19:00 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-01-12T21:19:00Z</dc:date>
    <item>
      <title>Get greater amount from table using set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Get-greater-amount-from-table-using-set-analysis/m-p/1075034#M358709</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;I have a table that look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Amount&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;01/01/2013&amp;nbsp;&amp;nbsp; 40,000&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;01/02/2013&amp;nbsp;&amp;nbsp; 50,000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;01/04/2014&amp;nbsp;&amp;nbsp; 55,000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;01/06/2015&amp;nbsp;&amp;nbsp; 9,000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I need to take greater amount and the date of this amount.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;For example: the result in this case would be &lt;STRONG&gt;55,000&lt;/STRONG&gt; and &lt;STRONG&gt;01/04/2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I have tryied to use FirstSortedValue function but it's doesn't word because it return the first or the las value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;King regards!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 19:29:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-greater-amount-from-table-using-set-analysis/m-p/1075034#M358709</guid>
      <dc:creator />
      <dc:date>2016-01-12T19:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: Get greater amount from table using set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Get-greater-amount-from-table-using-set-analysis/m-p/1075035#M358710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is amount a field in your database or is this a expression like this -&amp;gt; &lt;STRONG&gt;Sum(Amount)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be this in a text box:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amount -&amp;gt;&lt;STRONG&gt; Max(Aggr(Sum(Amount), Date))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Date -&amp;gt; &lt;STRONG&gt;FirstSortedValue(Date, -Aggr(Sum(Amount), Date))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 19:48:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-greater-amount-from-table-using-set-analysis/m-p/1075035#M358710</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-12T19:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: Get greater amount from table using set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Get-greater-amount-from-table-using-set-analysis/m-p/1075036#M358711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No.. this example return the last date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just typed an example width the result i need. in the example table the last date is 01/06/2015 but i don't want the last date; i just want the date for that amount. example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amount: 55,000&lt;/P&gt;&lt;P&gt;Date: &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;01/04/2014&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your result would by:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Amount: 55,000&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Date: &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;01/06/2015 and that's not correct&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 20:04:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-greater-amount-from-table-using-set-analysis/m-p/1075036#M358711</guid>
      <dc:creator />
      <dc:date>2016-01-12T20:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: Get greater amount from table using set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Get-greater-amount-from-table-using-set-analysis/m-p/1075037#M358712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe also, in a straight table chart, &lt;/P&gt;&lt;P&gt;&lt;EM&gt;sorting by sum(Amount) descending&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;and in presentation tab max number --&amp;gt; 1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;maybe also, in a straight table chart &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;using dimension limit&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 20:06:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-greater-amount-from-table-using-set-analysis/m-p/1075037#M358712</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2016-01-12T20:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: Get greater amount from table using set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Get-greater-amount-from-table-using-set-analysis/m-p/1075038#M358713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the problem is tha I'm building the table in memory, so i have an set anlysis using aggr function ordering by date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this value will be displayed in a textbox object; is for that i want to take the greater amount and his date. the textbox will say:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greater selling day&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01/04/2014&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 55,000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm looking for thats.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 20:17:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-greater-amount-from-table-using-set-analysis/m-p/1075038#M358713</guid>
      <dc:creator />
      <dc:date>2016-01-12T20:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: Get greater amount from table using set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Get-greater-amount-from-table-using-set-analysis/m-p/1075039#M358714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you looked at what I proposed for text box object?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 21:13:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-greater-amount-from-table-using-set-analysis/m-p/1075039#M358714</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-12T21:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: Get greater amount from table using set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Get-greater-amount-from-table-using-set-analysis/m-p/1075040#M358715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attached:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/111419_Capture.PNG" style="height: 343px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 21:19:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-greater-amount-from-table-using-set-analysis/m-p/1075040#M358715</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-12T21:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: Get greater amount from table using set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Get-greater-amount-from-table-using-set-analysis/m-p/1075041#M358716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've tried your answer but i'm geeting the next error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error: Error in expression:&lt;/P&gt;&lt;P&gt;Nested aggregation not allowed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;Greater selling day&lt;/SPAN&gt;&amp;amp;Chr(13)&amp;amp;&lt;/P&gt;&lt;P&gt;Concat(FirstSortedValue(Fecha, -Aggr(Sum(Amount), Fecha)))&lt;/P&gt;&lt;P&gt;&amp;amp;Chr(13)&amp;amp; Num(vMaximoCobrado,'#,###.##')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; vMaximoCobrado is a variable i have containing the greater amount.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jan 2016 12:42:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-greater-amount-from-table-using-set-analysis/m-p/1075041#M358716</guid>
      <dc:creator />
      <dc:date>2016-01-13T12:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: Get greater amount from table using set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Get-greater-amount-from-table-using-set-analysis/m-p/1075042#M358717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why are using Concat() function here? Can you elaborate?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jan 2016 13:26:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-greater-amount-from-table-using-set-analysis/m-p/1075042#M358717</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-13T13:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: Get greater amount from table using set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Get-greater-amount-from-table-using-set-analysis/m-p/1075043#M358718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the concat function is for concat the Date to text Greater selling day and the amount.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jan 2016 13:46:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-greater-amount-from-table-using-set-analysis/m-p/1075043#M358718</guid>
      <dc:creator />
      <dc:date>2016-01-13T13:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: Get greater amount from table using set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Get-greater-amount-from-table-using-set-analysis/m-p/1075044#M358719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;Try this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;='Geater selling day' &amp;amp; Chr(13) &amp;amp; &lt;STRONG style="font-size: 13.3333px;"&gt;FirstSortedValue(Date, -Aggr(Sum(Amount), Date))&lt;/STRONG&gt; &amp;amp; Chr(13) &amp;amp; &lt;STRONG style="font-size: 13.3333px;"&gt;Max(Aggr(Sum(Amount), Date))&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jan 2016 14:52:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-greater-amount-from-table-using-set-analysis/m-p/1075044#M358719</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-13T14:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: Get greater amount from table using set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Get-greater-amount-from-table-using-set-analysis/m-p/1075045#M358720</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;Please check this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jan 2016 07:29:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-greater-amount-from-table-using-set-analysis/m-p/1075045#M358720</guid>
      <dc:creator>udaya_kumar</dc:creator>
      <dc:date>2016-01-14T07:29:28Z</dc:date>
    </item>
  </channel>
</rss>

