<?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: Supressing NULL, BLANK or non-numeric field values in sum in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Supressing-NULL-BLANK-or-non-numeric-field-values-in-sum/m-p/1146410#M896398</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, rangeSum sorry.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Jul 2016 14:17:43 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-07-26T14:17:43Z</dc:date>
    <item>
      <title>Supressing NULL, BLANK or non-numeric field values in sum</title>
      <link>https://community.qlik.com/t5/QlikView/Supressing-NULL-BLANK-or-non-numeric-field-values-in-sum/m-p/1146406#M896394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an excel file which I use to load data into QlikView. One of its columns, let's say 'Hours', can contain empty cells. I load this excel file into a table through scripting. Later I want to calculate the sum of all the cells of the column 'Hours' that complain a condition (Order Type is pending) but taken into account there are some cells that can contain empty fields (I suppose QlikView represent them as '-' hyphen, right?) so in this case I want to treat them as 0 or even ignore them. Hence that I am trying to use sumrange function as below but it is not working:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=num(sumrange({$&amp;lt;[Order Type] = {'Pending'}&amp;gt;}[Hours]),'#.###,##')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Supressing-NULL-BLANK-or-non-numeric-field-values-in-sum/m-p/1146406#M896394</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Supressing NULL, BLANK or non-numeric field values in sum</title>
      <link>https://community.qlik.com/t5/QlikView/Supressing-NULL-BLANK-or-non-numeric-field-values-in-sum/m-p/1146407#M896395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;=Num(Sum({$&amp;lt;[Order Type] = {'Pending'}&amp;gt;}[Hours]),'#.###,##')&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum should exclude -, null or blanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2016 12:18:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Supressing-NULL-BLANK-or-non-numeric-field-values-in-sum/m-p/1146407#M896395</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-26T12:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: Supressing NULL, BLANK or non-numeric field values in sum</title>
      <link>https://community.qlik.com/t5/QlikView/Supressing-NULL-BLANK-or-non-numeric-field-values-in-sum/m-p/1146408#M896396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was using following expression as I didn't know that sum function was already excluding, - (hyphen), null or blanks. Ok, good to know that sum function already does it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=num(sum({$&amp;lt;[Order Type] = {'Pending'}&amp;gt;}if(IsNum([Breakdown duration]),[Breakdown duration])),'#.###,##')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By curiosity, what's the difference between sum and sumrange then?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sumrange treats as 0 all non-numeric values but sum excludes them, but at the end, the result is the same. Am I wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2016 13:17:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Supressing-NULL-BLANK-or-non-numeric-field-values-in-sum/m-p/1146408#M896396</guid>
      <dc:creator />
      <dc:date>2016-07-26T13:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: Supressing NULL, BLANK or non-numeric field values in sum</title>
      <link>https://community.qlik.com/t5/QlikView/Supressing-NULL-BLANK-or-non-numeric-field-values-in-sum/m-p/1146409#M896397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe you are trying to use the "RangeSum" function. I dont think there is any SumRange function in Qlik.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2016 13:33:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Supressing-NULL-BLANK-or-non-numeric-field-values-in-sum/m-p/1146409#M896397</guid>
      <dc:creator>boorgura</dc:creator>
      <dc:date>2016-07-26T13:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: Supressing NULL, BLANK or non-numeric field values in sum</title>
      <link>https://community.qlik.com/t5/QlikView/Supressing-NULL-BLANK-or-non-numeric-field-values-in-sum/m-p/1146410#M896398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, rangeSum sorry.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2016 14:17:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Supressing-NULL-BLANK-or-non-numeric-field-values-in-sum/m-p/1146410#M896398</guid>
      <dc:creator />
      <dc:date>2016-07-26T14:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Supressing NULL, BLANK or non-numeric field values in sum</title>
      <link>https://community.qlik.com/t5/QlikView/Supressing-NULL-BLANK-or-non-numeric-field-values-in-sum/m-p/1146411#M896399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look at the attached example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/132509_Capture.PNG" style="height: 176px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will find out that Sum() is doing the right calculation when I have to Sum a particular field. Where RangeSum() is working when I have to combine ValA and ValB into one expression. I can alternate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RangeSum(Sum(ValA), Sum(ValB)) &lt;/STRONG&gt;with &lt;STRONG&gt;Sum(ValA) + Sum(ValB)&lt;/STRONG&gt; which will work because Sum converts Null into 0. But if we were doing ValA + ValB and ValA was null, we would see null as the output, where as RangeSum(ValA, ValB) will ignore the null and show the value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this will clarify the issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2016 15:35:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Supressing-NULL-BLANK-or-non-numeric-field-values-in-sum/m-p/1146411#M896399</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-26T15:35:54Z</dc:date>
    </item>
  </channel>
</rss>

