<?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: RangeSum() function results in 0 when all the arguments are Null in it in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/RangeSum-function-results-in-0-when-all-the-arguments-are-Null/m-p/1682371#M450175</link>
    <description>&lt;P&gt;You could test if you have any input and return null() if not.&amp;nbsp;&lt;/P&gt;&lt;P&gt;if(count(Dates)&amp;gt;0, RangeSum(...), null())&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;</description>
    <pubDate>Fri, 06 Mar 2020 08:59:33 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2020-03-06T08:59:33Z</dc:date>
    <item>
      <title>RangeSum() function results in 0 when all the arguments are Null in it</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-function-results-in-0-when-all-the-arguments-are-Null/m-p/1682135#M450143</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;So,&amp;nbsp; I am using RangeSum() function to get total time taken by each transaction of a group in a process. Now since finally I have to sum up the time taken for each transaction , i am using RangeSum(). So, each argument inside this function is basically Time taken for every transaction. It works absolutely fine until I come across a scenario where there's no dates logged in for any transaction which means the process has not come to that group yet and in such case instead of getting Null or (-), i am getting 0 which i know is a property of RangeSum(), as it treats any non-numeric value as 0. But I am also using RangeAvg() to get the avg time per transaction and i am getting Null in the same scenario.&amp;nbsp;&lt;/P&gt;&lt;P&gt;RangeSum(Null(),Null()) = 0&lt;/P&gt;&lt;P&gt;RangeAvg(Null(),Null()) =&amp;nbsp; &amp;nbsp;-&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since it's about Lead time, Showing 0 gives a wrong impression. I have to show (-) in such cases so please let me know if you guys have any solution to this problem.&lt;/P&gt;&lt;P&gt;Any suggestion or help will be appreciated as this needs to be sorted before presenting to the users.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Pranav&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:59:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-function-results-in-0-when-all-the-arguments-are-Null/m-p/1682135#M450143</guid>
      <dc:creator>pranaview</dc:creator>
      <dc:date>2024-11-16T18:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum() function results in 0 when all the arguments are Null in it</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-function-results-in-0-when-all-the-arguments-are-Null/m-p/1682148#M450145</link>
      <description>No idea why this happens but maybe you could use the if statement?&lt;BR /&gt;=if(RangeSum(Null(),Null())=0,null())</description>
      <pubDate>Thu, 05 Mar 2020 15:41:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-function-results-in-0-when-all-the-arguments-are-Null/m-p/1682148#M450145</guid>
      <dc:creator>jochem_zw</dc:creator>
      <dc:date>2020-03-05T15:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum() function results in 0 when all the arguments are Null in it</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-function-results-in-0-when-all-the-arguments-are-Null/m-p/1682371#M450175</link>
      <description>&lt;P&gt;You could test if you have any input and return null() if not.&amp;nbsp;&lt;/P&gt;&lt;P&gt;if(count(Dates)&amp;gt;0, RangeSum(...), null())&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2020 08:59:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-function-results-in-0-when-all-the-arguments-are-Null/m-p/1682371#M450175</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2020-03-06T08:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum() function results in 0 when all the arguments are Null in it</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-function-results-in-0-when-all-the-arguments-are-Null/m-p/1682463#M450185</link>
      <description>&lt;P&gt;Thanks for the suggestion Jochem&lt;/P&gt;&lt;P&gt;So, I can't check the If condition on RangeSum() against 0 because there could be scenario where I have got both Start and End DateTime fields but are exactly same. But I can use the If condition to check whether IsNull(RangeAvg()) = -1 and if it is that means all the arguments inside the Range function are Null() and hence i can simple make RangeSum() value as Null().&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;P&gt;Pranav&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2020 13:39:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-function-results-in-0-when-all-the-arguments-are-Null/m-p/1682463#M450185</guid>
      <dc:creator>pranaview</dc:creator>
      <dc:date>2020-03-06T13:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum() function results in 0 when all the arguments are Null in it</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-function-results-in-0-when-all-the-arguments-are-Null/m-p/1682464#M450186</link>
      <description>&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;Thanks for your response.&lt;/P&gt;&lt;P&gt;I can also do that but i thought simply checking RangeAvg() for Null should solve my issue. Correct me if i'm wrong though.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pranav&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2020 13:41:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-function-results-in-0-when-all-the-arguments-are-Null/m-p/1682464#M450186</guid>
      <dc:creator>pranaview</dc:creator>
      <dc:date>2020-03-06T13:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum() function results in 0 when all the arguments are Null in it</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-function-results-in-0-when-all-the-arguments-are-Null/m-p/1690283#M450597</link>
      <description>&lt;P&gt;It appears things are working as expected per the Help:&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/ChartFunctions/RangeFunctions/rangeavg.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/ChartFunctions/RangeFunctions/rangeavg.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The odd thing is the RangeSum does return 0, not sure why the delta there.&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/ChartFunctions/RangeFunctions/rangesum.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/ChartFunctions/RangeFunctions/rangesum.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2020 12:51:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-function-results-in-0-when-all-the-arguments-are-Null/m-p/1690283#M450597</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2020-04-02T12:51:11Z</dc:date>
    </item>
  </channel>
</rss>

