<?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 Pivot Chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pivot-Chart/m-p/301350#M1199443</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello guy,&lt;/P&gt;&lt;P&gt;i have posted a question few days back and did not recived any reply i think its because of the wrong heading which i have given.&lt;/P&gt;&lt;P&gt;i am posting the same the question but with correct header and more details.&lt;/P&gt;&lt;P&gt;i have a pivot chart with two dimensions [Trade Name] and [Sector] and expression which as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM(aggr(if(rank (sum({&amp;lt;Type={"IMPORT"},[Cargo Type]={"Rf"}&amp;gt;} Potential))&amp;lt;=10,sum({&amp;lt;Type={"IMPORT"},[Cargo Type]={"Rf"}&amp;gt;}Potential)),[Trade Name],Sector&lt;/P&gt;&lt;P&gt;))&lt;/P&gt;&lt;P&gt;By using this am geting all the trade names, irrespective of the top 10. below is the screen shot of the result. what i want is only the top 10. trade name.&lt;/P&gt;&lt;H4&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-3323_sourceID:3323" /&gt;&lt;/H4&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i request your assistance.&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 23 Jan 2011 15:31:39 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-01-23T15:31:39Z</dc:date>
    <item>
      <title>Pivot Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Chart/m-p/301350#M1199443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello guy,&lt;/P&gt;&lt;P&gt;i have posted a question few days back and did not recived any reply i think its because of the wrong heading which i have given.&lt;/P&gt;&lt;P&gt;i am posting the same the question but with correct header and more details.&lt;/P&gt;&lt;P&gt;i have a pivot chart with two dimensions [Trade Name] and [Sector] and expression which as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM(aggr(if(rank (sum({&amp;lt;Type={"IMPORT"},[Cargo Type]={"Rf"}&amp;gt;} Potential))&amp;lt;=10,sum({&amp;lt;Type={"IMPORT"},[Cargo Type]={"Rf"}&amp;gt;}Potential)),[Trade Name],Sector&lt;/P&gt;&lt;P&gt;))&lt;/P&gt;&lt;P&gt;By using this am geting all the trade names, irrespective of the top 10. below is the screen shot of the result. what i want is only the top 10. trade name.&lt;/P&gt;&lt;H4&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-3323_sourceID:3323" /&gt;&lt;/H4&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i request your assistance.&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Jan 2011 15:31:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Chart/m-p/301350#M1199443</guid>
      <dc:creator />
      <dc:date>2011-01-23T15:31:39Z</dc:date>
    </item>
    <item>
      <title>AW:Pivot Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Chart/m-p/301351#M1199444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;the SET analysis within your expression filters only the sum() of your expression. So your sum may be as you expect it, but you need this filter in the corresponding dimension as well.&lt;/P&gt;&lt;P&gt;For this I would replace the old Trade-Dim with a &lt;I&gt;calculated Dimension&lt;/I&gt; Trade similar to your expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;if(rank (sum({&amp;lt;Type={"IMPORT"},[Cargo Type]={"Rf"}&amp;gt;} Potential))&amp;lt;=10,[Trade Name])&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Note: I copied parts from your post above, pls check the syntax.&lt;/P&gt;&lt;P&gt;Regards, Roland&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Jan 2011 17:21:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Chart/m-p/301351#M1199444</guid>
      <dc:creator />
      <dc:date>2011-01-23T17:21:40Z</dc:date>
    </item>
    <item>
      <title>AW:Pivot Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Chart/m-p/301352#M1199446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank Roland for the prompt suggetion.&lt;/P&gt;&lt;P&gt;The formula worked, only thing i added was aggr function to that formula.&lt;/P&gt;&lt;P&gt;Now I want to get top ten TRADES and then top five SECTORS for that TRADE.&lt;/P&gt;&lt;P&gt;I tried to put calculated dimension for sector as well but its not giving me the desired output.&lt;/P&gt;&lt;P&gt;below is the screen shot&lt;/P&gt;&lt;P&gt;. &lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/674/4214.Pivot-Table.JPG"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/674/4214.Pivot-Table.JPG" /&gt;&lt;/A&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/674/8030.Pivot-Table.JPG"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jan 2011 09:57:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Chart/m-p/301352#M1199446</guid>
      <dc:creator />
      <dc:date>2011-01-24T09:57:38Z</dc:date>
    </item>
    <item>
      <title>AW:Re: AW:Pivot Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Chart/m-p/301353#M1199449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;suchith711 wrote:The formula worked, only thing i added was aggr function to that formula.&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Nice to hear that it is working. OK, I saw that you are familar with aggr(). &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Now you are not far away from the second expression. Did you try:&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(sum(Potential), TRADE, SECTORS ), 4, 2), TRADE, SECTOR ) &amp;lt;= 5, SECTOR )&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Regards, Roland&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jan 2011 13:55:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Chart/m-p/301353#M1199449</guid>
      <dc:creator />
      <dc:date>2011-01-24T13:55:22Z</dc:date>
    </item>
    <item>
      <title>AW:Re: AW:Pivot Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Chart/m-p/301354#M1199453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Roland,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your support&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I am close to the target. It's frustrating when you see the target and miss it L.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think its little more complex than what I was thought.&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/674/3731.Pivot-Table.JPG"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/674/1581.Pivot-Table.JPG"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/674/1581.Pivot-Table.JPG" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Referring to my attachment, this is the result what I am looking for, but I want EXPR1(I kept your formula) the "expression" to be in dimension instead of sector.&lt;/P&gt;&lt;P&gt;I have "VEGETABLES &amp;amp; FRUITS TRADE" for all SECTOR as 4230, but when I add top five sector then it takes the total of the top 5 sectors so the order is gone. Now "FISH TRADE" is showing as the top TRADE, but actually I want TOP 10 customer irrespective of the SECTOR and from that the TOP 5 sectors.&lt;/P&gt;&lt;P&gt;sorry for troubling you so often,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,Suchith&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jan 2011 10:15:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Chart/m-p/301354#M1199453</guid>
      <dc:creator />
      <dc:date>2011-01-25T10:15:06Z</dc:date>
    </item>
    <item>
      <title>AW:Re: AW:Re: AW:Pivot Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Chart/m-p/301355#M1199456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK Suchith,&lt;/P&gt;&lt;P&gt;I am sure you are &lt;I&gt;very&lt;/I&gt; close. Use it as dimension, replace your sector-dim with the calc dim "sector". Then take a look at your &lt;I&gt;sorting of your Trade-Dim&lt;/I&gt;: Check "expression" on the sort tab and use the filter part of your calculated Trade-dim. It should look similar to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;rank( aggr(sum(Potential), TradeName), 4, 2)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;RR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jan 2011 12:06:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Chart/m-p/301355#M1199456</guid>
      <dc:creator />
      <dc:date>2011-01-25T12:06:02Z</dc:date>
    </item>
    <item>
      <title>AW:Re: AW:Re: AW:Pivot Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Chart/m-p/301356#M1199460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello Roland,&lt;/P&gt;&lt;P&gt;At last with your help i solved the issue. i never knew that even in sort we can put the functions, even though i have seen it expression in the sort tab.&lt;/P&gt;&lt;P&gt;so today i have lerned one more thing in QV.&lt;/P&gt;&lt;P&gt;Thank you very much for the support.&lt;/P&gt;&lt;P&gt;regards,suchith&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jan 2011 13:30:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Chart/m-p/301356#M1199460</guid>
      <dc:creator />
      <dc:date>2011-01-25T13:30:48Z</dc:date>
    </item>
    <item>
      <title>AW:Re: AW:Re: AW:Re: AW:Pivot Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Chart/m-p/301357#M1199463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suchith,&lt;/P&gt;&lt;P&gt;glad to help you. Would you also validate my post above as answer.&lt;/P&gt;&lt;P&gt;RR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jan 2011 15:49:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Chart/m-p/301357#M1199463</guid>
      <dc:creator />
      <dc:date>2011-01-25T15:49:24Z</dc:date>
    </item>
  </channel>
</rss>

