<?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: FABS() with a SUM() in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/FABS-with-a-SUM/m-p/359659#M133525</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you are doing it in the wrong order :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is how it should be : sum(FABS([RevTrack_Receita Vlr Cancelamento Bruto]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;giakoum&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Jun 2012 14:17:14 GMT</pubDate>
    <dc:creator>giakoum</dc:creator>
    <dc:date>2012-06-19T14:17:14Z</dc:date>
    <item>
      <title>FABS() with a SUM()</title>
      <link>https://community.qlik.com/t5/QlikView/FABS-with-a-SUM/m-p/359654#M133520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the follow data structue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dtSales, Value&lt;/P&gt;&lt;P&gt;dd/mm/yyyy, decimal value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the value I have positive and negative values, I need an absolute sum per month/year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I´m doing it with FABS(SUM(value)) in the expression and&amp;nbsp; date(dtSales,'MM/YYYY') in the dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that when I show the total of vaue column it does not consider the fabs() function and show a total smaller then the expectation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;----&lt;/P&gt;&lt;P&gt;Attached is a file with the problem. Note that the first column is using the Fabs function and the second is just the sum and both have the same total in the top.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The correct SUM of Fabs fuction expected is 276,62 (see it in excel)&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help? thanks in advance !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2012 12:51:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FABS-with-a-SUM/m-p/359654#M133520</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-19T12:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: FABS() with a SUM()</title>
      <link>https://community.qlik.com/t5/QlikView/FABS-with-a-SUM/m-p/359655#M133521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FABS(x) should return the absolute value of &lt;SPAN style="font-style: italic;"&gt;x&lt;/SPAN&gt;. The result is a positive number.&lt;/P&gt;&lt;P&gt;I tested this and it works like I should expcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you share with us your Qlikview document so we can take a look?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2012 13:27:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FABS-with-a-SUM/m-p/359655#M133521</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-19T13:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: FABS() with a SUM()</title>
      <link>https://community.qlik.com/t5/QlikView/FABS-with-a-SUM/m-p/359656#M133522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;as per my understanding..............u need only postive vaules even though they are -ve &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try adding a column say fabs(units) as newunits then sum(newunits)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will give your expected result&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2012 13:41:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FABS-with-a-SUM/m-p/359656#M133522</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-19T13:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: FABS() with a SUM()</title>
      <link>https://community.qlik.com/t5/QlikView/FABS-with-a-SUM/m-p/359657#M133523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Done in original post. Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2012 13:52:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FABS-with-a-SUM/m-p/359657#M133523</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-19T13:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: FABS() with a SUM()</title>
      <link>https://community.qlik.com/t5/QlikView/FABS-with-a-SUM/m-p/359658#M133524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://community.qlik.com/people/srikanthsri1" id="jive-8448728546082636708398" style="background-color: #f9f9f9; font-size: 12px; color: #007fc0; font-weight: bold; font-family: Arial; text-align: center;"&gt;srikanthsri1&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue is that I need the Fabs from the SUM of the MM/YYY and not from each value of the days.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2012 13:55:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FABS-with-a-SUM/m-p/359658#M133524</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-19T13:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: FABS() with a SUM()</title>
      <link>https://community.qlik.com/t5/QlikView/FABS-with-a-SUM/m-p/359659#M133525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you are doing it in the wrong order :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is how it should be : sum(FABS([RevTrack_Receita Vlr Cancelamento Bruto]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;giakoum&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2012 14:17:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FABS-with-a-SUM/m-p/359659#M133525</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2012-06-19T14:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: FABS() with a SUM()</title>
      <link>https://community.qlik.com/t5/QlikView/FABS-with-a-SUM/m-p/359660#M133526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://community.qlik.com/people/giakoum" id="jive-1523528548177501652398" style="background-color: #f9f9f9; font-size: 12px; color: #007fc0; font-weight: bold; font-family: Arial; text-align: center;"&gt;giakoum&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No, the line value is correct, the problem is the Subtotal calculated by the graphic. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need the absolute value of the SUM of all values in each month/year. See that as you suggested, the value goes tmuch higher the expected 276,62 &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2012 14:31:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FABS-with-a-SUM/m-p/359660#M133526</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-19T14:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: FABS() with a SUM()</title>
      <link>https://community.qlik.com/t5/QlikView/FABS-with-a-SUM/m-p/359661#M133527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry misunderstood.&lt;/P&gt;&lt;P&gt;change it to straight table and then in the expression total mode select sum of rows.&lt;/P&gt;&lt;P&gt;See attached.&lt;/P&gt;&lt;P&gt;BR, giakoum&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2012 14:42:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FABS-with-a-SUM/m-p/359661#M133527</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2012-06-19T14:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: FABS() with a SUM()</title>
      <link>https://community.qlik.com/t5/QlikView/FABS-with-a-SUM/m-p/359662#M133528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;OBJECT classid="CLSID:A806E1D7-B077-415E-AF08-28AFE10DDF4A" height="309" id="QlikOCX" width="1388"&gt; &lt;/OBJECT&gt;&lt;STRONG style="font-size: 12px; font-family: Arial; text-align: center;"&gt;giakoum,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Excelent, worked fine. Can I have a function to do the same in a text box with the total value only?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I mean: I want a text box with the total value from this column. Can I use any aggregatin function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2012 14:52:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FABS-with-a-SUM/m-p/359662#M133528</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-19T14:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: FABS() with a SUM()</title>
      <link>https://community.qlik.com/t5/QlikView/FABS-with-a-SUM/m-p/359663#M133529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=num(sum(aggr(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;FABS(SUM([RevTrack_Receita Vlr Cancelamento Bruto])) /1000000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;, [RevTrack_Receita DtRef])), 'R$ #.##0,00;-R$ #.##0,00')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2012 15:09:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FABS-with-a-SUM/m-p/359663#M133529</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2012-06-19T15:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: FABS() with a SUM()</title>
      <link>https://community.qlik.com/t5/QlikView/FABS-with-a-SUM/m-p/359664#M133530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi alvrorogrigues,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(si sabés español, como supongo, avisame que para mí es mejor!)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that three periods (12/09, 05/09 and 03/09) has different sign that the rest.Whitout FABS, all are negative but these three. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In each period, Sum takes the sum of all values from the period, and FABS if its negative, converts to positive. In total, Sum takes (again) the summ of all values from all the data, and then if the result (not for sum of each period like you are doing with excel) is negative, convert to positive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depends on what you need. If you need to get the sum of each period value, you have two choices:&lt;/P&gt;&lt;P&gt;- use the folowing expression:&lt;/P&gt;&lt;P&gt;=sum(AGGR(FABS(SUM([RevTrack_Receita Vlr Cancelamento Bruto])), [RevTrack_Receita DtRef]))&lt;/P&gt;&lt;P&gt;/1000000 &lt;/P&gt;&lt;P&gt;- use a pivot table instead of straight table, and select "Sum of Files" (instead Total expression) in Total Mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need that the TOTAL works like same way as the rest of values (first SUM, then get absolute value), the applications is working good.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2012 15:15:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FABS-with-a-SUM/m-p/359664#M133530</guid>
      <dc:creator>sebastiandperei</dc:creator>
      <dc:date>2012-06-19T15:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: FABS() with a SUM()</title>
      <link>https://community.qlik.com/t5/QlikView/FABS-with-a-SUM/m-p/359665#M133531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I guess I also answered your post in QlikView Brasil... &lt;/P&gt;&lt;P&gt;But now that I saw your original .qvw&lt;/P&gt;&lt;P&gt;You can use the expressions suggested by giakoum but you can leave the number formatting to the number properties tab of the object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum ( aggr( &lt;/P&gt;&lt;P&gt;fabs( SUM([RevTrack_Receita Vlr Cancelamento Bruto])/1000000) &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;, [RevTrack_Receita DtRef] ) ) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2012 15:20:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FABS-with-a-SUM/m-p/359665#M133531</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2012-06-19T15:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: FABS() with a SUM()</title>
      <link>https://community.qlik.com/t5/QlikView/FABS-with-a-SUM/m-p/359666#M133532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2012 15:39:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FABS-with-a-SUM/m-p/359666#M133532</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-19T15:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: FABS() with a SUM()</title>
      <link>https://community.qlik.com/t5/QlikView/FABS-with-a-SUM/m-p/359667#M133533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hehe... Espero al menos te sirva mi explicación Alvaro!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Saludos,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2012 17:12:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FABS-with-a-SUM/m-p/359667#M133533</guid>
      <dc:creator>sebastiandperei</dc:creator>
      <dc:date>2012-06-19T17:12:26Z</dc:date>
    </item>
  </channel>
</rss>

