<?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/888062#M309539</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If all data are in the same table then use Rangesum() like below because some of the values are null then when you do sum the sum will results null.&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;Rangesum(CL_AMT, -RECOV, -FORE)&lt;/SPAN&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;BR /&gt;&lt;/SPAN&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;OR&lt;/SPAN&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;BR /&gt;&lt;/SPAN&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;Sum(Alt(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;CL_AMT, 0), -Alt(RECOV, 0), -Alt(FORE, 0))&lt;/SPAN&gt;&lt;/SPAN&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;BR /&gt;&lt;/SPAN&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;Regards,&lt;/SPAN&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;jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 14 Jun 2015 11:21:44 GMT</pubDate>
    <dc:creator>jagan</dc:creator>
    <dc:date>2015-06-14T11:21:44Z</dc:date>
    <item>
      <title>expression</title>
      <link>https://community.qlik.com/t5/QlikView/expression/m-p/888057#M309534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI FRIENDS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I Have two following expression in my pivot table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(CL_AMT-RECOV-FORE)&lt;/P&gt;&lt;P&gt;sum(CL_AMT)-sum(RECOV)-sum(FORE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Results of the two expression are different. second one gives me the correct result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any reason for this ? pls let me know&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Jun 2015 10:27:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression/m-p/888057#M309534</guid>
      <dc:creator>upaliwije</dc:creator>
      <dc:date>2015-06-14T10:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: expression</title>
      <link>https://community.qlik.com/t5/QlikView/expression/m-p/888058#M309535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the three fields are located in different tables in your data model, QV will use a temporary join to calculate first expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Jun 2015 10:38:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression/m-p/888058#M309535</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-06-14T10:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: expression</title>
      <link>https://community.qlik.com/t5/QlikView/expression/m-p/888059#M309536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ALL DATA ARE IN SAME TABLE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Jun 2015 10:41:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression/m-p/888059#M309536</guid>
      <dc:creator>upaliwije</dc:creator>
      <dc:date>2015-06-14T10:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: expression</title>
      <link>https://community.qlik.com/t5/QlikView/expression/m-p/888060#M309537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If values are null,&amp;nbsp; record in first expression will contribute with Null. Try sum(rangesum(amount,-recov,-forecast))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Jun 2015 10:51:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression/m-p/888060#M309537</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-06-14T10:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: expression</title>
      <link>https://community.qlik.com/t5/QlikView/expression/m-p/888061#M309538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If all the three fields are in the same table, then both the expressions will match, if those are in different tables then they may or may not match, because of the joining may be some records will miss on the joining or when joined some records values may be null.&amp;nbsp; This are the possible chances hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Jun 2015 11:18:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression/m-p/888061#M309538</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-06-14T11:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: expression</title>
      <link>https://community.qlik.com/t5/QlikView/expression/m-p/888062#M309539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If all data are in the same table then use Rangesum() like below because some of the values are null then when you do sum the sum will results null.&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;Rangesum(CL_AMT, -RECOV, -FORE)&lt;/SPAN&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;BR /&gt;&lt;/SPAN&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;OR&lt;/SPAN&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;BR /&gt;&lt;/SPAN&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;Sum(Alt(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;CL_AMT, 0), -Alt(RECOV, 0), -Alt(FORE, 0))&lt;/SPAN&gt;&lt;/SPAN&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;BR /&gt;&lt;/SPAN&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;Regards,&lt;/SPAN&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;jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Jun 2015 11:21:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression/m-p/888062#M309539</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-06-14T11:21:44Z</dc:date>
    </item>
  </channel>
</rss>

