<?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 of only negative values in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Sum-of-only-negative-values/m-p/1999799#M82802</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/165653"&gt;@okin_pfa&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Im not sure exactly what you want.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;I would like to sum only negative values of rba. &lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;By PartNo or by Customer&lt;/EM&gt;&lt;STRONG&gt;&amp;nbsp;. &lt;/STRONG&gt;I assume by PartNum (as you have used PartNo in your 4th column)? Or by both or just Customer but also gives the correct total by PartNo&lt;/P&gt;
&lt;P&gt;And have tried if instead of Set Analysis.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sum(aggr(&lt;/P&gt;
&lt;P&gt;if(Sum(rbo)&amp;lt;0,sum(rbo),0)&lt;/P&gt;
&lt;P&gt;,Customer,ItemNo)) //Or just ItemNo or Customer. By Customer should give you the correct total as per the blue column&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Nov 2022 19:42:49 GMT</pubDate>
    <dc:creator>robert99</dc:creator>
    <dc:date>2022-11-02T19:42:49Z</dc:date>
    <item>
      <title>Sum of only negative values</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-of-only-negative-values/m-p/1999445#M82774</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Can somebody help me to sum only negative values ?&lt;/P&gt;
&lt;P&gt;In first two columns&amp;nbsp; I have [Stock Qty] and [Backorders Total] . Third, blue column &lt;EM&gt;&lt;STRONG&gt;rba&lt;/STRONG&gt; &lt;/EM&gt;is difference of the [Stock Qty] and [Backorders Total].&lt;BR /&gt;I would like to sum only negative values of &lt;EM&gt;&lt;STRONG&gt;rba&lt;/STRONG&gt;&lt;/EM&gt; and in total row to sum it per ItemNo which is my second dimension in Table.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 07:28:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-of-only-negative-values/m-p/1999445#M82774</guid>
      <dc:creator>okin_pfa</dc:creator>
      <dc:date>2022-11-03T07:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of only negative values</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-of-only-negative-values/m-p/1999477#M82777</link>
      <description>&lt;P&gt;Sum({&amp;lt;Customer={"=Sum([Stock Qty] -[Backorders Total])&amp;lt;0"}&amp;gt;}[Stock Qty] -[Backorders Total])&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;?&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 09:54:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-of-only-negative-values/m-p/1999477#M82777</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2022-11-02T09:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of only negative values</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-of-only-negative-values/m-p/1999749#M82798</link>
      <description>&lt;LI-CODE lang="markup"&gt;Sum(RangeMin([Stock Qty]-[Backorders Total],0))&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 02 Nov 2022 17:30:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-of-only-negative-values/m-p/1999749#M82798</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2022-11-02T17:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of only negative values</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-of-only-negative-values/m-p/1999799#M82802</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/165653"&gt;@okin_pfa&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Im not sure exactly what you want.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;I would like to sum only negative values of rba. &lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;By PartNo or by Customer&lt;/EM&gt;&lt;STRONG&gt;&amp;nbsp;. &lt;/STRONG&gt;I assume by PartNum (as you have used PartNo in your 4th column)? Or by both or just Customer but also gives the correct total by PartNo&lt;/P&gt;
&lt;P&gt;And have tried if instead of Set Analysis.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sum(aggr(&lt;/P&gt;
&lt;P&gt;if(Sum(rbo)&amp;lt;0,sum(rbo),0)&lt;/P&gt;
&lt;P&gt;,Customer,ItemNo)) //Or just ItemNo or Customer. By Customer should give you the correct total as per the blue column&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 19:42:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-of-only-negative-values/m-p/1999799#M82802</guid>
      <dc:creator>robert99</dc:creator>
      <dc:date>2022-11-02T19:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of only negative values</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-of-only-negative-values/m-p/1999933#M82813</link>
      <description>&lt;P&gt;Inaddition to&amp;nbsp;&amp;nbsp;&lt;A id="link_19" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://community.qlik.com/t5/user/viewprofilepage/user-id/675" target="_self" aria-label="View Profile of MarcoWedel" aria-describedby="userProfileCard-675"&gt;&lt;SPAN class="login-bold"&gt;MarcoWedel&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="login-bold"&gt;Reply You can use Dimensionality()&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="login-bold"&gt;If(Dimensionality()=0, Sum(RangeMin([Stock Qty]-[Backorders Total],0)),Sum([Stock Qty]-[Backorders Total]))&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="login-bold"&gt;Hope this Helps&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 07:30:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-of-only-negative-values/m-p/1999933#M82813</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2022-11-03T07:30:26Z</dc:date>
    </item>
  </channel>
</rss>

