<?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 Dynamic Button to Select Top n Values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamic-Button-to-Select-Top-n-Values/m-p/322924#M498863</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to have a button that when pressed selects the top n values of a field but I also would really like a user to be able to input how many values and which of the fields (Cost, Revenue, Margin) it selects over. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the button options I have tried 'Select in Field' but don't know what to put for the Search String. I also don't know how to incorporate inputs into a buttons functionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Aug 2011 17:07:02 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-08-01T17:07:02Z</dc:date>
    <item>
      <title>Dynamic Button to Select Top n Values</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Button-to-Select-Top-n-Values/m-p/322924#M498863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to have a button that when pressed selects the top n values of a field but I also would really like a user to be able to input how many values and which of the fields (Cost, Revenue, Margin) it selects over. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the button options I have tried 'Select in Field' but don't know what to put for the Search String. I also don't know how to incorporate inputs into a buttons functionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2011 17:07:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Button-to-Select-Top-n-Values/m-p/322924#M498863</guid>
      <dc:creator />
      <dc:date>2011-08-01T17:07:02Z</dc:date>
    </item>
    <item>
      <title>Dynamic Button to Select Top n Values</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Button-to-Select-Top-n-Values/m-p/322925#M498864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can't you just use a straight table, you can set how many rows are seen by changing "max number" in the presentation tab, you can use a variable to set that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2011 01:13:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Button-to-Select-Top-n-Values/m-p/322925#M498864</guid>
      <dc:creator>danielrozental</dc:creator>
      <dc:date>2011-08-02T01:13:53Z</dc:date>
    </item>
    <item>
      <title>Dynamic Button to Select Top n Values</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Button-to-Select-Top-n-Values/m-p/322926#M498865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the above doesn't help you can try something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;="=rank(aggr(sum(Sales),Customer))&amp;lt;=" &amp;amp; variableN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2011 01:24:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Button-to-Select-Top-n-Values/m-p/322926#M498865</guid>
      <dc:creator>danielrozental</dc:creator>
      <dc:date>2011-08-02T01:24:12Z</dc:date>
    </item>
    <item>
      <title>Dynamic Button to Select Top n Values</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Button-to-Select-Top-n-Values/m-p/322927#M498866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I could have a separate table where users could select the contents but I'd rather have a shiny button on each page of graphs that selects the best and worst. I tried =rank(aggr(sum(Cost), Customer))&amp;lt;=10 in the search string but it doesn't seem to do anything.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2011 08:09:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Button-to-Select-Top-n-Values/m-p/322927#M498866</guid>
      <dc:creator />
      <dc:date>2011-08-02T08:09:19Z</dc:date>
    </item>
    <item>
      <title>Dynamic Button to Select Top n Values</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Button-to-Select-Top-n-Values/m-p/322928#M498867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use Input Field to set a variable (vLimit in my example).&lt;/P&gt;&lt;P&gt;Use that variable in the Presentation-&amp;gt;Max Number setting of your chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="maxnum.JPG" class="jive-image" src="https://community.qlik.com/legacyfs/online/6257_maxnum.JPG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2011 08:23:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Button-to-Select-Top-n-Values/m-p/322928#M498867</guid>
      <dc:creator>gandalfgray</dc:creator>
      <dc:date>2011-08-02T08:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Button to Select Top n Values</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Button-to-Select-Top-n-Values/m-p/322929#M498868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; hei &lt;/P&gt;&lt;P&gt;attach is an example&lt;/P&gt;&lt;P&gt;maybe it can help you&lt;/P&gt;&lt;P&gt;what the user will have to do is select the measure for filter&lt;/P&gt;&lt;P&gt;number of top Customers&lt;/P&gt;&lt;P&gt;and the table will filter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2011 08:40:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Button-to-Select-Top-n-Values/m-p/322929#M498868</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2011-08-02T08:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Button to Select Top n Values</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Button-to-Select-Top-n-Values/m-p/322930#M498869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I only have personal edition so can't open other people's files. Is it possible for you to explain what you've done with some code?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2011 10:20:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Button-to-Select-Top-n-Values/m-p/322930#M498869</guid>
      <dc:creator />
      <dc:date>2011-08-02T10:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Button to Select Top n Values</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Button-to-Select-Top-n-Values/m-p/322931#M498870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; ok let try&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;attach is an excel file which is my sorce data&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;my script looks like this:&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;DIV&gt;Data:&lt;/DIV&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CustomerID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CustomerName&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Sales&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Cost&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Profit&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;C&gt;&lt;BR /&gt; (&lt;/C&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ooxml&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;embedded&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;labels&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;table&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;is&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; גיליון1);&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;INLINE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt; Meas&lt;BR /&gt; sum(Sales)&lt;BR /&gt; sum(Cost)&lt;BR /&gt; sum(Profit)&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;then i have this objects in the appliction:&lt;/DIV&gt;&lt;DIV&gt;list box of the filed Meas&lt;/DIV&gt;&lt;DIV&gt;input box for a Varaible with the name vNum&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Chart of Stright Table with &lt;/DIV&gt;&lt;DIV&gt;dimension: &lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;rank&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(=only(Meas))&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt; &lt;/EM&gt;&lt;SPAN style="color: #808080; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;lt;=vNum,CustomerName),CustomerName) &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;with the box: Supress when null is values - Checked&lt;/DIV&gt;&lt;DIV&gt;expressions:&lt;/DIV&gt;&lt;DIV&gt;sum(sales)&lt;/DIV&gt;&lt;DIV&gt;sum(profit)&lt;/DIV&gt;&lt;DIV&gt;sum(cost)&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;try to bulid a qvw file like that and then follow what i wrote in the previous post&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2011 10:53:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Button-to-Select-Top-n-Values/m-p/322931#M498870</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2011-08-02T10:53:35Z</dc:date>
    </item>
    <item>
      <title>Dynamic Button to Select Top n Values</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Button-to-Select-Top-n-Values/m-p/322932#M498871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; hello ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take i inline like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load * Inline [&lt;/P&gt;&lt;P&gt;ColName&lt;/P&gt;&lt;P&gt;Top1&lt;/P&gt;&lt;P&gt;Top2&lt;/P&gt;&lt;P&gt;Top3&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;Top N&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in chart u want n max &lt;/P&gt;&lt;P&gt;go to presentation and in max number shown&amp;nbsp; option write code below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(ColName='Top1',1,if(ColName='Top2',2,...........))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it will work for you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Sunil Chauhan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2011 10:58:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Button-to-Select-Top-n-Values/m-p/322932#M498871</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2011-08-02T10:58:24Z</dc:date>
    </item>
    <item>
      <title>Dynamic Button to Select Top n Values</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Button-to-Select-Top-n-Values/m-p/322933#M498872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use a Slider control to let the user select a value into a variable.&amp;nbsp; Then in the Presentation tab, in the Max visible number, reference the variable used in the Slider control.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2011 11:42:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Button-to-Select-Top-n-Values/m-p/322933#M498872</guid>
      <dc:creator />
      <dc:date>2011-08-02T11:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Button to Select Top n Values</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Button-to-Select-Top-n-Values/m-p/322934#M498873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='(' &amp;amp; CONCAT(IF(AGGR(RANK(Sum(Sales)),Customer) &amp;lt;= 5,Customer),'|') &amp;amp; ')'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and you could create a variable in place of the &amp;lt;=5 so the user can dynamically select the Top N values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will Select the Top 5 Customer based on Sales&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2015 14:17:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Button-to-Select-Top-n-Values/m-p/322934#M498873</guid>
      <dc:creator>rustyfishbones</dc:creator>
      <dc:date>2015-02-16T14:17:19Z</dc:date>
    </item>
  </channel>
</rss>

