<?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 Displaying top brands on multiple graphs in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Displaying-top-brands-on-multiple-graphs/m-p/224030#M76490</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eliran&lt;/P&gt;&lt;P&gt;I checked your expressions in the single charts without dimensions. To make these charts working use the following expr.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;sum( if (aggr(rank(Aggr(Sum(Sum),Brand)), Brand)=1, Quant))&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Note: Your expression was't far away from working correctly, only the second outer aggr() was missing. Hope it will survive the adding of year as a dimension &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;RR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Dec 2010 15:21:55 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-12-15T15:21:55Z</dc:date>
    <item>
      <title>Displaying top brands on multiple graphs</title>
      <link>https://community.qlik.com/t5/QlikView/Displaying-top-brands-on-multiple-graphs/m-p/224027#M76487</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 6 Combo charts, and in them I display 6 different brands info using set analysis.&lt;/P&gt;&lt;P&gt;The problem is, i'm choosing them manually, and the top 6 are changing from time to time.&lt;/P&gt;&lt;P&gt;I would like to find a way to take the top 6 brands according to their quant.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;Brand Quant Sum&lt;/P&gt;&lt;P&gt;A 500 10000&lt;/P&gt;&lt;P&gt;B 600 12000&lt;/P&gt;&lt;P&gt;C 700 14000&lt;/P&gt;&lt;P&gt;D 800 16000&lt;/P&gt;&lt;P&gt;E 900 18000&lt;/P&gt;&lt;P&gt;F 200 4000&lt;/P&gt;&lt;P&gt;G 1000 20000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in this example, in each chart I want to set in the set analysis to take top1, top2, top3, top4, top5, top6.&lt;/P&gt;&lt;P&gt;Meaning i'll eventually see graphs for brands: a,b,c,d,e,g&lt;/P&gt;&lt;P&gt;I hope i made my self clear enough.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Dec 2010 11:35:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Displaying-top-brands-on-multiple-graphs/m-p/224027#M76487</guid>
      <dc:creator>eliran</dc:creator>
      <dc:date>2010-12-15T11:35:51Z</dc:date>
    </item>
    <item>
      <title>Displaying top brands on multiple graphs</title>
      <link>https://community.qlik.com/t5/QlikView/Displaying-top-brands-on-multiple-graphs/m-p/224028#M76488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hio Eliran,&lt;/P&gt;&lt;P&gt;what about using a calculated dimension which shows in your chart the top 6 Brands? This could be done in a way like this (syntax not checked):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;=if( aggr(rank( aggr(max(Quant), Brand), 4, 2), Brand) &amp;lt;= 6, Brand)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;HtH&lt;/P&gt;&lt;P&gt;Roland&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Dec 2010 11:45:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Displaying-top-brands-on-multiple-graphs/m-p/224028#M76488</guid>
      <dc:creator />
      <dc:date>2010-12-15T11:45:33Z</dc:date>
    </item>
    <item>
      <title>Displaying top brands on multiple graphs</title>
      <link>https://community.qlik.com/t5/QlikView/Displaying-top-brands-on-multiple-graphs/m-p/224029#M76489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Roland,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;P&gt;Using the rank was my thoughts, but not as you suggested.&lt;/P&gt;&lt;P&gt;Plesae see the attached example of my intentions.&lt;/P&gt;&lt;P&gt;I have tried something using the rank but it didn't work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit:&lt;/P&gt;&lt;P&gt;I can't use it as a dimension because I'm using years, so I have to use it inside the formula.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eliran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Dec 2010 14:47:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Displaying-top-brands-on-multiple-graphs/m-p/224029#M76489</guid>
      <dc:creator>eliran</dc:creator>
      <dc:date>2010-12-15T14:47:10Z</dc:date>
    </item>
    <item>
      <title>Displaying top brands on multiple graphs</title>
      <link>https://community.qlik.com/t5/QlikView/Displaying-top-brands-on-multiple-graphs/m-p/224030#M76490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eliran&lt;/P&gt;&lt;P&gt;I checked your expressions in the single charts without dimensions. To make these charts working use the following expr.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;sum( if (aggr(rank(Aggr(Sum(Sum),Brand)), Brand)=1, Quant))&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Note: Your expression was't far away from working correctly, only the second outer aggr() was missing. Hope it will survive the adding of year as a dimension &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;RR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Dec 2010 15:21:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Displaying-top-brands-on-multiple-graphs/m-p/224030#M76490</guid>
      <dc:creator />
      <dc:date>2010-12-15T15:21:55Z</dc:date>
    </item>
    <item>
      <title>Displaying top brands on multiple graphs</title>
      <link>https://community.qlik.com/t5/QlikView/Displaying-top-brands-on-multiple-graphs/m-p/224031#M76491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Roland,&lt;/P&gt;&lt;P&gt;Thanks a lot for your help.&lt;/P&gt;&lt;P&gt;I can now understand where was my mistake.&lt;/P&gt;&lt;P&gt;as for a bonus question, can I get the brand name using the same logic?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Dec 2010 15:38:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Displaying-top-brands-on-multiple-graphs/m-p/224031#M76491</guid>
      <dc:creator>eliran</dc:creator>
      <dc:date>2010-12-15T15:38:00Z</dc:date>
    </item>
    <item>
      <title>Displaying top brands on multiple graphs</title>
      <link>https://community.qlik.com/t5/QlikView/Displaying-top-brands-on-multiple-graphs/m-p/224032#M76492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eliran,&lt;/P&gt;&lt;P&gt;glad to help you. To answer the bonus question take a look at the new version of your app. Don't ask me, why QV needs an only() or a maxstring() function to display the return-value of the if(), it is necessary.&lt;/P&gt;&lt;P&gt;Regards, Roland&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Dec 2010 17:35:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Displaying-top-brands-on-multiple-graphs/m-p/224032#M76492</guid>
      <dc:creator />
      <dc:date>2010-12-15T17:35:23Z</dc:date>
    </item>
    <item>
      <title>Displaying top brands on multiple graphs</title>
      <link>https://community.qlik.com/t5/QlikView/Displaying-top-brands-on-multiple-graphs/m-p/224033#M76493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Roland,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't thank you enough.&lt;/P&gt;&lt;P&gt;Thank you for your kind help! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eliran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Dec 2010 17:45:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Displaying-top-brands-on-multiple-graphs/m-p/224033#M76493</guid>
      <dc:creator>eliran</dc:creator>
      <dc:date>2010-12-15T17:45:57Z</dc:date>
    </item>
    <item>
      <title>Displaying top brands on multiple graphs</title>
      <link>https://community.qlik.com/t5/QlikView/Displaying-top-brands-on-multiple-graphs/m-p/224034#M76494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ronald what does the 4 and the 2 represent?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jan 2012 00:24:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Displaying-top-brands-on-multiple-graphs/m-p/224034#M76494</guid>
      <dc:creator />
      <dc:date>2012-01-21T00:24:24Z</dc:date>
    </item>
    <item>
      <title>Displaying top brands on multiple graphs</title>
      <link>https://community.qlik.com/t5/QlikView/Displaying-top-brands-on-multiple-graphs/m-p/224035#M76495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Joseph,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what do you mean with "4" and "2"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2012 13:33:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Displaying-top-brands-on-multiple-graphs/m-p/224035#M76495</guid>
      <dc:creator />
      <dc:date>2012-01-24T13:33:42Z</dc:date>
    </item>
  </channel>
</rss>

