<?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: Creating 2 buttons for top 10 and bottom 10 values in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Creating-2-buttons-for-top-10-and-bottom-10-values/m-p/1545396#M39293</link>
    <description>Hi, top10 can be:&lt;BR /&gt;Sum({&amp;lt;DimensionField={"=Rank(Sum(invoiceTotal))&amp;lt;=10"}&amp;gt;} invoiceTotal)&lt;BR /&gt;&lt;BR /&gt;and bottom10:&lt;BR /&gt;Sum({&amp;lt;DimensionField={"=Rank(-Sum(invoiceTotal))&amp;lt;=10"}&amp;gt;} invoiceTotal)&lt;BR /&gt;// just aded the '-' inSum(invoiceTotal)&lt;BR /&gt;&lt;BR /&gt;To work with buttons you can create a Top10 buton with the value '+' and a bottom 10 button with value '-', and use the variable value in expression like this:&lt;BR /&gt;Sum({&amp;lt;DimensionField={"=Rank($(variableName)Sum(invoiceTotal))&amp;lt;=10"}&amp;gt;} invoiceTotal)&lt;BR /&gt;// $(variableName) will be converted to '+' for top 10 and to '-' for bottom 10</description>
    <pubDate>Sat, 16 Feb 2019 11:13:11 GMT</pubDate>
    <dc:creator>rubenmarin</dc:creator>
    <dc:date>2019-02-16T11:13:11Z</dc:date>
    <item>
      <title>Creating 2 buttons for top 10 and bottom 10 values</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-2-buttons-for-top-10-and-bottom-10-values/m-p/1545336#M39291</link>
      <description>&lt;P&gt;I have downloaded the qsVariable extension and have my buttons created for 'Top 10' and 'Bottom 10'. I also have a variable named 'vTopBot' with the value 2 in it so that it is linking to the 2 buttons (1 for Top 10 and 2 for Bottom 10).&amp;nbsp;&lt;/P&gt;&lt;P&gt;In order to get my top 10 and bottom 10 my syntax is as follows:&lt;/P&gt;&lt;P&gt;top 10:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; SUM({&amp;lt;$vTopBot= {"=1, (SUM(invoiceTotal),)&amp;lt;=10"}&amp;gt;}invoiceTotal)&lt;/P&gt;&lt;P&gt;bottom 10:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; SUM({&amp;lt;$vTopBot= {"=1, (-SUM(invoiceTotal),)&amp;lt;=10"}&amp;gt;}invoiceTotal)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am positive syntax is off because I am unable to display any data. Any thoughts or insights would be greatly appreciated. Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture1.PNG" style="width: 246px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/6163i49B7609F46B23DE1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture1.PNG" alt="Capture1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 403px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/6162iC5E087057A252823/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 21:23:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-2-buttons-for-top-10-and-bottom-10-values/m-p/1545336#M39291</guid>
      <dc:creator>dreweezy</dc:creator>
      <dc:date>2024-11-16T21:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: Creating 2 buttons for top 10 and bottom 10 values</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-2-buttons-for-top-10-and-bottom-10-values/m-p/1545396#M39293</link>
      <description>Hi, top10 can be:&lt;BR /&gt;Sum({&amp;lt;DimensionField={"=Rank(Sum(invoiceTotal))&amp;lt;=10"}&amp;gt;} invoiceTotal)&lt;BR /&gt;&lt;BR /&gt;and bottom10:&lt;BR /&gt;Sum({&amp;lt;DimensionField={"=Rank(-Sum(invoiceTotal))&amp;lt;=10"}&amp;gt;} invoiceTotal)&lt;BR /&gt;// just aded the '-' inSum(invoiceTotal)&lt;BR /&gt;&lt;BR /&gt;To work with buttons you can create a Top10 buton with the value '+' and a bottom 10 button with value '-', and use the variable value in expression like this:&lt;BR /&gt;Sum({&amp;lt;DimensionField={"=Rank($(variableName)Sum(invoiceTotal))&amp;lt;=10"}&amp;gt;} invoiceTotal)&lt;BR /&gt;// $(variableName) will be converted to '+' for top 10 and to '-' for bottom 10</description>
      <pubDate>Sat, 16 Feb 2019 11:13:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-2-buttons-for-top-10-and-bottom-10-values/m-p/1545396#M39293</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2019-02-16T11:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: Creating 2 buttons for top 10 and bottom 10 values</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-2-buttons-for-top-10-and-bottom-10-values/m-p/1545990#M39323</link>
      <description>&lt;P&gt;Thank you. My issue is when using the extension for the variable set up I am only prompted with picking only one variable. It seems that I need to set up 2 variables for the top and bot 10. I have attached a png.&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 258px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/6270iADA0BA8CA6C4A5F4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2019 17:00:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-2-buttons-for-top-10-and-bottom-10-values/m-p/1545990#M39323</guid>
      <dc:creator>dreweezy</dc:creator>
      <dc:date>2019-02-18T17:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: Creating 2 buttons for top 10 and bottom 10 values</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-2-buttons-for-top-10-and-bottom-10-values/m-p/1546499#M39341</link>
      <description>&lt;P&gt;I completely understand your syntax. Thanks for that. The issue I am seeing is when I have my extension it only takes in one variable. Is there a way to dynamically let my variable 'vTopBot' know its top 10 and bot 10? Or am I forced to create 2 separate variables and buttons to accommodate this?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 16:44:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-2-buttons-for-top-10-and-bottom-10-values/m-p/1546499#M39341</guid>
      <dc:creator>dreweezy</dc:creator>
      <dc:date>2019-02-19T16:44:09Z</dc:date>
    </item>
  </channel>
</rss>

