<?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: Nested Set Analysis with rank and aggr in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Nested-Set-Analysis-with-rank-and-aggr/m-p/401638#M149453</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jose.&lt;/P&gt;&lt;P&gt;That's the route I ended up going and it's just fine.&lt;/P&gt;&lt;P&gt;I'll leave any other tweaking until we go to V11 and can use dimension limits etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lorna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Jan 2013 22:08:28 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-01-09T22:08:28Z</dc:date>
    <item>
      <title>Nested Set Analysis with rank and aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-Set-Analysis-with-rank-and-aggr/m-p/401634#M149449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I found a very helpful sample here that got me about 80% of the way to what I need but I'm having trouble with the last 20%.&amp;nbsp; I needed an expression that would work to just show the top 5 ranked clients by db size.&amp;nbsp; This worked out well but then I needed to add to the set analysis so that I would get those top 5 regardless of selections in the document and always for the last time that the information had been loaded.&amp;nbsp; I put the max date in a variable during the load and included the '1' disclaimers in the set analysis however it always seems to be impacted by other selections in the doc.&amp;nbsp; &lt;/P&gt;&lt;P&gt;Below is my latest non-working incarnation of the expression.&amp;nbsp; Not really sure where I'm going wrong here.&lt;/P&gt;&lt;P&gt;Thanks for any assistance with this.&lt;/P&gt;&lt;P&gt;Lorna&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({1&amp;lt;[Client Name] = {"=rank(aggr(sum({1&amp;lt;DateType={'Metrics'},Date={'$vMaxUsageLoadDate'}&amp;gt;}dbSize),[Client Name]))&amp;lt;= 5"}&amp;gt;} dbSize)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2013 19:28:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-Set-Analysis-with-rank-and-aggr/m-p/401634#M149449</guid>
      <dc:creator />
      <dc:date>2013-01-07T19:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Set Analysis with rank and aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-Set-Analysis-with-rank-and-aggr/m-p/401635#M149450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should try using TOTAL:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; font-size: 12.727272033691406px; background-color: #ffffff;"&gt;sum({1&amp;lt;[Client Name] = {"=rank(aggr(sum({1&amp;lt;DateType={'Metrics'},Date={'$vMaxUsageLoadDate'}&amp;gt;}dbSize),[Client Name]))&amp;lt;= 5"}&amp;gt;}&lt;STRONG&gt;total &lt;/STRONG&gt;dbSize)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; font-size: 12.727272033691406px; background-color: #ffffff;"&gt;or use empty filters of fields you want discard&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; font-size: 12.727272033691406px; background-color: #ffffff;"&gt;sum({1&amp;lt;[Client Name] = {"=rank(aggr(sum({1&amp;lt;DateType={'Metrics'},Date={'$vMaxUsageLoadDate'}, &lt;STRONG&gt;FielfDiscard1=, FieldDiscard2=&lt;/STRONG&gt;&amp;gt;}dbSize),[Client Name]))&amp;lt;= 5"}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #737373; font-family: Arial; font-size: 12.727272033691406px; background-color: #ffffff;"&gt;dbSize)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; font-size: 12.727272033691406px; background-color: #ffffff;"&gt;Hope this helps&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2013 19:43:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-Set-Analysis-with-rank-and-aggr/m-p/401635#M149450</guid>
      <dc:creator>chematos</dc:creator>
      <dc:date>2013-01-07T19:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Set Analysis with rank and aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-Set-Analysis-with-rank-and-aggr/m-p/401636#M149451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This for the suggestions.&amp;nbsp; Unfortunately I still can't get it to work.&lt;/P&gt;&lt;P&gt;Using total gave me an entire record set total ignoring the aggr grouping.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have too many potential parameters to filter out the ones that I want to discard.&amp;nbsp; I did test it out by setting it up to exclude one filter but it didn't apply it when viewing the straight table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there just something that I'm missing with regards to nesting the set statements?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tried and didn't work:&lt;/P&gt;&lt;P&gt;sum({1&amp;lt;[Client Name] = {"=rank(aggr(sum({1}dbSize),[Client Name]))&amp;lt;= 5"}&amp;gt;} dbSize)&lt;/P&gt;&lt;P&gt;sum({1&amp;lt;[Client Name] = {"=rank(aggr({1}sum({1}dbSize),[Client Name]))&amp;lt;= 5"}&amp;gt;} dbSize)&lt;/P&gt;&lt;P&gt;sum({1&amp;lt;[Client Name] = {"=rank(aggr(sum({1&amp;lt;[Client Group]=}dbSize),[Client Name]))&amp;lt;= 5"}&amp;gt;} dbSize)&lt;/P&gt;&lt;P&gt;sum({1&amp;lt;[Client Name] = {"=rank(aggr({1&amp;lt;[Client Group]=}sum({1&amp;lt;[Client Group]=}dbSize),[Client Name]))&amp;lt;= 5"}&amp;gt;} dbSize)&lt;/P&gt;&lt;P&gt;sum({1&amp;lt;[Client Group]=,[Client Name] = {"=rank(aggr({1&amp;lt;[Client Group]=}sum({1&amp;lt;[Client Group]=}dbSize),[Client Name]))&amp;lt;= 5"}&amp;gt;} dbSize)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2013 20:09:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-Set-Analysis-with-rank-and-aggr/m-p/401636#M149451</guid>
      <dc:creator />
      <dc:date>2013-01-07T20:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Set Analysis with rank and aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-Set-Analysis-with-rank-and-aggr/m-p/401637#M149452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can´t see what's wrong...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried to do in a straight table without rank() function?&lt;/P&gt;&lt;P&gt;For these cases I think is better going from easy to hard, step by step&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this steps to make a top 5:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12.727272033691406px; color: #737373; font-family: Arial;"&gt;1) click on the chart properity.&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12.727272033691406px; color: #737373; font-family: Arial;"&gt;2) go to presentation.&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12.727272033691406px; color: #737373; font-family: Arial;"&gt;3) max number shown , set to 5.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2013 11:44:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-Set-Analysis-with-rank-and-aggr/m-p/401637#M149452</guid>
      <dc:creator>chematos</dc:creator>
      <dc:date>2013-01-08T11:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Set Analysis with rank and aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-Set-Analysis-with-rank-and-aggr/m-p/401638#M149453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jose.&lt;/P&gt;&lt;P&gt;That's the route I ended up going and it's just fine.&lt;/P&gt;&lt;P&gt;I'll leave any other tweaking until we go to V11 and can use dimension limits etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lorna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2013 22:08:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-Set-Analysis-with-rank-and-aggr/m-p/401638#M149453</guid>
      <dc:creator />
      <dc:date>2013-01-09T22:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Set Analysis with rank and aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-Set-Analysis-with-rank-and-aggr/m-p/401639#M149454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're welcome, I'm glad to be helpfull&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2013 11:23:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-Set-Analysis-with-rank-and-aggr/m-p/401639#M149454</guid>
      <dc:creator>chematos</dc:creator>
      <dc:date>2013-01-10T11:23:18Z</dc:date>
    </item>
  </channel>
</rss>

