<?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 with if not exist in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/sum-with-if-not-exist/m-p/1010313#M1256554</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sEE ATTACHED AND LET&amp;nbsp; ME KNOW IF YOU ARE EXPECTING THE SAME OUTPUT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Aug 2015 14:28:48 GMT</pubDate>
    <dc:creator>Qrishna</dc:creator>
    <dc:date>2015-08-27T14:28:48Z</dc:date>
    <item>
      <title>sum with if not exist</title>
      <link>https://community.qlik.com/t5/QlikView/sum-with-if-not-exist/m-p/1010312#M1256553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following table: (Excel: TESTCW_NL)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to get only the order "123", because in this order is no Discountnumber 4.&lt;/P&gt;&lt;P&gt;So for example, the formula have to look something like this&lt;/P&gt;&lt;P&gt;sum(if( aggr(Discountnumer, Order)&amp;lt;&amp;gt;4, Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-with-if-not-exist/m-p/1010312#M1256553</guid>
      <dc:creator>wunderch</dc:creator>
      <dc:date>2026-01-26T18:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: sum with if not exist</title>
      <link>https://community.qlik.com/t5/QlikView/sum-with-if-not-exist/m-p/1010313#M1256554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sEE ATTACHED AND LET&amp;nbsp; ME KNOW IF YOU ARE EXPECTING THE SAME OUTPUT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 14:28:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-with-if-not-exist/m-p/1010313#M1256554</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2015-08-27T14:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: sum with if not exist</title>
      <link>https://community.qlik.com/t5/QlikView/sum-with-if-not-exist/m-p/1010314#M1256555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes in the table it is the right output, but the excel is only a an example for my problem.&lt;/P&gt;&lt;P&gt;In real i have thousand of orders and i cant select them with an match.&lt;/P&gt;&lt;P&gt;Is there a chance to get the same result without "MATCH(Order,'123')"?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 14:37:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-with-if-not-exist/m-p/1010314#M1256555</guid>
      <dc:creator>wunderch</dc:creator>
      <dc:date>2015-08-27T14:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: sum with if not exist</title>
      <link>https://community.qlik.com/t5/QlikView/sum-with-if-not-exist/m-p/1010315#M1256556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thousands like what? &lt;/P&gt;&lt;P&gt;there should be some way to recognize right?what is that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 14:47:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-with-if-not-exist/m-p/1010315#M1256556</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2015-08-27T14:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: sum with if not exist</title>
      <link>https://community.qlik.com/t5/QlikView/sum-with-if-not-exist/m-p/1010316#M1256557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry. thousand of orders, some have discountnumber 4 and some not. And i need only the orders without discountnumber 4.&lt;/P&gt;&lt;P&gt;So i think i have to select them in the expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 14:56:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-with-if-not-exist/m-p/1010316#M1256557</guid>
      <dc:creator>wunderch</dc:creator>
      <dc:date>2015-08-27T14:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: sum with if not exist</title>
      <link>https://community.qlik.com/t5/QlikView/sum-with-if-not-exist/m-p/1010317#M1256558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;if you want all the orders with no discountnumber 4 then you can just use&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;WHERE NOT MATCH(Discountnummer,'4');&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;see attached. !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 14:59:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-with-if-not-exist/m-p/1010317#M1256558</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2015-08-27T14:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: sum with if not exist</title>
      <link>https://community.qlik.com/t5/QlikView/sum-with-if-not-exist/m-p/1010318#M1256559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And on suggestion:&lt;/P&gt;&lt;P&gt;If data transformation is possible at script level, then do it at the script level itself.&lt;/P&gt;&lt;P&gt;on the front end it consumes relatively a lot of effort for qlikview to perform tranformations.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 15:01:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-with-if-not-exist/m-p/1010318#M1256559</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2015-08-27T15:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: sum with if not exist</title>
      <link>https://community.qlik.com/t5/QlikView/sum-with-if-not-exist/m-p/1010319#M1256560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your example, but i only want to get the order "123" because this order have no orderpos with discountnumber 4. &lt;/P&gt;&lt;P&gt;Is there a chance to get this with "group by"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like this:&lt;/P&gt;&lt;P&gt;Load Distinct&lt;/P&gt;&lt;P&gt;Order,&lt;/P&gt;&lt;P&gt;Discountnumber&lt;/P&gt;&lt;P&gt;group by Order where Discountnumber&amp;lt;&amp;gt;4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 15:08:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-with-if-not-exist/m-p/1010319#M1256560</guid>
      <dc:creator>wunderch</dc:creator>
      <dc:date>2015-08-27T15:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: sum with if not exist</title>
      <link>https://community.qlik.com/t5/QlikView/sum-with-if-not-exist/m-p/1010320#M1256561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you want order =123 and discountnumber&amp;lt;&amp;gt;4, you have to put those filters in the script as shown in the 1st qvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you have thousands of orders and dont know wht orders to be filter, try to figure out the way which gives the the orders to be filtered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then we can look for some solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 15:15:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-with-if-not-exist/m-p/1010320#M1256561</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2015-08-27T15:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: sum with if not exist</title>
      <link>https://community.qlik.com/t5/QlikView/sum-with-if-not-exist/m-p/1010321#M1256562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In a chart with just Order as dimension, add this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;=aggr(if (WildMatch(Concat(Discountnummer, ';'), '*4*') = 0, sum(Amount)), Order)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Some adjustments may be required if you add dimensions.:&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 15:42:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-with-if-not-exist/m-p/1010321#M1256562</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-08-27T15:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: sum with if not exist</title>
      <link>https://community.qlik.com/t5/QlikView/sum-with-if-not-exist/m-p/1010322#M1256563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Check this script&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14406948752972739 jive_text_macro" jivemacro_uid="_14406948752972739" modifiedtitle="true"&gt;
