<?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: How to set to 0 negative values in a formula in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-set-to-0-negative-values-in-a-formula/m-p/1984797#M81277</link>
    <description>&lt;P&gt;Perhaps this&lt;/P&gt;
&lt;P&gt;Avg({&amp;lt;[Posting Date]-={2015, 2016},[Processing Time]={"&amp;gt; 0"}&amp;gt;}[Processing Time])&lt;/P&gt;</description>
    <pubDate>Fri, 23 Sep 2022 14:58:18 GMT</pubDate>
    <dc:creator>BrunPierre</dc:creator>
    <dc:date>2022-09-23T14:58:18Z</dc:date>
    <item>
      <title>How to set to 0 negative values in a formula</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-set-to-0-negative-values-in-a-formula/m-p/1984768#M81274</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;I have a kpi that is showing the average lead time.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The formula is the following:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Avg({&amp;lt;[Posting Date]-={2015, 2016}&amp;gt;}[Processing Time] )&lt;/P&gt;
&lt;P&gt;The thing is, some of this lead times ( aka processing time) are negative, and I want them to be 0. How can I modify this formula to make that work?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks in advance&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 14:01:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-set-to-0-negative-values-in-a-formula/m-p/1984768#M81274</guid>
      <dc:creator>Manuel174102</dc:creator>
      <dc:date>2022-09-23T14:01:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to set to 0 negative values in a formula</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-set-to-0-negative-values-in-a-formula/m-p/1984797#M81277</link>
      <description>&lt;P&gt;Perhaps this&lt;/P&gt;
&lt;P&gt;Avg({&amp;lt;[Posting Date]-={2015, 2016},[Processing Time]={"&amp;gt; 0"}&amp;gt;}[Processing Time])&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 14:58:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-set-to-0-negative-values-in-a-formula/m-p/1984797#M81277</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2022-09-23T14:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to set to 0 negative values in a formula</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-set-to-0-negative-values-in-a-formula/m-p/1984798#M81278</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/191112"&gt;@Manuel174102&lt;/a&gt;&amp;nbsp;You can add the below line in the Script Editor first and then you can continue to use your expression above.&lt;/P&gt;
&lt;P&gt;if(&lt;SPAN&gt;[Processing Time]&amp;lt;0,0,[Processing Time]&lt;/SPAN&gt;) as&amp;nbsp;&lt;SPAN&gt;[Processing Time].&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This should resolve the issue. &lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 15:00:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-set-to-0-negative-values-in-a-formula/m-p/1984798#M81278</guid>
      <dc:creator>sidhiq91</dc:creator>
      <dc:date>2022-09-23T15:00:34Z</dc:date>
    </item>
  </channel>
</rss>

