<?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: use of total when fabs is used in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/use-of-total-when-fabs-is-used/m-p/428664#M159776</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you send sample qvw file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Dec 2012 13:39:44 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-12-12T13:39:44Z</dc:date>
    <item>
      <title>use of total when fabs is used</title>
      <link>https://community.qlik.com/t5/QlikView/use-of-total-when-fabs-is-used/m-p/428663#M159775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sum &lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TRX&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)/(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TOTAL&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TRX&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))/&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ZIP_CODE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)))&amp;nbsp; - this formula works fine but i am facing issues when i replicate this formula in another expression which is&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fabs(Sum(TRX)-(Sum ({$&amp;lt;WEEK_END_DATE={"$(=date( max(WEEK_END_DATE)-7))"}&amp;gt;}TRX)))&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;(sum(TOTAL(fabs(Sum(TRX)-(Sum ({$&amp;lt;WEEK_END_DATE={"$(=date( max(WEEK_END_DATE)-7))"}&amp;gt;}TRX))))))/ (Count(DISTINCT(ZIP_CODE)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;can anyone tell me where im going wrong, the formula does&amp;nbsp; not show an error&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2012 06:41:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/use-of-total-when-fabs-is-used/m-p/428663#M159775</guid>
      <dc:creator />
      <dc:date>2012-12-12T06:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: use of total when fabs is used</title>
      <link>https://community.qlik.com/t5/QlikView/use-of-total-when-fabs-is-used/m-p/428664#M159776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you send sample qvw file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2012 13:39:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/use-of-total-when-fabs-is-used/m-p/428664#M159776</guid>
      <dc:creator />
      <dc:date>2012-12-12T13:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: use of total when fabs is used</title>
      <link>https://community.qlik.com/t5/QlikView/use-of-total-when-fabs-is-used/m-p/428665#M159777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sum over the sum is not possible.&lt;/P&gt;&lt;P&gt;Can you tell me what is your requirement?&lt;/P&gt;&lt;P&gt;Aggr is the only way to use sum over the sum like&lt;/P&gt;&lt;P&gt;Sum(Total Aggr(Fabs(Sum(FieldName)), DimField))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2012 17:20:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/use-of-total-when-fabs-is-used/m-p/428665#M159777</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-12-12T17:20:37Z</dc:date>
    </item>
  </channel>
</rss>

