<?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 negative and positive values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/sum-negative-and-positive-values/m-p/933536#M978400</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do you want to handle the negative values? Use the absolute values instead or setting the value to zero?&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;Income - (fabs(Adjust)+fabs(Payments)+ fabs(Credits))) as Amount&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-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Income - (rangemax(Adjust,0)+rangemax(Payments,0)+ rangemax(Credits,0))) as Amount&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 30 Aug 2015 22:34:07 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2015-08-30T22:34:07Z</dc:date>
    <item>
      <title>sum negative and positive values</title>
      <link>https://community.qlik.com/t5/QlikView/sum-negative-and-positive-values/m-p/933535#M978398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have 4 fields that I&amp;nbsp; need to sum, but this doesn't work since there can be many negative values, and that calculates wrong in in the script. &lt;/P&gt;&lt;P&gt;this is what the calc looks like in the load script:&lt;/P&gt;&lt;P&gt;Income - (Adjust+Payments+ Credits)) as Amount&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Income is always positive. Adjustments, Payments and credits can be either positive and/or negative.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for quick reply &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Aug 2015 16:41:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-negative-and-positive-values/m-p/933535#M978398</guid>
      <dc:creator />
      <dc:date>2015-08-29T16:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: sum negative and positive values</title>
      <link>https://community.qlik.com/t5/QlikView/sum-negative-and-positive-values/m-p/933536#M978400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do you want to handle the negative values? Use the absolute values instead or setting the value to zero?&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;Income - (fabs(Adjust)+fabs(Payments)+ fabs(Credits))) as Amount&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-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Income - (rangemax(Adjust,0)+rangemax(Payments,0)+ rangemax(Credits,0))) as Amount&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Aug 2015 22:34:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-negative-and-positive-values/m-p/933536#M978400</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-08-30T22:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: sum negative and positive values</title>
      <link>https://community.qlik.com/t5/QlikView/sum-negative-and-positive-values/m-p/933537#M978402</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;Can you attach some sample data and your expected result?&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>Mon, 31 Aug 2015 01:41:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-negative-and-positive-values/m-p/933537#M978402</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-08-31T01:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: sum negative and positive values</title>
      <link>https://community.qlik.com/t5/QlikView/sum-negative-and-positive-values/m-p/933538#M978404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;Income - &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;fabs(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Adjust&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;) - fabs(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Payments&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;) - fabs(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Credits&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2015 02:59:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-negative-and-positive-values/m-p/933538#M978404</guid>
      <dc:creator>svenkita</dc:creator>
      <dc:date>2015-08-31T02:59:37Z</dc:date>
    </item>
  </channel>
</rss>

