<?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: How to not filter on aggr dimensions in if statement? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-not-filter-on-aggr-dimensions-in-if-statement/m-p/1934106#M76946</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/155326"&gt;@Femke_DPG&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;It only needs to show 'MIX', but it shows nearly everything, so also other mixes.&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Since this is a calculated field created in the front end it doesn't exist in the data model as an actual &lt;STRONG&gt;"FIELD"&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;but is basically a combination of different field value filters &lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;There is NO workaround for this, QlikSense will always show filters applied on fields that exist in datamodel and not calculated fields&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 23 May 2022 08:16:20 GMT</pubDate>
    <dc:creator>vinieme12</dc:creator>
    <dc:date>2022-05-23T08:16:20Z</dc:date>
    <item>
      <title>How to not filter on aggr dimensions in if statement?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-not-filter-on-aggr-dimensions-in-if-statement/m-p/1933959#M76937</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way to&amp;nbsp;&lt;STRONG&gt;not&lt;/STRONG&gt; filter on the dimensions, used in the aggregation sum in an if-statement?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;P&gt;if([Sales type group]='A' &lt;BR /&gt;and aggr(sum(if([Media Name]='F' ,[Sales])),[Clean Product Name],Month,Year)&amp;lt;&amp;gt;0 &lt;BR /&gt;and aggr(sum(if([Media Name]='G' ,[Sales])),[Clean Product Name],Month,Year)&amp;lt;&amp;gt;0&lt;BR /&gt;and aggr(sum(if([Media Name]='E' ,[Sales])),[Clean Product Name],Month,Year)&amp;lt;&amp;gt;0 &lt;BR /&gt;and aggr(sum(if([Media Name]='A' ,[Sales])),[Clean Product Name],Month,Year)&amp;lt;&amp;gt;0&lt;BR /&gt;and aggr(sum(if([Media Name]='T' ,[Sales])),[Clean Product Name],Month,Year)&amp;lt;&amp;gt;0 ,'MIX' ,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if([Sales type group]='A' &lt;BR /&gt;and aggr(sum(if([Media Name]='F' ,[Sales])),[ Clean Product Name],Month,Year)=0 &lt;BR /&gt;and aggr(sum(if([Media Name]='G' ,[Sales])),[Clean Product Name],Month,Year)&amp;lt;0&lt;BR /&gt;and aggr(sum(if([Media Name]='E' ,[Sales])),[Clean Product Name],Month,Year)&amp;gt;0 &lt;BR /&gt;and aggr(sum(if([Media Name]='A' ,[Sales])),[Clean Product Name],Month,Year)&amp;gt;0&lt;BR /&gt;and aggr(sum(if([Media Name]='T' ,[Sales])),[Clean Product Name],Month,Year)&amp;gt;0 ,'MIX2' ))&lt;/P&gt;
&lt;P&gt;When I filter on 'MIX'or MIX2, there are other filters that are applied above:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Femke_DPG_0-1653219035238.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/80019iF5E33840215A9C09/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Femke_DPG_0-1653219035238.png" alt="Femke_DPG_0-1653219035238.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I think it filters on the values that are in the aggr statement.: year, month, product name (en sales type group is also in the if-statement).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It only needs to show 'MIX', but it shows nearly everything, so also other mixes.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks for the help!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Appreciate your help!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2022 07:00:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-not-filter-on-aggr-dimensions-in-if-statement/m-p/1933959#M76937</guid>
      <dc:creator>Femke_DPG</dc:creator>
      <dc:date>2022-05-23T07:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to not filter on aggr dimensions in if statement?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-not-filter-on-aggr-dimensions-in-if-statement/m-p/1934106#M76946</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/155326"&gt;@Femke_DPG&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;It only needs to show 'MIX', but it shows nearly everything, so also other mixes.&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Since this is a calculated field created in the front end it doesn't exist in the data model as an actual &lt;STRONG&gt;"FIELD"&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;but is basically a combination of different field value filters &lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;There is NO workaround for this, QlikSense will always show filters applied on fields that exist in datamodel and not calculated fields&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2022 08:16:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-not-filter-on-aggr-dimensions-in-if-statement/m-p/1934106#M76946</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2022-05-23T08:16:20Z</dc:date>
    </item>
  </channel>
</rss>

