<?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 Using qsVariable extension to get Top 10 and Bottom 10 values of a bar chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-qsVariable-extension-to-get-Top-10-and-Bottom-10-values-of/m-p/1546518#M746245</link>
    <description>&lt;P&gt;Hi - wondering if anyone have any thoughts on the approach of my problem.&lt;/P&gt;&lt;P&gt;I want to have my bar chart render on a click of a button to show me 'Top 10' and 'Bottom 10' values based on my 'sales' and 'account' columns.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture1.PNG" style="width: 431px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/6346iD38164DD4C43FDF0/image-dimensions/431x270?v=v2" width="431" height="270" role="button" title="Capture1.PNG" alt="Capture1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have my syntax ready and believe they should be placed in the actual button section:&lt;/P&gt;&lt;P&gt;Top 10 =&amp;nbsp;&lt;BR /&gt;sum({&amp;lt;Account={"=Rank(Sum(Sales))&amp;lt;=10"}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;Bottom 10 =&amp;nbsp;&lt;BR /&gt;SUM({&amp;lt;Account = {"=Rank(-SUM(Sales)&amp;lt;=10"}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture2.PNG" style="width: 185px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/6347iE9278B25EAD5D720/image-dimensions/185x346?v=v2" width="185" height="346" role="button" title="Capture2.PNG" alt="Capture2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My confusion - on the below image, I am not sure how this linkage is created given that I can only tie this qsVariable extension to one variable (vTopBot).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture3.PNG" style="width: 137px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/6348iC67F4D9E60F212FA/image-dimensions/137x268?v=v2" width="137" height="268" role="button" title="Capture3.PNG" alt="Capture3.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am also unsure what I am supposed to define within my given variable in order to produce the top and bot 10 values for my chart. Any help would be greatly appreciated&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 21:22:52 GMT</pubDate>
    <dc:creator>dreweezy</dc:creator>
    <dc:date>2024-11-16T21:22:52Z</dc:date>
    <item>
      <title>Using qsVariable extension to get Top 10 and Bottom 10 values of a bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/Using-qsVariable-extension-to-get-Top-10-and-Bottom-10-values-of/m-p/1546518#M746245</link>
      <description>&lt;P&gt;Hi - wondering if anyone have any thoughts on the approach of my problem.&lt;/P&gt;&lt;P&gt;I want to have my bar chart render on a click of a button to show me 'Top 10' and 'Bottom 10' values based on my 'sales' and 'account' columns.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture1.PNG" style="width: 431px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/6346iD38164DD4C43FDF0/image-dimensions/431x270?v=v2" width="431" height="270" role="button" title="Capture1.PNG" alt="Capture1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have my syntax ready and believe they should be placed in the actual button section:&lt;/P&gt;&lt;P&gt;Top 10 =&amp;nbsp;&lt;BR /&gt;sum({&amp;lt;Account={"=Rank(Sum(Sales))&amp;lt;=10"}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;Bottom 10 =&amp;nbsp;&lt;BR /&gt;SUM({&amp;lt;Account = {"=Rank(-SUM(Sales)&amp;lt;=10"}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture2.PNG" style="width: 185px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/6347iE9278B25EAD5D720/image-dimensions/185x346?v=v2" width="185" height="346" role="button" title="Capture2.PNG" alt="Capture2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My confusion - on the below image, I am not sure how this linkage is created given that I can only tie this qsVariable extension to one variable (vTopBot).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture3.PNG" style="width: 137px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/6348iC67F4D9E60F212FA/image-dimensions/137x268?v=v2" width="137" height="268" role="button" title="Capture3.PNG" alt="Capture3.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am also unsure what I am supposed to define within my given variable in order to produce the top and bot 10 values for my chart. Any help would be greatly appreciated&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 21:22:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-qsVariable-extension-to-get-Top-10-and-Bottom-10-values-of/m-p/1546518#M746245</guid>
      <dc:creator>dreweezy</dc:creator>
      <dc:date>2024-11-16T21:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: Using qsVariable extension to get Top 10 and Bottom 10 values of a bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/Using-qsVariable-extension-to-get-Top-10-and-Bottom-10-values-of/m-p/1546551#M746246</link>
      <description>&lt;P&gt;In your bar chart, make your Measure&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;=$(vTopBot)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;In your Top10 button, assign the value (note the single quotes)&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;='sum({&amp;lt;Account={"=Rank(Sum(Sales))&amp;lt;=10"}&amp;gt;} Sales)'&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;to the vTopBot variable.&amp;nbsp; Do the same for the Bottom 10 button.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You can also get clever and make your chart measure:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;=sum({&amp;lt;Account={"=$(vTopBot)Rank(Sum(Sales))&amp;lt;=10"}&amp;gt;} Sales)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and use the buttons to assign '' or '-' to the vTopBot.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-Rob&lt;BR /&gt;&lt;A href="http://masterssummit.com" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://qlikviewcookbook.com" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.easyqlik.com" target="_blank"&gt;http://www.easyqlik.com&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 19:22:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-qsVariable-extension-to-get-Top-10-and-Bottom-10-values-of/m-p/1546551#M746246</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2019-02-19T19:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: Using qsVariable extension to get Top 10 and Bottom 10 values of a bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/Using-qsVariable-extension-to-get-Top-10-and-Bottom-10-values-of/m-p/1547619#M746247</link>
      <description>&lt;P&gt;Not sure why I wasn't getting any notifications so I have asked this question again thinking my post never went through. I followed your advice but am getting the same values.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture1.PNG" style="width: 413px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/6524i19DE90CFD10543A7/image-dimensions/413x205?v=v2" width="413" height="205" 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="Capture22.PNG" style="width: 215px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/6525iF902F41EF1D86AD0/image-dimensions/215x338?v=v2" width="215" height="338" role="button" title="Capture22.PNG" alt="Capture22.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="123.PNG" style="width: 229px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/6527iE9AA636ADC52AFBA/image-dimensions/229x419?v=v2" width="229" height="419" role="button" title="123.PNG" alt="123.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I placed the variable $(vTopBot) into the measure of the bar chart, but still having trouble getting results as expected. Here is a snip of what my vTopBot variable is defined as which I believe may be causing the problem?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="6223.PNG" style="width: 426px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/6528i1055B3550621C8C7/image-dimensions/426x191?v=v2" width="426" height="191" role="button" title="6223.PNG" alt="6223.PNG" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2019 15:46:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-qsVariable-extension-to-get-Top-10-and-Bottom-10-values-of/m-p/1547619#M746247</guid>
      <dc:creator>dreweezy</dc:creator>
      <dc:date>2019-02-21T15:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using qsVariable extension to get Top 10 and Bottom 10 values of a bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/Using-qsVariable-extension-to-get-Top-10-and-Bottom-10-values-of/m-p/1547760#M746248</link>
      <description>&lt;P&gt;I think you failed to put the single quotes around the values?&lt;/P&gt;&lt;P&gt;Note that the buttons will not change the variable values, but it will not change the visible value in the variable overview dialog.&lt;/P&gt;&lt;P&gt;-Rob&lt;BR /&gt;&lt;A href="http://masterssummit.com" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://qlikviewcookbook.com" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.easyqlik.com" target="_blank"&gt;http://www.easyqlik.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2019 22:12:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-qsVariable-extension-to-get-Top-10-and-Bottom-10-values-of/m-p/1547760#M746248</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2019-02-21T22:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: Using qsVariable extension to get Top 10 and Bottom 10 values of a bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/Using-qsVariable-extension-to-get-Top-10-and-Bottom-10-values-of/m-p/1600183#M746249</link>
      <description>Hello Everyone! I have a similar problem. i am using qsVariable input. i have a field name Amount in USD, my question how would i use the &amp;lt; or &amp;gt; plus an input value to display the corresponding correct data. thank you advance.</description>
      <pubDate>Tue, 09 Jul 2019 04:24:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-qsVariable-extension-to-get-Top-10-and-Bottom-10-values-of/m-p/1600183#M746249</guid>
      <dc:creator>mbjallow6</dc:creator>
      <dc:date>2019-07-09T04:24:54Z</dc:date>
    </item>
  </channel>
</rss>

