<?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: Pivot table top 10 results in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pivot-table-top-10-results/m-p/653753#M238931</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I am exploring the expressions you guys suggested.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Meanwhile here is the sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that if you change something and send the file back to me, I only have the personal edition, so I won't be able to open a file saved with the professional edition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the support.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Jul 2014 10:19:12 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-07-25T10:19:12Z</dc:date>
    <item>
      <title>Pivot table top 10 results</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-top-10-results/m-p/653749#M238927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I am trying to show only the top 10 results on a pivot table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The file I have in attachment has an example of my entire data and I want to show what is only painted in green. This corresponds to the top 10 descriptions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have already used the expression: aggr(if(rank(count(Column 1))Column 3),Column 3) wich is often used to achieve this kind of results, but I cannot have the top 10...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I doing something wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2014 09:33:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-top-10-results/m-p/653749#M238927</guid>
      <dc:creator />
      <dc:date>2014-07-25T09:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table top 10 results</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-top-10-results/m-p/653750#M238928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you also provide sample data please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2014 09:34:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-top-10-results/m-p/653750#M238928</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-07-25T09:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table top 10 results</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-top-10-results/m-p/653751#M238929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;Category= {"=Rank(Aggr(Sum(Value),Category))&amp;lt;= 10"}&amp;gt;} Value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Aviral Nag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2014 09:39:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-top-10-results/m-p/653751#M238929</guid>
      <dc:creator>aveeeeeee7en</dc:creator>
      <dc:date>2014-07-25T09:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table top 10 results</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-top-10-results/m-p/653752#M238930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ivo,&lt;/P&gt;&lt;P&gt;using your column numbers from that excel, think the below will work for you&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;[Column 3]={"=rank(sum([Column 4]))&amp;lt;= 10"}&amp;gt;}&amp;nbsp; [Column 4])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope that helps&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2014 09:42:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-top-10-results/m-p/653752#M238930</guid>
      <dc:creator />
      <dc:date>2014-07-25T09:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table top 10 results</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-top-10-results/m-p/653753#M238931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I am exploring the expressions you guys suggested.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Meanwhile here is the sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that if you change something and send the file back to me, I only have the personal edition, so I won't be able to open a file saved with the professional edition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the support.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2014 10:19:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-top-10-results/m-p/653753#M238931</guid>
      <dc:creator />
      <dc:date>2014-07-25T10:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table top 10 results</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-top-10-results/m-p/653754#M238932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From that example then use&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Column_2={"=rank(sum(Column_3))&amp;lt;= 10"}&amp;gt;}&amp;nbsp; Column_3)&lt;/P&gt;&lt;P&gt;in your expression and move column 4 to a dimension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2014 10:25:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-top-10-results/m-p/653754#M238932</guid>
      <dc:creator />
      <dc:date>2014-07-25T10:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table top 10 results</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-top-10-results/m-p/653755#M238933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With this expression I get a // Error in calculated dimension&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2014 10:27:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-top-10-results/m-p/653755#M238933</guid>
      <dc:creator />
      <dc:date>2014-07-25T10:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table top 10 results</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-top-10-results/m-p/653756#M238934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also the expression // Error in calculated dimension, on column 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't move column 4 to dimension because I need an expression for the table to show results&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2014 10:30:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-top-10-results/m-p/653756#M238934</guid>
      <dc:creator />
      <dc:date>2014-07-25T10:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Pivot table top 10 results</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-top-10-results/m-p/653757#M238935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this Expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Column_2&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=Rank(Aggr(Sum(Column_3),Column_2))&amp;lt;= 10"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Column_3&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 8pt;"&gt;Also, see the Attachement.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Hope, it helps you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Aviral Nag&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2014 10:35:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-top-10-results/m-p/653757#M238935</guid>
      <dc:creator>aveeeeeee7en</dc:creator>
      <dc:date>2014-07-25T10:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table top 10 results</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-top-10-results/m-p/653758#M238936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ivo,&lt;/P&gt;&lt;P&gt;I just used your example and got no such error.&lt;/P&gt;&lt;P&gt;You will still have an expression so will get results, all I have done is move the expression for column 4 to a dimension and replaced with my new expression.&lt;/P&gt;&lt;P&gt;Please see below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jiveImage" src="https://community.qlik.com/legacyfs/online/63140_pastedImage_0.png" style="width: 620px; height: 417px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2014 10:37:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-top-10-results/m-p/653758#M238936</guid>
      <dc:creator />
      <dc:date>2014-07-25T10:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table top 10 results</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-top-10-results/m-p/653759#M238937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still the same result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I can not open the file because I only have personal edition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2014 10:38:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-top-10-results/m-p/653759#M238937</guid>
      <dc:creator />
      <dc:date>2014-07-25T10:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table top 10 results</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-top-10-results/m-p/653760#M238938</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;I did not understood you properly and was defining a dimension with the expression you gave me instead of a expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I got to the same result as you show on the image, but there is still a problem for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Description A has 25 different results (from column 3) that I need to show, and with this expression it only shows 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is also shown on your image.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't understand why.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2014 12:04:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-top-10-results/m-p/653760#M238938</guid>
      <dc:creator />
      <dc:date>2014-07-25T12:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table top 10 results</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-top-10-results/m-p/653761#M238939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see, the sum is an aggregation function so it is in effect rolling up all the entries under column_3 and displaying the aggregated answer across your dimensions.&lt;/P&gt;&lt;P&gt;If you need this to show row by row like that, you can add a new more granular field to your script, for instance&lt;/P&gt;&lt;P&gt;rowno() as Row_No&lt;/P&gt;&lt;P&gt;and then add that as a dimension, it will then give you the result across this new dimension i.e your 25 rows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope that helps&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2014 12:49:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-top-10-results/m-p/653761#M238939</guid>
      <dc:creator />
      <dc:date>2014-07-25T12:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table top 10 results</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-top-10-results/m-p/653762#M238940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joseph,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't understand how the rowno function works. I will try to explore this but I don't know if it will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2014 13:33:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-top-10-results/m-p/653762#M238940</guid>
      <dc:creator />
      <dc:date>2014-07-25T13:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table top 10 results</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-top-10-results/m-p/653763#M238941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look in the QV manual is a good start, it will help explain what the function does.&lt;/P&gt;&lt;P&gt;Basically it will number each row of your data as it is loaded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From your example change the script to the below and then add that new field as a dimension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Column_1, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Column_2,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Column_3,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Column_4,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RowNo() as Row_No&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet10);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2014 13:40:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-top-10-results/m-p/653763#M238941</guid>
      <dc:creator />
      <dc:date>2014-07-25T13:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Pivot table top 10 results</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-top-10-results/m-p/653764#M238942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well this is actually a nice trick and it works, but now the value of rowno are showing. Is there a way of hiding this column?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2014 14:12:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-top-10-results/m-p/653764#M238942</guid>
      <dc:creator />
      <dc:date>2014-07-25T14:12:45Z</dc:date>
    </item>
  </channel>
</rss>

