<?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 conditional aggr() function use in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/conditional-aggr-function-use/m-p/853827#M299330</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's my situation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a list box "fieldA"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to implement a conditional aggr() function for this list box, which will be driven if a dimension from fieldB is selected or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically,&amp;nbsp; I'm trying to get a statement working as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=pick(if(not(isnull(only({[State1]} fieldB))),1,0)+1,&lt;/P&gt;&lt;P&gt;aggr(only({&amp;lt;ASSET_CLASS=P({State2}) * P({State3})&amp;gt;} fieldA), fieldA),&amp;nbsp; // performs a union from states 2,3&lt;/P&gt;&lt;P&gt;aggr(only({&amp;lt;ASSET_CLASS=P({State4}) * P({State5)&amp;gt;} fieldA), fieldA))&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&amp;nbsp; // performs a union from states 4,5&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The list box does not seem to be supporting this construct, not sure how I can re-arrange this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gerry.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 May 2015 23:42:51 GMT</pubDate>
    <dc:creator>gerrycastellino</dc:creator>
    <dc:date>2015-05-26T23:42:51Z</dc:date>
    <item>
      <title>conditional aggr() function use</title>
      <link>https://community.qlik.com/t5/QlikView/conditional-aggr-function-use/m-p/853827#M299330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's my situation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a list box "fieldA"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to implement a conditional aggr() function for this list box, which will be driven if a dimension from fieldB is selected or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically,&amp;nbsp; I'm trying to get a statement working as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=pick(if(not(isnull(only({[State1]} fieldB))),1,0)+1,&lt;/P&gt;&lt;P&gt;aggr(only({&amp;lt;ASSET_CLASS=P({State2}) * P({State3})&amp;gt;} fieldA), fieldA),&amp;nbsp; // performs a union from states 2,3&lt;/P&gt;&lt;P&gt;aggr(only({&amp;lt;ASSET_CLASS=P({State4}) * P({State5)&amp;gt;} fieldA), fieldA))&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&amp;nbsp; // performs a union from states 4,5&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The list box does not seem to be supporting this construct, not sure how I can re-arrange this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gerry.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 23:42:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/conditional-aggr-function-use/m-p/853827#M299330</guid>
      <dc:creator>gerrycastellino</dc:creator>
      <dc:date>2015-05-26T23:42:51Z</dc:date>
    </item>
  </channel>
</rss>

