<?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: Aggr Only not working when filtering a field in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Aggr-Only-not-working-when-filtering-a-field/m-p/1982118#M81046</link>
    <description>&lt;P&gt;Try this&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Aggr({1}Distinct Only({1&amp;lt;Material = {'A'}&amp;gt;} Component), Component).&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 18:32:15 GMT</pubDate>
    <dc:creator>kaushiknsolanki</dc:creator>
    <dc:date>2022-09-16T18:32:15Z</dc:date>
    <item>
      <title>Aggr Only not working when filtering a field</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-Only-not-working-when-filtering-a-field/m-p/1982108#M81045</link>
      <description>&lt;P&gt;Hello everyone, I have a dimension in which I show only the components that are part of the Material A:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;=Aggr(Distinct Only({&amp;lt;Material = {'A'}&amp;gt;} Component), Component).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This works perfectly if I dont filter any other field.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, when I filter another field "[Material Group]" for example, my aggr dimension returns only null values.&lt;/P&gt;
&lt;P&gt;I've already tried these two approaches but they dont work:&lt;/P&gt;
&lt;P&gt;=Aggr(Distinct Only(1{&amp;lt;Material = {'A'}&amp;gt;} Component), Component).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;=Aggr(Distinct Only({&amp;lt;[Material Group]=,Material = {'A'}&amp;gt;} Component), Component).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 17:30:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-Only-not-working-when-filtering-a-field/m-p/1982108#M81045</guid>
      <dc:creator>gitguto</dc:creator>
      <dc:date>2022-09-16T17:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Only not working when filtering a field</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-Only-not-working-when-filtering-a-field/m-p/1982118#M81046</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Aggr({1}Distinct Only({1&amp;lt;Material = {'A'}&amp;gt;} Component), Component).&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 18:32:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-Only-not-working-when-filtering-a-field/m-p/1982118#M81046</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2022-09-16T18:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Only not working when filtering a field</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-Only-not-working-when-filtering-a-field/m-p/1982120#M81047</link>
      <description>&lt;P&gt;Thanks for your reply, it didn't work. It also returns null values.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 18:40:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-Only-not-working-when-filtering-a-field/m-p/1982120#M81047</guid>
      <dc:creator>gitguto</dc:creator>
      <dc:date>2022-09-16T18:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Only not working when filtering a field</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-Only-not-working-when-filtering-a-field/m-p/1982172#M81049</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Try these expressions&lt;/P&gt;
&lt;P&gt;Aggr(Distinct Only(&lt;STRONG&gt;Total&lt;/STRONG&gt;{&amp;lt;Material = {'A'}&amp;gt;} Component), Component)&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Maxstring({&amp;lt;[Material Group]=&amp;gt;}&lt;/STRONG&gt; Aggr(Distinct Only({&amp;lt;[Material Group]=,Material = {'A'}&amp;gt;} Component), Component)&lt;STRONG&gt;) &lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Sep 2022 08:04:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-Only-not-working-when-filtering-a-field/m-p/1982172#M81049</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2022-09-17T08:04:58Z</dc:date>
    </item>
  </channel>
</rss>