&lt;P&gt;A:&lt;/P&gt;
&lt;P&gt;Load Distinct *,If(Discountnummer=4,1) as Flag;&lt;/P&gt;
&lt;P&gt;LOAD * INLINE [&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Order, OrderPos., Amount, Discountnummer, Discount&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 123, 1, 100, 3, 40&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 123, 1, 100, 5, 50&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 456, 1, 80, 4, 20&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 456, 2, 50, 3, 10&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 789, 1, 200, 3, 20&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 789, 1, 200, 4, 10&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 789, 1, 200, 5, 30&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;B:&lt;/P&gt;
&lt;P&gt;Mapping Load Distinct Order,Flag&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp; Resident A where not isnull(Flag);&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 9pt; line-height: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 9pt; line-height: 12pt;"&gt;NoConcatenate&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;C:&lt;/P&gt;
&lt;P&gt;LOAD&amp;nbsp; Order, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; OrderPos., &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; Amount, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; Discountnummer, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; Discount,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; ApplyMap('B',Order,Null()) as Flag &lt;/P&gt;
&lt;P&gt;&amp;nbsp; Resident A;&lt;/P&gt;
&lt;P&gt;DROP Table A;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;NoConcatenate&lt;/P&gt;
&lt;P&gt;Final:&lt;/P&gt;
&lt;P&gt;LOAD Order, &lt;/P&gt;
&lt;P&gt;&amp;nbsp; OrderPos., &lt;/P&gt;
&lt;P&gt;&amp;nbsp; Amount, &lt;/P&gt;
&lt;P&gt;&amp;nbsp; Discountnummer, &lt;/P&gt;
&lt;P&gt;&amp;nbsp; Discount&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Resident C Where IsNull(Flag);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP Table C;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 17:02:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-with-if-not-exist/m-p/1010322#M1256563</guid>
      <dc:creator>settu_periasamy</dc:creator>
      <dc:date>2015-08-27T17:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: sum with if not exist</title>
      <link>https://community.qlik.com/t5/QlikView/sum-with-if-not-exist/m-p/1010323#M1256564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your answer. That's what I looked for.&lt;/P&gt;&lt;P&gt;It works great.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2015 05:13:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-with-if-not-exist/m-p/1010323#M1256564</guid>
      <dc:creator>wunderch</dc:creator>
      <dc:date>2015-08-28T05:13:02Z</dc:date>
    </item>
  </channel>
</rss>

