<?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: Selection based on aggregation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Selection-based-on-aggregation/m-p/1436946#M431574</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you post a sample app?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Dec 2017 13:15:34 GMT</pubDate>
    <dc:creator>vinieme12</dc:creator>
    <dc:date>2017-12-20T13:15:34Z</dc:date>
    <item>
      <title>Selection based on aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/Selection-based-on-aggregation/m-p/1436945#M431573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello community, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a pivot table that is of the following structure: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;field1&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;field2&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;field3&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;var1&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;var2&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;var3&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2017&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;countryA&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;city&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0.05&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;210&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;What I want is to select all countries from the dataset that have a variable &lt;STRONG&gt;[var3]&lt;/STRONG&gt; value as "1" by clicking on a button. I have tried to do the following in the search string: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;=if (Aggr($(var3),field2)=1, field2)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, it is not returning anything. Of course, I performed concatination with "|". Does anyone has an idea on how to perform this? &lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2017 13:07:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selection-based-on-aggregation/m-p/1436945#M431573</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-20T13:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: Selection based on aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/Selection-based-on-aggregation/m-p/1436946#M431574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you post a sample app?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2017 13:15:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selection-based-on-aggregation/m-p/1436946#M431574</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2017-12-20T13:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: Selection based on aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/Selection-based-on-aggregation/m-p/1436947#M431575</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;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Create a variable &lt;STRONG&gt;vTest&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Associate the variable with an action via a button or textobject: Set the variable to 1 for example when you click on the button.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;create a listbox with an expression like this:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =if(vTest=1,if(var3=1, field2),field2)&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2017 13:16:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selection-based-on-aggregation/m-p/1436947#M431575</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2017-12-20T13:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: Selection based on aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/Selection-based-on-aggregation/m-p/1436948#M431576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='('&amp;amp;chr(34)&amp;amp;Concat(Distinct(&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if (Aggr($(var3),field2)=1, field2)&lt;/STRONG&gt;),chr(34)&amp;amp;'|'&amp;amp;chr(34))&amp;amp;chr(34)&amp;amp;')'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2017 13:30:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selection-based-on-aggregation/m-p/1436948#M431576</guid>
      <dc:creator>prat1507</dc:creator>
      <dc:date>2017-12-20T13:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: Selection based on aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/Selection-based-on-aggregation/m-p/1436949#M431577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've done the same, apart from the "distinct", but no results. Only &lt;STRONG&gt;("")&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2017 13:41:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selection-based-on-aggregation/m-p/1436949#M431577</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-20T13:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: Selection based on aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/Selection-based-on-aggregation/m-p/1436950#M431578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Paste a text box and check what are you getting, please ping me what you're getting.&lt;/P&gt;&lt;P&gt;It should be like ("Value 1"|"Value2"|"Value 3")..... something like this!!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Pratyush&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2017 13:45:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selection-based-on-aggregation/m-p/1436950#M431578</guid>
      <dc:creator>prat1507</dc:creator>
      <dc:date>2017-12-20T13:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: Selection based on aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/Selection-based-on-aggregation/m-p/1436951#M431579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I realized that I should get something in the mentioned form, but as a result I am getting ("") .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2017 13:47:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selection-based-on-aggregation/m-p/1436951#M431579</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-20T13:47:28Z</dc:date>
    </item>
  </channel>
</rss>

