<?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: In Pivot table, How to fabs firstly then sum in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/In-Pivot-table-How-to-fabs-firstly-then-sum/m-p/935353#M467619</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;You can try using Aggr() like below&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;=Sum(Aggr(Fabs(Forecast-Demand), item))&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 the best thing is calculate in the script itself&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;LOAD&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;/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;Forecast - Demand AS ForecastDiff&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;FROM DataSource;&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;Now you can straight away use&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(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ForecastDiff)&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;Note: If data is huge Aggr() will have performance issues.&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;&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;Hope this helps you.&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>Thu, 05 Nov 2015 03:56:31 GMT</pubDate>
    <dc:creator>jagan</dc:creator>
    <dc:date>2015-11-05T03:56:31Z</dc:date>
    <item>
      <title>In Pivot table, How to fabs firstly then sum</title>
      <link>https://community.qlik.com/t5/QlikView/In-Pivot-table-How-to-fabs-firstly-then-sum/m-p/935348#M467614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Guys&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I met a big problem on ABS function&lt;/P&gt;&lt;P&gt;I need to get the final result is sum all the item absloute deviation&lt;/P&gt;&lt;P&gt;for example&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;item&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Forecast&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Demand&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;a&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;12&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;b&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;c&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;The correct anwser is |10-12|+|10-8|+|10-10| = 4&lt;/P&gt;&lt;P&gt;not |10+10+10 - 12-8-10| = 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From my previous experience, I create a temp table to store each absloute deviation, the put them in the pivot table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the new case is the Demand is composed of three kinds of Demand&lt;/P&gt;&lt;P&gt;Take first row 12 as example, 12 comes from&amp;nbsp; 8(current)+4 (future) + 0 (old)&lt;/P&gt;&lt;P&gt;The user want to add a filter to customize the real Demand (8+4 or 8 lonely)&lt;/P&gt;&lt;P&gt;Then how do I create the&amp;nbsp; temp table to calculate each independent absloute deviation to suit for the filter?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2015 11:15:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/In-Pivot-table-How-to-fabs-firstly-then-sum/m-p/935348#M467614</guid>
      <dc:creator />
      <dc:date>2015-11-04T11:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: In Pivot table, How to fabs firstly then sum</title>
      <link>https://community.qlik.com/t5/QlikView/In-Pivot-table-How-to-fabs-firstly-then-sum/m-p/935349#M467615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if Forecast and Demand are two expression in your chart, then use 3rd expression like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Forecast - Demand&amp;nbsp; //Expression label name, you can use abs() as well &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2015 12:06:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/In-Pivot-table-How-to-fabs-firstly-then-sum/m-p/935349#M467615</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-04T12:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: In Pivot table, How to fabs firstly then sum</title>
      <link>https://community.qlik.com/t5/QlikView/In-Pivot-table-How-to-fabs-firstly-then-sum/m-p/935350#M467616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be something like this;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;&lt;STRONG&gt;Sum(Fabs(RangeSum(Forecast, Demand))) &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="text-decoration: line-through;"&gt;or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; text-decoration: line-through;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; text-decoration: line-through;"&gt;&lt;STRONG&gt;Sum(Aggr(Fabs(RangeSum(Forecast, Demand)), Item))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Sum(Fabs(RangeSum(Forecast, -Demand))) &lt;/STRONG&gt;or&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Sum(Aggr(Fabs(RangeSum(Forecast, -Demand)), Item))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/103893_Capture.PNG" style="height: 116px; width: 620px;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2015 12:06:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/In-Pivot-table-How-to-fabs-firstly-then-sum/m-p/935350#M467616</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-11-04T12:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: In Pivot table, How to fabs firstly then sum</title>
      <link>https://community.qlik.com/t5/QlikView/In-Pivot-table-How-to-fabs-firstly-then-sum/m-p/935351#M467617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in item level it worked&lt;/P&gt;&lt;P&gt;but if in higher level, the summary will sum first then abs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2015 02:46:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/In-Pivot-table-How-to-fabs-firstly-then-sum/m-p/935351#M467617</guid>
      <dc:creator />
      <dc:date>2015-11-05T02:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: In Pivot table, How to fabs firstly then sum</title>
      <link>https://community.qlik.com/t5/QlikView/In-Pivot-table-How-to-fabs-firstly-then-sum/m-p/935352#M467618</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;You can use this as your expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(aggr(fabs(Forecast-Demand),Item))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2015 03:30:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/In-Pivot-table-How-to-fabs-firstly-then-sum/m-p/935352#M467618</guid>
      <dc:creator>marcohadiyanto</dc:creator>
      <dc:date>2015-11-05T03:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: In Pivot table, How to fabs firstly then sum</title>
      <link>https://community.qlik.com/t5/QlikView/In-Pivot-table-How-to-fabs-firstly-then-sum/m-p/935353#M467619</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;You can try using Aggr() like below&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;=Sum(Aggr(Fabs(Forecast-Demand), item))&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 the best thing is calculate in the script itself&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;LOAD&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;/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;Forecast - Demand AS ForecastDiff&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;FROM DataSource;&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;Now you can straight away use&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(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ForecastDiff)&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;Note: If data is huge Aggr() will have performance issues.&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;&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;Hope this helps you.&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>Thu, 05 Nov 2015 03:56:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/In-Pivot-table-How-to-fabs-firstly-then-sum/m-p/935353#M467619</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-11-05T03:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: In Pivot table, How to fabs firstly then sum</title>
      <link>https://community.qlik.com/t5/QlikView/In-Pivot-table-How-to-fabs-firstly-then-sum/m-p/935354#M467620</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;did you try simple expression like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum(fabs(Forecast-Demand))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2015 03:58:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/In-Pivot-table-How-to-fabs-firstly-then-sum/m-p/935354#M467620</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2015-11-05T03:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: In Pivot table, How to fabs firstly then sum</title>
      <link>https://community.qlik.com/t5/QlikView/In-Pivot-table-How-to-fabs-firstly-then-sum/m-p/935355#M467621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your guys anwser, the total amount will be aggrated on the top by the straight table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in addition, if i want to display in month level ,for example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;201505&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;201506&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&lt;/P&gt;&lt;P&gt;In pivot table it may expand to monthly item level, but here we knows must use straight table , so how to display the month level abs?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need a chart to describe the monthly trend, so i need each month point abs first then sum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2015 06:57:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/In-Pivot-table-How-to-fabs-firstly-then-sum/m-p/935355#M467621</guid>
      <dc:creator />
      <dc:date>2015-11-05T06:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: In Pivot table, How to fabs firstly then sum</title>
      <link>https://community.qlik.com/t5/QlikView/In-Pivot-table-How-to-fabs-firstly-then-sum/m-p/935356#M467622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your guys anwser, the total amount will be aggrated on the top by the straight table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in addition, if i want to display in month level ,for example &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;201505&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;201506&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&lt;/P&gt;&lt;P&gt;In pivot table it may expand to monthly item level, but here we knows must use straight table , so how to display the month level abs?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need a chart to describe the monthly trend, so i need each month point abs first then sum &lt;A href="https://community.qlik.com/qlik-users/43651"&gt;chooco_co&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2015 06:59:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/In-Pivot-table-How-to-fabs-firstly-then-sum/m-p/935356#M467622</guid>
      <dc:creator />
      <dc:date>2015-11-05T06:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: In Pivot table, How to fabs firstly then sum</title>
      <link>https://community.qlik.com/t5/QlikView/In-Pivot-table-How-to-fabs-firstly-then-sum/m-p/935357#M467623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jarven,,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you share your simple data and your expected result so we can help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2015 11:29:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/In-Pivot-table-How-to-fabs-firstly-then-sum/m-p/935357#M467623</guid>
      <dc:creator>marcohadiyanto</dc:creator>
      <dc:date>2015-11-05T11:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: In Pivot table, How to fabs firstly then sum</title>
      <link>https://community.qlik.com/t5/QlikView/In-Pivot-table-How-to-fabs-firstly-then-sum/m-p/935358#M467624</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;Just give month as dimension.&amp;nbsp; The expression remains same.&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>Thu, 05 Nov 2015 11:35:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/In-Pivot-table-How-to-fabs-firstly-then-sum/m-p/935358#M467624</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-11-05T11:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: In Pivot table, How to fabs firstly then sum</title>
      <link>https://community.qlik.com/t5/QlikView/In-Pivot-table-How-to-fabs-firstly-then-sum/m-p/935359#M467625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;Just give month as dimension.&amp;nbsp; The expression remains same.&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;This will work.&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;Regards,&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2015 02:06:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/In-Pivot-table-How-to-fabs-firstly-then-sum/m-p/935359#M467625</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-11-06T02:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: In Pivot table, How to fabs firstly then sum</title>
      <link>https://community.qlik.com/t5/QlikView/In-Pivot-table-How-to-fabs-firstly-then-sum/m-p/935360#M467626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp; thanks for your suggestions&lt;/P&gt;&lt;P&gt;And now there is a new questions after three month &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Range Sum is the bottom level sum depends on the data&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;in my raw data, the bottom level is Month &amp;amp; Product&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); border-image: none; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Quarter&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Month&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Product&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Forecast&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Demand&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2015Q1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;201501&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;P1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;100&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2015Q1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;201503&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;P2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;20&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2015Q1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;201503&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;P2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;80&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I use your formula&amp;nbsp; &lt;STRONG&gt;Sum(Fabs(RangeSum(Forecast, -Demand)))&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;It could only get the monthly abs&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;How can I get the quarterly abs , and is it possible to have a formula or table to get each quarterly abs then dividied into monthly abs? (Use aggr or sum total)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 08:51:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/In-Pivot-table-How-to-fabs-firstly-then-sum/m-p/935360#M467626</guid>
      <dc:creator />
      <dc:date>2016-01-20T08:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: In Pivot table, How to fabs firstly then sum</title>
      <link>https://community.qlik.com/t5/QlikView/In-Pivot-table-How-to-fabs-firstly-then-sum/m-p/935361#M467627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum(&lt;SPAN style="color: #ff0000;"&gt;Aggr(&lt;/SPAN&gt;Fabs(RangeSum(Forecast, -Demand))&lt;SPAN style="color: #ff0000;"&gt;, Product, Month)&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 10:01:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/In-Pivot-table-How-to-fabs-firstly-then-sum/m-p/935361#M467627</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-20T10:01:19Z</dc:date>
    </item>
  </channel>
</rss>

