<?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 App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-Analysis/m-p/2526931#M107312</link>
    <description>&lt;P&gt;I get that you want where the transaction code or transaction type is missing, then perhaps&lt;/P&gt;&lt;P&gt;=Sum({1-$&amp;lt;%TransCode = {'*'}&amp;gt; + 1-$&amp;lt;[Transaction Type] = {'*'}&amp;gt;} $TransAmtLocal)&lt;/P&gt;</description>
    <pubDate>Mon, 11 Aug 2025 18:00:36 GMT</pubDate>
    <dc:creator>BrunPierre</dc:creator>
    <dc:date>2025-08-11T18:00:36Z</dc:date>
    <item>
      <title>Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis/m-p/2526726#M107281</link>
      <description>&lt;P&gt;Hey everyone!&lt;/P&gt;&lt;P&gt;I’m looking to convert a Sum(If) expression into a set analysis format.&lt;/P&gt;&lt;P&gt;Sum(&lt;BR /&gt;If(IsNull( %TransCode ) or Len(Trim( %TransCode )) = 0&lt;BR /&gt;or&lt;BR /&gt;(Len(Trim( %TransCode )) &amp;gt; 0 and (IsNull([Transaction Type]) or Len(Trim([Transaction Type])) = 0)),&lt;BR /&gt;$TransAmtLocal&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Fri, 08 Aug 2025 14:01:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis/m-p/2526726#M107281</guid>
      <dc:creator>LoKi_asterix</dc:creator>
      <dc:date>2025-08-08T14:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis/m-p/2526728#M107282</link>
      <description>&lt;P&gt;I think something like:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{&amp;lt;
  	%TransCode 		= {'*'}
, 	[Transaction Type] 	= {'*'}
&amp;gt;}
Sum($TransAmtLocal)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Aug 2025 14:13:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis/m-p/2526728#M107282</guid>
      <dc:creator>adilio_silva</dc:creator>
      <dc:date>2025-08-08T14:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis/m-p/2526731#M107283</link>
      <description>&lt;P&gt;What I tend to do in these situations is &lt;STRONG&gt;transfer that IF statement to the script&lt;/STRONG&gt; and &lt;STRONG&gt;create a new field in the data model&lt;/STRONG&gt;, like this:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;tableName:
LOAD *,
    If(IsNull( %TransCode ) or Len(Trim( %TransCode )) = 0 or (Len(Trim( %TransCode )) &amp;gt; 0 and (IsNull([Transaction Type]) or Len(Trim([Transaction Type])) = 0)), 1, 0) as forTransAmtLocal
Resident originalTable
;&lt;/LI-CODE&gt;&lt;P&gt;Once you have this new forTransAmtLocal field (or whatever you want to call it), your expression can be as simple as this:&lt;/P&gt;&lt;PRE&gt;Sum({&amp;lt;&lt;STRONG&gt;&lt;FONT color="#3366FF"&gt;forTransAmtLocal&lt;/FONT&gt;&lt;/STRONG&gt; = {1}&amp;gt;} $TransAmtLocal)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Aug 2025 19:16:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis/m-p/2526731#M107283</guid>
      <dc:creator>howdash</dc:creator>
      <dc:date>2025-08-11T19:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis/m-p/2526931#M107312</link>
      <description>&lt;P&gt;I get that you want where the transaction code or transaction type is missing, then perhaps&lt;/P&gt;&lt;P&gt;=Sum({1-$&amp;lt;%TransCode = {'*'}&amp;gt; + 1-$&amp;lt;[Transaction Type] = {'*'}&amp;gt;} $TransAmtLocal)&lt;/P&gt;</description>
      <pubDate>Mon, 11 Aug 2025 18:00:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis/m-p/2526931#M107312</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2025-08-11T18:00:36Z</dc:date>
    </item>
  </channel>
</rss>

