<?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: Limit the rows in Pivot table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Limit-the-rows-in-Pivot-table/m-p/1231961#M850973</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;a simple way is to do a filter on your pivot table first. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just like how you select a item inside a listbox and your pivot table gets filtered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we can do simulate the filter on your pivot table elegantly by going to document properties-&amp;gt;trigger tab -&amp;gt; document trigger event -&amp;gt; select onopen then add action -&amp;gt; action type is selection-&amp;gt; selection in field and add in your condition &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 05 Mar 2017 07:23:59 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-03-05T07:23:59Z</dc:date>
    <item>
      <title>Limit the rows in Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Limit-the-rows-in-Pivot-table/m-p/1231959#M850971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing one performance issue in Pivot table:&lt;/P&gt;&lt;P&gt;I am having around 85000 rows in my pivot table where i am using few dimensions and writing 2-3 expressions also but performance is very slow. Can we restrict pivot table data like if i declare a variable vChartLimit and giving vChartLimit=1000 then my pivot table should give me 1000 rows only(You can say top 1000 rows) &lt;/P&gt;&lt;P&gt;OR &lt;/P&gt;&lt;P&gt;Is there any way like putting any condition i can solve this problem??&lt;/P&gt;&lt;P&gt;In straight table we can go in property and can select max rows= 100 or 1000 can limit the data but in pivot table i don't know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Pushkar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limit-the-rows-in-Pivot-table/m-p/1231959#M850971</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Limit the rows in Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Limit-the-rows-in-Pivot-table/m-p/1231960#M850972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pushkar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Probably will use all table expressions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(RowNo() &amp;lt; 1000, [Your Expression]),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where 1000 - the number of rows to display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Andrey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Mar 2017 04:42:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limit-the-rows-in-Pivot-table/m-p/1231960#M850972</guid>
      <dc:creator>ahaahaaha</dc:creator>
      <dc:date>2017-03-05T04:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: Limit the rows in Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Limit-the-rows-in-Pivot-table/m-p/1231961#M850973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;a simple way is to do a filter on your pivot table first. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just like how you select a item inside a listbox and your pivot table gets filtered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we can do simulate the filter on your pivot table elegantly by going to document properties-&amp;gt;trigger tab -&amp;gt; document trigger event -&amp;gt; select onopen then add action -&amp;gt; action type is selection-&amp;gt; selection in field and add in your condition &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Mar 2017 07:23:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limit-the-rows-in-Pivot-table/m-p/1231961#M850973</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-05T07:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: Limit the rows in Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Limit-the-rows-in-Pivot-table/m-p/1231962#M850974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pushkar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is your issue?&lt;STRONG&gt; Performance issue&lt;/STRONG&gt; or &lt;STRONG&gt;Data Restriction&lt;/STRONG&gt; issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is &lt;STRONG&gt;Performance:-&lt;/STRONG&gt;Even though you restrict the data &lt;SPAN style="font-size: 13.3333px;"&gt;(1000) &lt;/SPAN&gt; in Pivot table&lt;STRONG&gt; it won't increase your performance&lt;/STRONG&gt; so you need to&lt;STRONG&gt; do your calculation at script level or in Variable&lt;/STRONG&gt; and call those field/Variable directly in Expression so performance will increase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is &lt;STRONG&gt;Data Restriction&lt;/STRONG&gt;:- &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Based on what criteria you want to filter the rows to 10? Largest Sales?&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;You could create a key in your script like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD Format,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; StoreName,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Reason,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Item,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AutonumberHash256(Format, StoreName,Reason, Item) as PivotKey,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Then, in your chart, modify your sales expression to&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Sum( {&amp;lt;PivotKey = {"=Rank(Sum(Sales))&amp;lt;=10"}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Maybe have a look also into:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A class="jive-link-external-small" href="http://www.naturalsynergies.com/q-tip-5-show-top-performers-common-but-not-too-trivial/" rel="nofollow" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;" target="_blank"&gt;QlikView Blog Q-Tip #5 – Show Top Performers. Common but not too trivial. | Natural Synergies&lt;/A&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (or)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;You have to use rank() function possibly in combination with aggr(). Somehting like:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Aggr( If( Rank(Sum(Sales))&amp;lt;1001, Country), Country)&amp;nbsp; , in calculated dimension. Then check 'Supress When Value is Null' in the dimension tab.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If you feel you got solution ,please close the Thread by Clicking "&lt;STRONG&gt;Correct Answer&lt;/STRONG&gt;"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Mar 2017 07:31:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limit-the-rows-in-Pivot-table/m-p/1231962#M850974</guid>
      <dc:creator>ramasaisaksoft</dc:creator>
      <dc:date>2017-03-06T07:31:18Z</dc:date>
    </item>
  </channel>
</rss>

