<?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: Top N records in straight and pivot Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Top-N-records-in-straight-and-pivot-Table/m-p/812678#M1033967</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;Set variable in script:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;SET&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #808080; font-size: 8pt;"&gt;&lt;EM&gt;vTopX&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; = 10; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create Slider Object in UI - select Variable vTopX in variables drop down.&lt;/P&gt;&lt;P&gt;Assign 0 in&amp;nbsp; MinValue textbox&lt;/P&gt;&lt;P&gt;Assign 50 in&amp;nbsp; MaxValue textbox&lt;/P&gt;&lt;P&gt;Assign 10 in&amp;nbsp; Static Step textbox&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next create InputBox object&amp;nbsp; - select&amp;nbsp; Variable vTopX&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in straight table add expression :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(aggr(rank(sum(Sales)),Product)&amp;lt;= $(=vTopX)&lt;STRONG&gt;,&lt;/STRONG&gt;Product)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Neetha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Jan 2015 13:16:57 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-01-19T13:16:57Z</dc:date>
    <item>
      <title>Top N records in straight and pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Top-N-records-in-straight-and-pivot-Table/m-p/812675#M1033963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt; I impemented, to control Top N records in straight and pivot table with input box along with that if i want to display all the records.&lt;/P&gt;&lt;P&gt;How can i implement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;MLNR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2015 11:57:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Top-N-records-in-straight-and-pivot-Table/m-p/812675#M1033963</guid>
      <dc:creator />
      <dc:date>2015-01-19T11:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: Top N records in straight and pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Top-N-records-in-straight-and-pivot-Table/m-p/812676#M1033965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Narayanareddy,&lt;/P&gt;&lt;P&gt;Can you post a sample app please and the expected result.&lt;/P&gt;&lt;P&gt;It wil be easier for us to help you.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;François&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2015 12:26:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Top-N-records-in-straight-and-pivot-Table/m-p/812676#M1033965</guid>
      <dc:creator>francoiscave</dc:creator>
      <dc:date>2015-01-19T12:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: Top N records in straight and pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Top-N-records-in-straight-and-pivot-Table/m-p/812677#M1033966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you need to use the rank function, suppose your expression is sum(Sales). so your new expression will be if(rank(sum(Sales)) &amp;lt;=5,sum(Sales)) this will return the top 5, in your case you need to store the value of the input box in a variable and use it in the rank function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2015 12:55:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Top-N-records-in-straight-and-pivot-Table/m-p/812677#M1033966</guid>
      <dc:creator>maleksafa</dc:creator>
      <dc:date>2015-01-19T12:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: Top N records in straight and pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Top-N-records-in-straight-and-pivot-Table/m-p/812678#M1033967</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;Set variable in script:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;SET&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #808080; font-size: 8pt;"&gt;&lt;EM&gt;vTopX&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; = 10; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create Slider Object in UI - select Variable vTopX in variables drop down.&lt;/P&gt;&lt;P&gt;Assign 0 in&amp;nbsp; MinValue textbox&lt;/P&gt;&lt;P&gt;Assign 50 in&amp;nbsp; MaxValue textbox&lt;/P&gt;&lt;P&gt;Assign 10 in&amp;nbsp; Static Step textbox&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next create InputBox object&amp;nbsp; - select&amp;nbsp; Variable vTopX&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in straight table add expression :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(aggr(rank(sum(Sales)),Product)&amp;lt;= $(=vTopX)&lt;STRONG&gt;,&lt;/STRONG&gt;Product)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Neetha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2015 13:16:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Top-N-records-in-straight-and-pivot-Table/m-p/812678#M1033967</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-19T13:16:57Z</dc:date>
    </item>
  </channel>
</rss>

