<?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: subtraction in set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/subtraction-in-set-analysis/m-p/1075108#M358738</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Basically&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;LineNo&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'1A', '1B'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;AMT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;nbsp; -&amp;nbsp; &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;LineNo&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'1C'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;AMT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;in a Single Set Analysis...something like I mentioned in original post&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Feb 2016 18:26:28 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-02-19T18:26:28Z</dc:date>
    <item>
      <title>subtraction in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/subtraction-in-set-analysis/m-p/1075104#M358734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;In Set Analysis if we use match(LineNo, '1A', '1B', '1C') than all lines value will be added.&lt;/P&gt;&lt;P&gt;Is that possible if I want addition of '1A' &amp;amp; '1B' and subtract '1C' out of these? like '1A' + '1B' - '1C' in single set analysis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Something like this&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;LineNo&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'1A', '1B'}-{'1C'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;AMT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 17:48:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/subtraction-in-set-analysis/m-p/1075104#M358734</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-19T17:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: subtraction in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/subtraction-in-set-analysis/m-p/1075105#M358735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Match is not needed in Set Analysis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 17:57:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/subtraction-in-set-analysis/m-p/1075105#M358735</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-19T17:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: subtraction in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/subtraction-in-set-analysis/m-p/1075106#M358736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can a LineNo be 1A and IC at the same time? What exactly are you trying to do? Can you elaborate a little?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 18:07:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/subtraction-in-set-analysis/m-p/1075106#M358736</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-19T18:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: subtraction in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/subtraction-in-set-analysis/m-p/1075107#M358737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What exactly do you mean by add and subtract here? Is it set union and set exclusion you mean or the subtracting and adding values?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 18:08:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/subtraction-in-set-analysis/m-p/1075107#M358737</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2016-02-19T18:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: subtraction in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/subtraction-in-set-analysis/m-p/1075108#M358738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Basically&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;LineNo&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'1A', '1B'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;AMT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;nbsp; -&amp;nbsp; &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;LineNo&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'1C'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;AMT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;in a Single Set Analysis...something like I mentioned in original post&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 18:26:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/subtraction-in-set-analysis/m-p/1075108#M358738</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-19T18:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: subtraction in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/subtraction-in-set-analysis/m-p/1075109#M358739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Basically&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;LineNo&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'1A', '1B'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;AMT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;nbsp; -&amp;nbsp; &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;LineNo&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'1C'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;AMT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;in a Single Set Analysis...something like I mentioned in original post&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 18:27:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/subtraction-in-set-analysis/m-p/1075109#M358739</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-19T18:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: subtraction in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/subtraction-in-set-analysis/m-p/1075110#M358740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AFAIK, this isn't possible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 18:29:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/subtraction-in-set-analysis/m-p/1075110#M358740</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-19T18:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: subtraction in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/subtraction-in-set-analysis/m-p/1075111#M358741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I understand you have rows where LineNo have values: 1A, 1B and 1C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want a set of lines with values 1A and 1B, just {&amp;lt;LineNo={'1A','1B'}&amp;gt;} but if you want to substract the sum of all lines with values 1C, you need to &lt;/P&gt;&lt;P&gt;Sum(&lt;SPAN style="font-size: 13.3333px;"&gt;{&amp;lt;LineNo={'1A','1B'}&amp;gt;} Value&lt;/SPAN&gt;) - &lt;SPAN style="font-size: 13.3333px;"&gt;Sum(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;{&amp;lt;LineNo={'1C'}&amp;gt;} Value&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can't put this substaction in one line, in the case you are pointing you have the same result in this case:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; {&amp;lt;LineNo={'1A','1B'}&amp;gt;} = &lt;SPAN style="font-size: 13.3333px;"&gt; {&amp;lt;LineNo={'1A','1B'}-{'1C'}&amp;gt;}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 18:33:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/subtraction-in-set-analysis/m-p/1075111#M358741</guid>
      <dc:creator>jolivares</dc:creator>
      <dc:date>2016-02-19T18:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: subtraction in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/subtraction-in-set-analysis/m-p/1075112#M358742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No what you show now is something totally different from what you showed in your original post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The latter is correct. The original post will do a &lt;STRONG&gt;set exclusion &lt;/STRONG&gt;of the rows &lt;SPAN style="font-size: 13.3333px;"&gt; that are satisfied by the set modifiers&lt;/SPAN&gt;... not a subtract of the values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 18:42:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/subtraction-in-set-analysis/m-p/1075112#M358742</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2016-02-19T18:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: subtraction in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/subtraction-in-set-analysis/m-p/1075113#M358743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Satish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set Analysis is a simple Boolean condition, it returns True or False for every row of data, and that determines whether the specific row is included or excluded from the calculation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Besides that, Set Analysis cannot perform any mathematical operations - no additions, no subtractions, no divisions and no multiplications. For these purposes, you still need to use multiple aggregation functions with the corresponding mathematical operators between them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;&lt;P&gt;Upgrade your Qlik skills at the &lt;A href="http://masterssummit.com/"&gt;Masters Summit for Qlik&lt;/A&gt; - coming soon to Milan, Italy and Austin, TX!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 18:57:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/subtraction-in-set-analysis/m-p/1075113#M358743</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2016-02-19T18:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: subtraction in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/subtraction-in-set-analysis/m-p/1075114#M358744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Juan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I agree with your suggestion, I had the same feeling but again curious to know if possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 19:38:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/subtraction-in-set-analysis/m-p/1075114#M358744</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-19T19:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: subtraction in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/subtraction-in-set-analysis/m-p/1075115#M358745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Oleg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate your suggestion,&lt;/P&gt;&lt;P&gt;Thanks to make more clear, it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 19:40:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/subtraction-in-set-analysis/m-p/1075115#M358745</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-19T19:40:11Z</dc:date>
    </item>
  </channel>
</rss>

