<?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 based on multiple null conditions in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/sum-based-on-multiple-null-conditions/m-p/1554404#M39931</link>
    <description>&lt;P&gt;The code should first check the refcode column. If there are no nulls then those charges will be picked up to sum, then if it is null it will goto refnum_in1 and repeat same and add those charges to the cumulative sum of charges picked up by refcode. If both refcode and refnum_in1 are found to be null then refnum_in2 is checked and if value exists then its corresponding charge is picked up to add to the charges picked up by first two.&lt;BR /&gt;&lt;BR /&gt;Note: The priority of code should flow from refcode to refnum_in2.&lt;/P&gt;</description>
    <pubDate>Fri, 08 Mar 2019 18:37:09 GMT</pubDate>
    <dc:creator>kaustubh</dc:creator>
    <dc:date>2019-03-08T18:37:09Z</dc:date>
    <item>
      <title>sum based on multiple null conditions</title>
      <link>https://community.qlik.com/t5/App-Development/sum-based-on-multiple-null-conditions/m-p/1551938#M39792</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;I have to perform a sum based on following conditions:&lt;/P&gt;&lt;P&gt;First result should come from first condition as:&lt;/P&gt;&lt;P&gt;(refcode -= NULL)&lt;/P&gt;&lt;P&gt;and add the above result to result from this second condition:&lt;/P&gt;&lt;P&gt;refcode = NULL AND (refnum_in1 -= NULL OR refnum_in2 -= NULL)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All the three are columns of same table.&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 16:43:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/sum-based-on-multiple-null-conditions/m-p/1551938#M39792</guid>
      <dc:creator>kaustubh</dc:creator>
      <dc:date>2019-03-04T16:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: sum based on multiple null conditions</title>
      <link>https://community.qlik.com/t5/App-Development/sum-based-on-multiple-null-conditions/m-p/1552051#M39799</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;I am not sure what are you asking for.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example if your table looks like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Przechwytywanie.PNG" style="width: 654px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/7230iDFE335F89E617625/image-size/large?v=v2&amp;amp;px=999" role="button" title="Przechwytywanie.PNG" alt="Przechwytywanie.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;what do you want to accomplish?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 22:17:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/sum-based-on-multiple-null-conditions/m-p/1552051#M39799</guid>
      <dc:creator>y_grynechko</dc:creator>
      <dc:date>2019-03-04T22:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: sum based on multiple null conditions</title>
      <link>https://community.qlik.com/t5/App-Development/sum-based-on-multiple-null-conditions/m-p/1552091#M39801</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;According to example table provided by&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/56553"&gt;@y_grynechko&lt;/a&gt;&amp;nbsp; + Sales field as measure, try something like this:&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;refcode= {"*"}&amp;nbsp; Sales)&amp;nbsp; &amp;nbsp; //&amp;nbsp; refcode-= NULL&amp;nbsp;&lt;/P&gt;&lt;P&gt;+&lt;/P&gt;&lt;P&gt;// and add the above result to result from this second condition:&lt;/P&gt;&lt;P&gt;// refcode = NULL AND (refnum_in1 -= NULL OR refnum_in2 -= NULL)&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;ID={"=Len(refcode)=0"}, refnum_in1={"*"}&amp;gt;} Sales) +&amp;nbsp;Sum({&amp;lt;ID={"=Len(refcode)=0"}, refnum_in2={"*"}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 04:39:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/sum-based-on-multiple-null-conditions/m-p/1552091#M39801</guid>
      <dc:creator>Zhandos_Shotan</dc:creator>
      <dc:date>2019-03-05T04:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: sum based on multiple null conditions</title>
      <link>https://community.qlik.com/t5/App-Development/sum-based-on-multiple-null-conditions/m-p/1554404#M39931</link>
      <description>&lt;P&gt;The code should first check the refcode column. If there are no nulls then those charges will be picked up to sum, then if it is null it will goto refnum_in1 and repeat same and add those charges to the cumulative sum of charges picked up by refcode. If both refcode and refnum_in1 are found to be null then refnum_in2 is checked and if value exists then its corresponding charge is picked up to add to the charges picked up by first two.&lt;BR /&gt;&lt;BR /&gt;Note: The priority of code should flow from refcode to refnum_in2.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 18:37:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/sum-based-on-multiple-null-conditions/m-p/1554404#M39931</guid>
      <dc:creator>kaustubh</dc:creator>
      <dc:date>2019-03-08T18:37:09Z</dc:date>
    </item>
  </channel>
</rss>

