<?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: Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression/m-p/1611073#M445234</link>
    <description>&lt;P&gt;Try this as 2nd exp:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum&lt;/STRONG&gt;(IF(DAILY_NRP&amp;gt;NRP,NRP,DAILY_NRP))&lt;/P&gt;</description>
    <pubDate>Fri, 09 Aug 2019 09:59:22 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2019-08-09T09:59:22Z</dc:date>
    <item>
      <title>Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Expression/m-p/1611065#M445233</link>
      <description>&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a pivot table in my attached Qv&amp;nbsp; file. In this pivot table I have two exprression&lt;/P&gt;&lt;P&gt;Exp 1&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;SUM(NRP)&lt;/P&gt;&lt;P&gt;Exp 2&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;IF(DAILY_NRP&amp;gt;(NRP),SUM(NRP),SUM(DAILY_NRP))&lt;/P&gt;&lt;P&gt;I am expecting same total Value from both of these expression but it gives two different values. May be My Exp 2 is incorrect But I want to use Exp2 in my Pivot table. Therefore Kindly help me to correct my Exp 2.. I have attached the file pls&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 09:51:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression/m-p/1611065#M445233</guid>
      <dc:creator>upaliwije</dc:creator>
      <dc:date>2019-08-09T09:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Expression/m-p/1611073#M445234</link>
      <description>&lt;P&gt;Try this as 2nd exp:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum&lt;/STRONG&gt;(IF(DAILY_NRP&amp;gt;NRP,NRP,DAILY_NRP))&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 09:59:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression/m-p/1611073#M445234</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2019-08-09T09:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Expression/m-p/1611075#M445235</link>
      <description>&lt;P&gt;You need to either use sum in the test in the if statement as well:&lt;/P&gt;&lt;P&gt;IF(sum(DAILY_NRP)&amp;gt;sum(NRP),SUM(NRP),SUM(DAILY_NRP))&lt;/P&gt;&lt;P&gt;Or you need to move the if inside the sum: sum(if(DAILY_NRP&amp;gt;NRP,DAILY_NRP,NRP). If that's what you need then replace the if with a rangemax: sum(RangeMax(DAILY_NRP,NRP))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 10:02:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression/m-p/1611075#M445235</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2019-08-09T10:02:15Z</dc:date>
    </item>
  </channel>
</rss>

