<?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 Including Specific Filters only in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Including-Specific-Filters-only/m-p/1586967#M63052</link>
    <description>&lt;P&gt;It definitely works in Sense. You need to move your specified field selections out of the Concat, like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;sum({$&amp;lt;[$(=Concat({1&amp;lt;$Field-={'DATE GROUP','CUSTOMER','COMPANY'&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;}distinct $Field,']=,[')&amp;amp;']='),&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;[TRANSACTION TYPE CODE]={'INV','SIV'},&lt;BR /&gt;[B/S]={'B','S'},&lt;BR /&gt;[LABEL CODE]-={'SV'},&lt;BR /&gt;[PRODUCT GROUP]={'G1'},&lt;BR /&gt;[SO HDR GL DATE]={"&amp;gt;=$(vMinCurrentDateSelection)&amp;lt;=$(vMaxCurrentDateSelection)"&amp;gt;} [QTY])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I didn't test this out but hopefully this is (close to) correct!&lt;/P&gt;</description>
    <pubDate>Fri, 31 May 2019 01:22:39 GMT</pubDate>
    <dc:creator>Lauri</dc:creator>
    <dc:date>2019-05-31T01:22:39Z</dc:date>
    <item>
      <title>Set Analysis Including Specific Filters only</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Including-Specific-Filters-only/m-p/1586934#M63049</link>
      <description>&lt;P&gt;So I have a set analysis expression:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SUM({&amp;lt; [TRANSACTION TYPE CODE]={'INV','SIV'},&lt;BR /&gt;[B/S TYPE]={'B','S'},&lt;BR /&gt;[LABEL CODE]-={'SV'},&lt;BR /&gt;[PRODUCT_GROUP]={'G1'},&lt;BR /&gt;[SO HDR GL DATE]={"&amp;gt;=$(vMinCurrentDateSelection)&amp;lt;=$(vMaxCurrentDateSelection)"}&amp;gt;}&lt;BR /&gt;[LINE QTY])&lt;/P&gt;&lt;P&gt;The user wants the expression to stay static UNLESS they filter on&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; their Date Group (think Last 30 Days, Last 60 Days, etc)&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; they filter on Date (think Month Year)&amp;nbsp;&lt;/P&gt;&lt;P&gt;3.&amp;nbsp; they filter on the Country (US, UK, etc)&lt;/P&gt;&lt;P&gt;4.&amp;nbsp; they filter on the Customer (ABC, BAC, CBA)&lt;/P&gt;&lt;P&gt;I've found a ton of discussion on how to exclude things...but is there a way to INCLUDE based on filter, and ignore everything else?&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 20:45:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Including-Specific-Filters-only/m-p/1586934#M63049</guid>
      <dc:creator>crichter14</dc:creator>
      <dc:date>2024-11-16T20:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Including Specific Filters only</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Including-Specific-Filters-only/m-p/1586937#M63050</link>
      <description>&lt;P&gt;If I understand your requirement correctly, this should be the solution:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-Documents/Ignore-all-selections-except-some-specific-fields-using-Set/ta-p/1482031" target="_blank"&gt;https://community.qlik.com/t5/QlikView-Documents/Ignore-all-selections-except-some-specific-fields-using-Set/ta-p/1482031&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2019 22:15:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Including-Specific-Filters-only/m-p/1586937#M63050</guid>
      <dc:creator>Lauri</dc:creator>
      <dc:date>2019-05-30T22:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Including Specific Filters only</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Including-Specific-Filters-only/m-p/1586943#M63051</link>
      <description>&lt;P&gt;Thank you,&amp;nbsp;Lauischarf.&lt;/P&gt;&lt;P&gt;I have done some tinkering on this but the results are not as required.&lt;/P&gt;&lt;P&gt;Here's the formula I have now:&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;[$(=Concat({1&amp;lt;$Field-={'DATE GROUP','CUSTOMER','COMPANY'},&lt;BR /&gt;[TRANSACTION TYPE CODE]={'INV','SIV'},&lt;BR /&gt;[B/S]={'B','S'},&lt;BR /&gt;[LABEL CODE]-={'SV'},&lt;BR /&gt;[PRODUCT GROUP]={'G1'},&lt;BR /&gt;[SO HDR GL DATE]={"&amp;gt;=$(vMinCurrentDateSelection)&amp;lt;=$(vMaxCurrentDateSelection)"}&lt;BR /&gt;&amp;gt;}distinct $Field,']=,[')&amp;amp;']=')&amp;gt;} [QTY])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Our QTY went from 308,251 to 1,689,826.&amp;nbsp; It should stay at 308,251.&amp;nbsp; Is it possible that post which was written for QlikView, has a different result in Qlik Sense?&amp;nbsp; (I don't think so, but I need to ask)&amp;nbsp; Or am I missing some punctuation somewhere?&lt;/P&gt;&lt;P&gt;Has anyone done this in Qlik Sense and gotten it to work?&lt;/P&gt;&lt;P&gt;Cheryl&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2019 22:33:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Including-Specific-Filters-only/m-p/1586943#M63051</guid>
      <dc:creator>crichter14</dc:creator>
      <dc:date>2019-05-30T22:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Including Specific Filters only</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Including-Specific-Filters-only/m-p/1586967#M63052</link>
      <description>&lt;P&gt;It definitely works in Sense. You need to move your specified field selections out of the Concat, like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;sum({$&amp;lt;[$(=Concat({1&amp;lt;$Field-={'DATE GROUP','CUSTOMER','COMPANY'&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;}distinct $Field,']=,[')&amp;amp;']='),&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;[TRANSACTION TYPE CODE]={'INV','SIV'},&lt;BR /&gt;[B/S]={'B','S'},&lt;BR /&gt;[LABEL CODE]-={'SV'},&lt;BR /&gt;[PRODUCT GROUP]={'G1'},&lt;BR /&gt;[SO HDR GL DATE]={"&amp;gt;=$(vMinCurrentDateSelection)&amp;lt;=$(vMaxCurrentDateSelection)"&amp;gt;} [QTY])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I didn't test this out but hopefully this is (close to) correct!&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2019 01:22:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Including-Specific-Filters-only/m-p/1586967#M63052</guid>
      <dc:creator>Lauri</dc:creator>
      <dc:date>2019-05-31T01:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Including Specific Filters only</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Including-Specific-Filters-only/m-p/1587189#M63053</link>
      <description>Thank you again! I'm still trying to understand what the ,[')&amp;amp;'] portion of this code does, but this is much closer. For some reason I don't need to add Customer to my fields, but I think that is a build issue not a formula one.</description>
      <pubDate>Fri, 31 May 2019 14:35:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Including-Specific-Filters-only/m-p/1587189#M63053</guid>
      <dc:creator>crichter14</dc:creator>
      <dc:date>2019-05-31T14:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Including Specific Filters only</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Including-Specific-Filters-only/m-p/1589689#M63054</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/12760"&gt;@crichter14&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Thank you again! I'm still trying to understand what the ,[')&amp;amp;'] portion of this code does, but this is much closer. For some reason I don't need to add Customer to my fields, but I think that is a build issue not a formula one.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;That's what makes this&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;sum({&lt;FONT color="#000000"&gt;$&amp;lt;[&lt;/FONT&gt;$(=Concat({1&amp;lt;$Field-={'DATE GROUP','CUSTOMER','COMPANY'}&amp;gt;}distinct $Field, ']=, [') &amp;amp;']= '),&lt;/P&gt;&lt;P&gt;expand to the parts in &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;red&lt;/STRONG&gt;&lt;/FONT&gt;.&amp;nbsp; The part in &lt;FONT color="#339966"&gt;&lt;STRONG&gt;green&lt;/STRONG&gt;&lt;/FONT&gt; precedes your concat statement&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; sum({&lt;FONT color="#339966"&gt;&lt;STRONG&gt;$&amp;lt;[&lt;/STRONG&gt;&lt;/FONT&gt;Date Group&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;]=,[&lt;/STRONG&gt;&lt;/FONT&gt;Customer&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;]=,[&lt;/STRONG&gt;&lt;/FONT&gt;Company&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;]=&lt;/STRONG&gt;&lt;/FONT&gt;,&lt;/P&gt;&lt;P&gt;[TRANSACTION TYPE CODE]={'INV','SIV'},&lt;BR /&gt;[B/S]={'B','S'},&lt;BR /&gt;[LABEL CODE]-={'SV'},&lt;BR /&gt;[PRODUCT GROUP]={'G1'},&lt;BR /&gt;[SO HDR GL DATE]={"&amp;gt;=$(vMinCurrentDateSelection)&amp;lt;=$(vMaxCurrentDateSelection)"&amp;gt;} [LINE QTY])&lt;/P&gt;&lt;P&gt;hope that makes sense&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2019 17:38:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Including-Specific-Filters-only/m-p/1589689#M63054</guid>
      <dc:creator>mjtaft2017</dc:creator>
      <dc:date>2019-06-07T17:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Including Specific Filters only</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Including-Specific-Filters-only/m-p/1591159#M63055</link>
      <description>&lt;P&gt;it does!&amp;nbsp; I can't thank you enough.&amp;nbsp; Cheryl&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 16:15:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Including-Specific-Filters-only/m-p/1591159#M63055</guid>
      <dc:creator>crichter14</dc:creator>
      <dc:date>2019-06-12T16:15:11Z</dc:date>
    </item>
  </channel>
</rss>

