<?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 Selection based on formula in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Selection-based-on-formula/m-p/341855#M126257</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;I want to make a button to select the top10 products, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the top10 products are defined with the next condition: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RANK(Sum(num_purchases))&amp;lt;=10,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I do it???&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;&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 May 2012 14:46:44 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-05-08T14:46:44Z</dc:date>
    <item>
      <title>Selection based on formula</title>
      <link>https://community.qlik.com/t5/QlikView/Selection-based-on-formula/m-p/341855#M126257</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;I want to make a button to select the top10 products, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the top10 products are defined with the next condition: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RANK(Sum(num_purchases))&amp;lt;=10,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I do it???&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;&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2012 14:46:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selection-based-on-formula/m-p/341855#M126257</guid>
      <dc:creator />
      <dc:date>2012-05-08T14:46:44Z</dc:date>
    </item>
    <item>
      <title>Selection based on formula</title>
      <link>https://community.qlik.com/t5/QlikView/Selection-based-on-formula/m-p/341856#M126258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try to use this code within the search expression of your button (take care of the single quotes):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='=(if(rank(Sum(num_purchases), Product) &amp;lt;= 10, Product))'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HtH&lt;/P&gt;&lt;P&gt;Roland&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2012 17:25:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selection-based-on-formula/m-p/341856#M126258</guid>
      <dc:creator />
      <dc:date>2012-05-08T17:25:40Z</dc:date>
    </item>
    <item>
      <title>Selection based on formula</title>
      <link>https://community.qlik.com/t5/QlikView/Selection-based-on-formula/m-p/341857#M126259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Two buttons, first calculate complete table, second calculate Top 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to create 1 variable who change his value when press the button&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Button 1:&lt;/P&gt;&lt;P&gt;vTop10 = Product&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Button 2:&lt;/P&gt;&lt;P&gt;vTop10 = If(Rank(Sum(num_purchases), Product) &amp;lt;= 10, Product)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your graphic, need to put a calculated dimension like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= $(vTop10)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this, i used sometimes and work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.-&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2012 19:24:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selection-based-on-formula/m-p/341857#M126259</guid>
      <dc:creator />
      <dc:date>2012-05-08T19:24:16Z</dc:date>
    </item>
  </channel>
</rss>

