<?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: Straight Table Calculations in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Straight-Table-Calculations/m-p/138706#M751607</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actual Sales = Sum ([Actual Sales])&lt;/P&gt;&lt;P&gt;Lag3 Forecast = Sum ([Lag3 Forecast])&lt;/P&gt;&lt;P&gt;ABS Error = fabs(Sum ([Actual Sales])-Sum ([Lag3 Forecast]))&lt;/P&gt;&lt;P&gt;Accuracy = Sum ([Actual Sales])/Sum ([Lag3 Forecast])&lt;/P&gt;&lt;P&gt;Dispersion = (fabs(Sum ([Actual Sales])-Sum ([Lag3 Forecast]))) /( Sum ([Lag3 Forecast]))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Oct 2018 19:53:13 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-10-25T19:53:13Z</dc:date>
    <item>
      <title>Straight Table Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-Table-Calculations/m-p/138702#M751603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ! I am very new to QV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see attached..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the dispersion work great on the individual months, but the aggregate accuracy/dispersion isn't working correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dispersion needs to be the 'sum of the rows of the ABS(error) / total Lag3 forecast.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help,,,,&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/Straight-Table-Calculations/m-p/138702#M751603</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Straight Table Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-Table-Calculations/m-p/138703#M751604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The dispersion should be 57%, not 20%&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2018 19:10:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-Table-Calculations/m-p/138703#M751604</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-25T19:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: Straight Table Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-Table-Calculations/m-p/138704#M751605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Whats the expression for the column and also what have you set the total mode as?&lt;/P&gt;&lt;P&gt;a sample app would help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2018 19:40:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-Table-Calculations/m-p/138704#M751605</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2018-10-25T19:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: Straight Table Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-Table-Calculations/m-p/138705#M751606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What are your expressions for ABS and Lag3? Wrap them around with Sum(Aggr(, Dimensions)) and it should work fine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Aggr(ABSExpression, YourDimensions))/Sum(Aggr(Lag3Expression, YourDimensions))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2018 19:41:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-Table-Calculations/m-p/138705#M751606</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-10-25T19:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: Straight Table Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-Table-Calculations/m-p/138706#M751607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actual Sales = Sum ([Actual Sales])&lt;/P&gt;&lt;P&gt;Lag3 Forecast = Sum ([Lag3 Forecast])&lt;/P&gt;&lt;P&gt;ABS Error = fabs(Sum ([Actual Sales])-Sum ([Lag3 Forecast]))&lt;/P&gt;&lt;P&gt;Accuracy = Sum ([Actual Sales])/Sum ([Lag3 Forecast])&lt;/P&gt;&lt;P&gt;Dispersion = (fabs(Sum ([Actual Sales])-Sum ([Lag3 Forecast]))) /( Sum ([Lag3 Forecast]))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2018 19:53:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-Table-Calculations/m-p/138706#M751607</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-25T19:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: Straight Table Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-Table-Calculations/m-p/138707#M751608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do not see how to upload the QV&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2018 19:54:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-Table-Calculations/m-p/138707#M751608</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-25T19:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: Straight Table Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-Table-Calculations/m-p/138708#M751609</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;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Aggr(fabs(Sum ([Actual Sales])-Sum ([Lag3 Forecast])), [*DmdUnit], [Actual Month]))/Sum ([Lag3 Forecast])&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2018 19:55:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-Table-Calculations/m-p/138708#M751609</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-10-25T19:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: Straight Table Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-Table-Calculations/m-p/138709#M751610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect !&lt;BR /&gt; &lt;/P&gt;&lt;P&gt;I assume that if I remove the DmdUnit and Actual Month's fields from the table - it will no longer work ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's say I only want a simple table that just shows that accuracy and dispersion for the selected dmdunit and months - but not actually in the table ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2018 20:01:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-Table-Calculations/m-p/138709#M751610</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-25T20:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: Straight Table Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-Table-Calculations/m-p/138710#M751611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure I follow, you want to show this in a text box object?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2018 00:50:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-Table-Calculations/m-p/138710#M751611</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-10-26T00:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: Straight Table Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-Table-Calculations/m-p/138711#M751612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you remove the DmdUnit and Actual Month fields as dimensions the calculations should still work, you just won't be able to see the accuracy and dispersion per Dmdunit/Actual Month combination anymore, just the total. But if you only want to see these 2 values then you might be better off using text box objects as Sunny suggested, that might look a bit better.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2018 06:57:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-Table-Calculations/m-p/138711#M751612</guid>
      <dc:creator>jensmunnichs</dc:creator>
      <dc:date>2018-10-26T06:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: Straight Table Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-Table-Calculations/m-p/138712#M751613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Table works great with new formula.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/216871_Capture.JPG" style="font-size: 13.3333px;" /&gt;&lt;/P&gt;&lt;P&gt;Now, I copy the table and remove the dmdunit and actual month:&lt;/P&gt;&lt;P&gt;Sales, Forecast are correct, but the ABS Error is only showing the difference.. it should be the sum of the months selected (but not in the table). I assume the formula needs to change :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@sunny talwar&amp;nbsp; - Can you assist again on this formula?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/216881_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2018 12:12:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-Table-Calculations/m-p/138712#M751613</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-26T12:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: Straight Table Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-Table-Calculations/m-p/138713#M751614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, the issue is ABS Error expression now and not Dispersion, right? Try this for ABS Error&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(Aggr(fabs(Sum ([Actual Sales])-Sum ([Lag3 Forecast])), [*DmdUnit], [Actual Month]))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2018 12:16:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-Table-Calculations/m-p/138713#M751614</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-10-26T12:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Straight Table Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-Table-Calculations/m-p/138714#M751615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Beautiful !!!!&lt;/P&gt;&lt;P&gt;Thank you very much... You have saved the day !&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/216885_Capture.JPG" style="height: 294px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2018 12:25:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-Table-Calculations/m-p/138714#M751615</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-26T12:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: Straight Table Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-Table-Calculations/m-p/138715#M751616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Have a look at this blog post. I think it'll explain what's happening in your total row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3798"&gt;Totals in Charts&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TL;DR; unless specified otherwise, the total line in a table will try to calculate the expression over the full set of data in your table. So in this case it would sum all actual sales and sum all forecasted sales and calculate the difference. If you want it to show sum instead, use Sunny's expression instead or switch the 'total mode' in the expression tab to 'sum of rows' for this expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2018 12:27:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-Table-Calculations/m-p/138715#M751616</guid>
      <dc:creator>jensmunnichs</dc:creator>
      <dc:date>2018-10-26T12:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: Straight Table Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-Table-Calculations/m-p/138716#M751617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad to help. Please close the thread by marking correct and helpful responses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2018 12:57:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-Table-Calculations/m-p/138716#M751617</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-10-26T12:57:37Z</dc:date>
    </item>
  </channel>
</rss>

