<?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: sum() ignoring filters in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/sum-ignoring-filters/m-p/1803071#M65155</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/112"&gt;@agigliotti&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your quick reply!&lt;/P&gt;&lt;P&gt;So my possible filters are: Article Code, RSM and Year. I would like to use these three filters, but in the KPI only show the sum of Sales from the filtered RSM and Year, therefore ignoring the filter from the Article Code.&lt;/P&gt;&lt;P&gt;At the moment, my result takes the sum of Sales of the filtered Article Code, RSM and Year.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;</description>
    <pubDate>Tue, 27 Apr 2021 11:06:43 GMT</pubDate>
    <dc:creator>charlie2</dc:creator>
    <dc:date>2021-04-27T11:06:43Z</dc:date>
    <item>
      <title>sum() ignoring filters</title>
      <link>https://community.qlik.com/t5/App-Development/sum-ignoring-filters/m-p/1802985#M65144</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a data set with sales per sales rep (RSM), year, and article code, in one app.&lt;/P&gt;&lt;P&gt;I would like to set up a KPI which shows the total sales of a particular RSM and a particular year. Apparently, it seems an easy job: filter by RSM and filter by year. However, I would like to still show the total sales of the selected RSM and selected year, &lt;STRONG&gt;even when I have filtered by a specific article code.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I know I could do it through the alternative states. Nevertheless, I need these for other purposes.&lt;/P&gt;&lt;P&gt;I have tried the following formula for the KPI, but I, unfortunately, do not manage to get the desired result:&lt;/P&gt;&lt;P&gt;&lt;U&gt;Formula&lt;/U&gt;:&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Year= {$(=Max(Year))}, [RSM] = {$(=GetFieldSelections[RSM])}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;U&gt;Result&lt;/U&gt;:&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Year= {2021}, [RSM] = {}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;I would appreciate if anyone knows how to solve this problem.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 08:01:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/sum-ignoring-filters/m-p/1802985#M65144</guid>
      <dc:creator>charlie2</dc:creator>
      <dc:date>2021-04-27T08:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: sum() ignoring filters</title>
      <link>https://community.qlik.com/t5/App-Development/sum-ignoring-filters/m-p/1803002#M65146</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/137112"&gt;@charlie2&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;To me it's not clear what you are trying to achieve.&lt;/P&gt;&lt;P&gt;What do you mean with "filter a specific article code" ?&lt;/P&gt;&lt;P&gt;which are your&amp;nbsp; fields selections in that scenario ?&lt;/P&gt;&lt;P&gt;what's the actual result and the expected one?&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 08:45:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/sum-ignoring-filters/m-p/1803002#M65146</guid>
      <dc:creator>agigliotti</dc:creator>
      <dc:date>2021-04-27T08:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: sum() ignoring filters</title>
      <link>https://community.qlik.com/t5/App-Development/sum-ignoring-filters/m-p/1803071#M65155</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/112"&gt;@agigliotti&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your quick reply!&lt;/P&gt;&lt;P&gt;So my possible filters are: Article Code, RSM and Year. I would like to use these three filters, but in the KPI only show the sum of Sales from the filtered RSM and Year, therefore ignoring the filter from the Article Code.&lt;/P&gt;&lt;P&gt;At the moment, my result takes the sum of Sales of the filtered Article Code, RSM and Year.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 11:06:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/sum-ignoring-filters/m-p/1803071#M65155</guid>
      <dc:creator>charlie2</dc:creator>
      <dc:date>2021-04-27T11:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: sum() ignoring filters</title>
      <link>https://community.qlik.com/t5/App-Development/sum-ignoring-filters/m-p/1803123#M65164</link>
      <description>&lt;P&gt;You could use the below expression to ignore the Article Code field selections:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;sum( {&amp;lt; [Article Code] &amp;gt;} Sales )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I hope it can helps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 12:32:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/sum-ignoring-filters/m-p/1803123#M65164</guid>
      <dc:creator>agigliotti</dc:creator>
      <dc:date>2021-04-27T12:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: sum() ignoring filters</title>
      <link>https://community.qlik.com/t5/App-Development/sum-ignoring-filters/m-p/1803398#M65209</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/112"&gt;@agigliotti&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks for your proposal. Unfortunately it doesn't work but I found the following solution, which it seems to deliver the right figures:&lt;/P&gt;&lt;P&gt;sum({1&amp;lt;Year= {$(=Max(Year))}, [RSM] = {'$(=GetFieldSelections([RSM]))'}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2021 07:57:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/sum-ignoring-filters/m-p/1803398#M65209</guid>
      <dc:creator>charlie2</dc:creator>
      <dc:date>2021-04-28T07:57:45Z</dc:date>
    </item>
  </channel>
</rss>

