<?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: Set Analysis in Aggr function to deactivate filtering in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-Analysis-in-Aggr-function-to-deactivate-filtering/m-p/1746679#M57342</link>
    <description>&lt;P&gt;Thank you Sir, that works.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just want to understand the logic: I use concat to show the values for the calculation&lt;/P&gt;&lt;P&gt;East 2&lt;/P&gt;&lt;P&gt;North 1&lt;/P&gt;&lt;P&gt;West 6&lt;/P&gt;&lt;P&gt;concat(&lt;STRONG&gt;{&amp;lt;Status&amp;gt;}&lt;/STRONG&gt; ( Aggr( count( {&amp;lt;Flag = {1}, Date = {"&amp;gt;=20200901&amp;lt;=20200905"},Status=&amp;gt; } ID),Region)),' + ')&amp;nbsp;&lt;/P&gt;&lt;P&gt;Result: 1 + 2 + 6&lt;/P&gt;&lt;P&gt;-&amp;gt; this does not react to filter in &lt;STRONG&gt;Status&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;concat( ( Aggr(&lt;STRONG&gt;{&amp;lt;Status&amp;gt;}&lt;/STRONG&gt; count( {&amp;lt;Flag = {1}, Date = {"&amp;gt;=20200901&amp;lt;=20200905"},Status=&amp;gt; } ID),Region)),' + ')&lt;/P&gt;&lt;P&gt;-&amp;gt; this reacts to filtering in&amp;nbsp;&lt;STRONG&gt;Status&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you explain please why&amp;nbsp;&lt;STRONG&gt;{&amp;lt;Status&amp;gt;}&lt;/STRONG&gt;&amp;nbsp; should be outside of the &lt;STRONG&gt;aggr&amp;nbsp;&lt;/STRONG&gt;function?&lt;/P&gt;</description>
    <pubDate>Thu, 24 Sep 2020 07:45:51 GMT</pubDate>
    <dc:creator>Eddy</dc:creator>
    <dc:date>2020-09-24T07:45:51Z</dc:date>
    <item>
      <title>Set Analysis in Aggr function to deactivate filtering</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-in-Aggr-function-to-deactivate-filtering/m-p/1746663#M57337</link>
      <description>&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Example QVF attached&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello Experts,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following KPI, in which i want to deactivate filtering in field&amp;nbsp;&lt;STRONG&gt;Status&amp;nbsp;&lt;/STRONG&gt;through set expression:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Aggr(count( {&amp;lt;Flag = {1}, Status =, Date = {"&amp;gt;=20200901&amp;lt;=20200905"}&amp;gt; } ID),Region))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;It does not work, this KPI still reacts to filtering in&amp;nbsp;&lt;STRONG&gt;Status.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This would work, but then I would have to sum up every new region, so that is not what I want:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;count( {&amp;lt;Flag = {1}, Status =, Date = {"&amp;gt;=20200901&amp;lt;=20200905"}, Region = {'West'}&amp;gt; } ID) + &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;count( {&amp;lt;Flag = {1}, Status =, Date = {"&amp;gt;=20200901&amp;lt;=20200905"}, Region = {'East'}&amp;gt; } ID) +&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;count( {&amp;lt;Flag = {1}, Status =, Date = {"&amp;gt;=20200901&amp;lt;=20200905"}, Region = {'North'}&amp;gt; } ID) + &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;count( {&amp;lt;Flag = {1}, Status =, Date = {"&amp;gt;=20200901&amp;lt;=20200905"}, Region = {'South'}&amp;gt; } ID)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Is it possible to use&amp;nbsp;&lt;STRONG&gt;aggr&amp;nbsp;&lt;/STRONG&gt;function and deactivate filtering in set analysis?&amp;nbsp;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My Data:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Load&lt;BR /&gt;*,&lt;BR /&gt;Date as %DateKey;&lt;BR /&gt;Load * Inline [&lt;BR /&gt;Date, Flag, Status, Region, ID&lt;BR /&gt;20200901, 1, A, West, 1&lt;BR /&gt;20200901, 1, A, West, 2&lt;BR /&gt;20200901, 1, A, West, 3&lt;BR /&gt;20200901, 1, A, West, 4&lt;BR /&gt;20200901, 1, C, West, 5&lt;BR /&gt;20200901, 1, C, West, 6&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;20200903, 1, A, East, 7&lt;BR /&gt;20200903, 1, B, East, 8&lt;BR /&gt;20200903, 0, A, East, 9&lt;BR /&gt;20200903, 0, C, East, 10&lt;BR /&gt;&lt;BR /&gt;20200905, 1, A, North, 11&lt;BR /&gt;20200905, 0, A, North, 12&lt;BR /&gt;&lt;BR /&gt;2020910, 1, A, South, 13&lt;BR /&gt;2020910, 1, B, South, 14&lt;BR /&gt;2020910, 0, A, South, 15&lt;BR /&gt;2020910, 1, A, South, 16&lt;BR /&gt;2020910, 1, C, South, 17&lt;BR /&gt;2020910, 1, C, South, 18&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:23:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-in-Aggr-function-to-deactivate-filtering/m-p/1746663#M57337</guid>
      <dc:creator>Eddy</dc:creator>
      <dc:date>2024-11-16T01:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis in Aggr function to deactivate filtering</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-in-Aggr-function-to-deactivate-filtering/m-p/1746664#M57338</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/83794"&gt;@Eddy&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try like:&lt;/P&gt;&lt;P&gt;Sum( &lt;STRONG&gt;{&amp;lt;Status&amp;gt;}&lt;/STRONG&gt; Aggr(count( {&amp;lt;Flag = {1}, Status =, Date = {"&amp;gt;=20200901&amp;lt;=20200905"}&amp;gt; } ID),Region))&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2020 07:13:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-in-Aggr-function-to-deactivate-filtering/m-p/1746664#M57338</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2020-09-24T07:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis in Aggr function to deactivate filtering</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-in-Aggr-function-to-deactivate-filtering/m-p/1746679#M57342</link>
      <description>&lt;P&gt;Thank you Sir, that works.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just want to understand the logic: I use concat to show the values for the calculation&lt;/P&gt;&lt;P&gt;East 2&lt;/P&gt;&lt;P&gt;North 1&lt;/P&gt;&lt;P&gt;West 6&lt;/P&gt;&lt;P&gt;concat(&lt;STRONG&gt;{&amp;lt;Status&amp;gt;}&lt;/STRONG&gt; ( Aggr( count( {&amp;lt;Flag = {1}, Date = {"&amp;gt;=20200901&amp;lt;=20200905"},Status=&amp;gt; } ID),Region)),' + ')&amp;nbsp;&lt;/P&gt;&lt;P&gt;Result: 1 + 2 + 6&lt;/P&gt;&lt;P&gt;-&amp;gt; this does not react to filter in &lt;STRONG&gt;Status&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;concat( ( Aggr(&lt;STRONG&gt;{&amp;lt;Status&amp;gt;}&lt;/STRONG&gt; count( {&amp;lt;Flag = {1}, Date = {"&amp;gt;=20200901&amp;lt;=20200905"},Status=&amp;gt; } ID),Region)),' + ')&lt;/P&gt;&lt;P&gt;-&amp;gt; this reacts to filtering in&amp;nbsp;&lt;STRONG&gt;Status&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you explain please why&amp;nbsp;&lt;STRONG&gt;{&amp;lt;Status&amp;gt;}&lt;/STRONG&gt;&amp;nbsp; should be outside of the &lt;STRONG&gt;aggr&amp;nbsp;&lt;/STRONG&gt;function?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2020 07:45:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-in-Aggr-function-to-deactivate-filtering/m-p/1746679#M57342</guid>
      <dc:creator>Eddy</dc:creator>
      <dc:date>2020-09-24T07:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis in Aggr function to deactivate filtering</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-in-Aggr-function-to-deactivate-filtering/m-p/1746722#M57351</link>
      <description>&lt;P&gt;Because, cancat() is an aggregation function and if you don't put the set modifier in there, for aggr() the values are already reduced.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2020 09:20:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-in-Aggr-function-to-deactivate-filtering/m-p/1746722#M57351</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2020-09-24T09:20:37Z</dc:date>
    </item>
  </channel>
</rss>

