<?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: How can I use above() with aggr() in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-can-I-use-above-with-aggr/m-p/975796#M333576</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny. Strange it isn't a perfect match. I will see if others can diagnose that, but this answer was helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Nov 2015 18:04:56 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-11-24T18:04:56Z</dc:date>
    <item>
      <title>How can I use above() with aggr()</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-use-above-with-aggr/m-p/975794#M333574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Qlikviewers. I am currently trying to solve an issue where when I create a table, I can find a value im looking for (max of column2-column1), but when I try to apply that logic and create a temp table with aggr, there is no way to sort the table, so the value I get doesn't match up. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am posting an example below of what I'm trying to do. The "KS" number should match the max of the KS column in the table (42.01%)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" height="230" src="https://community.qlik.com/legacyfs/online/106669_Capture.PNG" style="height: 230px; width: 742.708px;" width="743" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 17:30:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-use-above-with-aggr/m-p/975794#M333574</guid>
      <dc:creator />
      <dc:date>2015-11-24T17:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use above() with aggr()</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-use-above-with-aggr/m-p/975795#M333575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think to get the same number using the aggregate function, you will need to sort the Score dimension in the script. Something like 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 Score as Score1, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Booked, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Bad&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;[KSExample.xlsx]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(ooxml, embedded labels, table is Sheet1);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FinalTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NoConcatenate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Score1 as Score,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Booked,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Bad&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;Order By Score1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP Table Table;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason is that Aggregate always uses the Load sort order. The result I got was very close, but not sure why it doesn't completely match.&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/106729_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 17:59:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-use-above-with-aggr/m-p/975795#M333575</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-11-24T17:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use above() with aggr()</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-use-above-with-aggr/m-p/975796#M333576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny. Strange it isn't a perfect match. I will see if others can diagnose that, but this answer was helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 18:04:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-use-above-with-aggr/m-p/975796#M333576</guid>
      <dc:creator />
      <dc:date>2015-11-24T18:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use above() with aggr()</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-use-above-with-aggr/m-p/975797#M333577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I actually extracted the excel file from the application itself, can you try with the data file you have and the script I provided to see what happens? Or if you can provide the excel file, I can check it at my end as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 18:07:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-use-above-with-aggr/m-p/975797#M333577</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-11-24T18:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use above() with aggr()</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-use-above-with-aggr/m-p/975798#M333578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah I just tried it with the raw excel file and the numbers match exactly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a nice workaround but I do wish there was a way to sort &lt;EM&gt;within&lt;/EM&gt; the aggr function, rather than having to rely on data load order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 18:24:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-use-above-with-aggr/m-p/975798#M333578</guid>
      <dc:creator />
      <dc:date>2015-11-24T18:24:38Z</dc:date>
    </item>
  </channel>
</rss>

