<?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: Sum doesn't work in Straight Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-doesn-t-work-in-Straight-Table/m-p/1302843#M844729</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the table&lt;/P&gt;&lt;P&gt;sum( rangesum(VAr1,Var2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or In the script&lt;/P&gt;&lt;P&gt;rangesum(VAr1,Var2) as #nameSumVAr &lt;/P&gt;&lt;P&gt;and then in Table&lt;/P&gt;&lt;P&gt;sum(&lt;SPAN style="font-size: 13.3333px;"&gt;#nameSumVAr&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gruß gerold&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Apr 2017 07:26:18 GMT</pubDate>
    <dc:creator>gerry_hdm</dc:creator>
    <dc:date>2017-04-12T07:26:18Z</dc:date>
    <item>
      <title>Sum doesn't work in Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-doesn-t-work-in-Straight-Table/m-p/1302839#M844725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using view to load data.&lt;/P&gt;&lt;P&gt;it has two colums in number data type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After load the data i use above two columns to add them together in expression. but some records were not available in the grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex- when id = 120, both columns has ' 0 ' data that records is not available.&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/Sum-doesn-t-work-in-Straight-Table/m-p/1302839#M844725</guid>
      <dc:creator>anuradhaa</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Sum doesn't work in Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-doesn-t-work-in-Straight-Table/m-p/1302840#M844726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be use &lt;STRONG&gt;RanguSum(Column1, Column2)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you should show data and expected result&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2017 06:49:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-doesn-t-work-in-Straight-Table/m-p/1302840#M844726</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-04-12T06:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: Sum doesn't work in Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-doesn-t-work-in-Straight-Table/m-p/1302841#M844727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found the issue,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use Val1 + Val 2 in my expression,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use if((Val1 + Val 2)&amp;gt;0,(Val1 + Val 2),'0.00').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but when i use this, that raw doesn't show.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but use if((Val1 + Val 2)&amp;gt;0,(Val1 + Val 2),'www').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it shows 'www' when val1 and val2 is 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Val1 + Val 2 also don't show any record&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2017 06:59:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-doesn-t-work-in-Straight-Table/m-p/1302841#M844727</guid>
      <dc:creator>anuradhaa</dc:creator>
      <dc:date>2017-04-12T06:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: Sum doesn't work in Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-doesn-t-work-in-Straight-Table/m-p/1302842#M844728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if I understand your issue, but I think what you need is this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=RangeMax(RangeSum(Val1, Val2), 0) &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The RangeSum ensures that a null value in either field does not result in a null result. The RangeMax replaces your If() and returns only the positive values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2017 07:21:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-doesn-t-work-in-Straight-Table/m-p/1302842#M844728</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2017-04-12T07:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: Sum doesn't work in Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-doesn-t-work-in-Straight-Table/m-p/1302843#M844729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the table&lt;/P&gt;&lt;P&gt;sum( rangesum(VAr1,Var2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or In the script&lt;/P&gt;&lt;P&gt;rangesum(VAr1,Var2) as #nameSumVAr &lt;/P&gt;&lt;P&gt;and then in Table&lt;/P&gt;&lt;P&gt;sum(&lt;SPAN style="font-size: 13.3333px;"&gt;#nameSumVAr&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gruß gerold&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2017 07:26:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-doesn-t-work-in-Straight-Table/m-p/1302843#M844729</guid>
      <dc:creator>gerry_hdm</dc:creator>
      <dc:date>2017-04-12T07:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: Sum doesn't work in Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-doesn-t-work-in-Straight-Table/m-p/1302844#M844730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anuradha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure if i understand your issue correctly, if you are talking about total row at the bottom..check if you enabled Sum of Rows instead of Expression Total under the Expression tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Total Mode.JPG" class="jive-image image-1" src="/legacyfs/online/159823_Total Mode.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2017 08:39:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-doesn-t-work-in-Straight-Table/m-p/1302844#M844730</guid>
      <dc:creator>Siva_Sankar</dc:creator>
      <dc:date>2017-04-12T08:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Sum doesn't work in Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-doesn-t-work-in-Straight-Table/m-p/1302845#M844731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;but use if((Val1 + Val 2)&amp;gt;0,(Val1 + Val 2),'www').&lt;/P&gt;
&lt;P&gt;it shows 'www' when val1 and val2 is 0.&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Because, Here you are taking only o above data. If you want to calculate with 0 then expression should this&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;if((Val1 + Val 2)&amp;gt;=0,(Val1 + Val 2),'www')&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2017 08:44:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-doesn-t-work-in-Straight-Table/m-p/1302845#M844731</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-04-12T08:44:21Z</dc:date>
    </item>
  </channel>
</rss>

