<?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: TOTAL in straight-table ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/TOTAL-in-straight-table/m-p/507539#M1126133</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please reduce the size. Select some field value for what you would want the data o be there in the sample app, then :File-&amp;gt; Reduce Data-&amp;gt; Keep Possible Values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Dec 2013 12:46:52 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2013-12-19T12:46:52Z</dc:date>
    <item>
      <title>TOTAL in straight-table?</title>
      <link>https://community.qlik.com/t5/QlikView/TOTAL-in-straight-table/m-p/507528#M1126122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've created a straight-table and the total for 'OFF_INVOICE ' should be 12,88%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H4&gt;=1-column(15)/column(13)&lt;/H4&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why return me wrong result in Total?&lt;/P&gt;&lt;P&gt;ps:In &lt;SPAN style="color: #000000;"&gt;attached xls is ok&lt;/SPAN&gt;,but in qlikview (printscreen) is wrong&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Andra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 10:23:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TOTAL-in-straight-table/m-p/507528#M1126122</guid>
      <dc:creator>andradinu</dc:creator>
      <dc:date>2013-12-19T10:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: TOTAL in straight-table ?</title>
      <link>https://community.qlik.com/t5/QlikView/TOTAL-in-straight-table/m-p/507529#M1126123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try setting the total mode to sum of rows.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 10:25:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TOTAL-in-straight-table/m-p/507529#M1126123</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-12-19T10:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: TOTAL in straight-table ?</title>
      <link>https://community.qlik.com/t5/QlikView/TOTAL-in-straight-table/m-p/507530#M1126124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;48%&amp;nbsp; too with total mode to sum of rows &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;Thanks a lot&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;anyway!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 10:32:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TOTAL-in-straight-table/m-p/507530#M1126124</guid>
      <dc:creator>andradinu</dc:creator>
      <dc:date>2013-12-19T10:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: TOTAL in straight-table ?</title>
      <link>https://community.qlik.com/t5/QlikView/TOTAL-in-straight-table/m-p/507531#M1126125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/50649_Capture.PNG.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use Expression Total, instead of Sum of rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression Total will give you correct results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nitin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 10:33:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TOTAL-in-straight-table/m-p/507531#M1126125</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-19T10:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: TOTAL in straight-table ?</title>
      <link>https://community.qlik.com/t5/QlikView/TOTAL-in-straight-table/m-p/507532#M1126126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nitin, with Expression Total &lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;also&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;wrong result (48%)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;/SPAN&gt;&lt;SPAN class="hps"&gt;Thank you too&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 10:42:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TOTAL-in-straight-table/m-p/507532#M1126126</guid>
      <dc:creator>andradinu</dc:creator>
      <dc:date>2013-12-19T10:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: TOTAL in straight-table ?</title>
      <link>https://community.qlik.com/t5/QlikView/TOTAL-in-straight-table/m-p/507533#M1126127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try putting sum() around your expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum((1-column(15)/column(13)))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 10:46:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TOTAL-in-straight-table/m-p/507533#M1126127</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-12-19T10:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: TOTAL in straight-table ?</title>
      <link>https://community.qlik.com/t5/QlikView/TOTAL-in-straight-table/m-p/507534#M1126128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tresesco, whit sum give me "Allocated memory exceeded"&amp;nbsp; . Many thanks too&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 10:56:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TOTAL-in-straight-table/m-p/507534#M1126128</guid>
      <dc:creator>andradinu</dc:creator>
      <dc:date>2013-12-19T10:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: Re: TOTAL in straight-table ?</title>
      <link>https://community.qlik.com/t5/QlikView/TOTAL-in-straight-table/m-p/507535#M1126129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;Did you try the below with "Expression Total" as TOTAL Setting?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva; color: #003366;"&gt;&lt;STRONG&gt;1- ([Monthly Trend] / [Trend after on invoice])&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;Assuming these are the correct Label Names!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;DV&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 11:12:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TOTAL-in-straight-table/m-p/507535#M1126129</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2013-12-19T11:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: TOTAL in straight-table ?</title>
      <link>https://community.qlik.com/t5/QlikView/TOTAL-in-straight-table/m-p/507536#M1126130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;48%&amp;nbsp; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks you too&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 12:05:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TOTAL-in-straight-table/m-p/507536#M1126130</guid>
      <dc:creator>andradinu</dc:creator>
      <dc:date>2013-12-19T12:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: TOTAL in straight-table ?</title>
      <link>https://community.qlik.com/t5/QlikView/TOTAL-in-straight-table/m-p/507537#M1126131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you please post your example app with sample data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 12:06:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TOTAL-in-straight-table/m-p/507537#M1126131</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-12-19T12:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: TOTAL in straight-table ?</title>
      <link>https://community.qlik.com/t5/QlikView/TOTAL-in-straight-table/m-p/507538#M1126132</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 u send the application please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Erika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 12:11:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TOTAL-in-straight-table/m-p/507538#M1126132</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-19T12:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: TOTAL in straight-table ?</title>
      <link>https://community.qlik.com/t5/QlikView/TOTAL-in-straight-table/m-p/507539#M1126133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please reduce the size. Select some field value for what you would want the data o be there in the sample app, then :File-&amp;gt; Reduce Data-&amp;gt; Keep Possible Values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 12:46:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TOTAL-in-straight-table/m-p/507539#M1126133</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-12-19T12:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: Re: TOTAL in straight-table ?</title>
      <link>https://community.qlik.com/t5/QlikView/TOTAL-in-straight-table/m-p/507540#M1126134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;with Reduce Data give me 96 MB,also &lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;no big&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;difference. M&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;aybe it's better&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;to reload with debugger&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;a few&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;lines ?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 13:31:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TOTAL-in-straight-table/m-p/507540#M1126134</guid>
      <dc:creator>andradinu</dc:creator>
      <dc:date>2013-12-19T13:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: TOTAL in straight-table ?</title>
      <link>https://community.qlik.com/t5/QlikView/TOTAL-in-straight-table/m-p/507541#M1126135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;cheking your dashboard I found the problem, even if I didn't found the solution yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The point is that when performing the calculation in the Total Row&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1- ( [Monthly Trend ] /&amp;nbsp; [Trend after on invoice ])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qlik is using the Total of&amp;nbsp;&amp;nbsp; [Monthly Trend ]&amp;nbsp; and of&amp;nbsp; [Trend after on invoice ] calculated in Total mode, NOT as a sum of row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While [Trend after on invoice ]&amp;nbsp; has the same value, the values of&amp;nbsp; [Monthly Trend ]&amp;nbsp; are different:&lt;/P&gt;&lt;P&gt;6646269 in TOTAL MODE, 11135509 in SUM of ROW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The 48% is calculated using the first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At this moment I do not know how to force Qlik to use the total by sum of row, but if someone can explain it to you, you can solve the problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By my side I will make some test and let you know if I can solve it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 14:44:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TOTAL-in-straight-table/m-p/507541#M1126135</guid>
      <dc:creator>shadoworth</dc:creator>
      <dc:date>2013-12-19T14:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: Re: TOTAL in straight-table ?</title>
      <link>https://community.qlik.com/t5/QlikView/TOTAL-in-straight-table/m-p/507542#M1126136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;Hi,Andrea&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;You're right&lt;/SPAN&gt;&lt;SPAN&gt;. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;I have not&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;found the solution&lt;/SPAN&gt;, I tried &lt;SPAN class="hps"&gt;in all ways&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;without success &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;Thanks for&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;post&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 15:21:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TOTAL-in-straight-table/m-p/507542#M1126136</guid>
      <dc:creator>andradinu</dc:creator>
      <dc:date>2013-12-19T15:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: Re: TOTAL in straight-table ?</title>
      <link>https://community.qlik.com/t5/QlikView/TOTAL-in-straight-table/m-p/507543#M1126137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure that there is a solution. Basically you are calculating the Total row always as a sum of rows and for some reasons in your calculation this results is different from the Expression Total result. Thus you cannot change one column to something that is not a sum of rows and that at the same time uses other expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe (but only you can know it) you can change your data model in a way such that the Expression Total and the Sum of Rows became the same, so that it will work correctly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 16:23:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TOTAL-in-straight-table/m-p/507543#M1126137</guid>
      <dc:creator>shadoworth</dc:creator>
      <dc:date>2013-12-19T16:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: TOTAL in straight-table ?</title>
      <link>https://community.qlik.com/t5/QlikView/TOTAL-in-straight-table/m-p/507544#M1126138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;Hi Andra,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;It works okay if you have them as field names (See the attached image). However, you have them as calculated fields and as I understand the calculation is very big expression and you're referring the label names or column numbers to calculate the percentage difference. You can't calculate totals based on expression labels or column numbers because they are not persistent objects (fields) in QlikView. This reason being there are multiple rows and QlikView needs to know the type of aggregation. We as users know that we wanted to divide two columns and subtract from 100 to get the percentage difference. However, QlikView can't interpret the type of aggregation so it returns a NULL value. And if you change the Total Mode to "Sum of Rows" then you would get 60.88% which is sum of all the rows (Incorrect answer).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;&lt;IMG __jive_id="50716" alt="Comm_102364.png" class="jive-image jiveImage" height="330" src="https://community.qlik.com/legacyfs/online/50716_Comm_102364.png" style="width: 629px; height: 330.12865895166783px;" width="629" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;To solve this issue there are two solutions:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;1. I'd suggest moving the calculation to script i.e. &lt;SPAN style="font-family: 'trebuchet ms', geneva; color: #003366;"&gt;&lt;STRONG&gt;[Monthly Trend] &amp;amp;[Trend after on invoice] &lt;/STRONG&gt;&lt;/SPAN&gt;and you can calculate percentage difference as show above&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;2. If you can't move the calculation to script then I'd suggest moving the calculation of both the expressions into variable and then we can use the variable with an aggregation function. See below example:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;&lt;SPAN style="color: #000080;"&gt;&lt;STRONG&gt;vMonthlyTrend&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080;"&gt; = &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;EM&gt;(((sum(if((left(grupap, 1)='A' or left(grupap, 1)='B' or left(grupap, 1)='C') and (CMTD='1'),&amp;nbsp; SUMA_FACTURA))+sum(if((left(grupap, 1)='A' or left(grupap, 1)='B' or left(grupap, 1)='C') and (CMTD='1'),&amp;nbsp; NEP_SUMA_FACTURA))+sum(if((CMTD='1'),SUM_NETIPARITE)))&lt;/EM&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #000080; font-family: 'trebuchet ms', geneva;"&gt;&lt;EM&gt;-&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #000080; font-family: 'trebuchet ms', geneva;"&gt;&lt;EM&gt;((sum(if((left(grupap, 1)='A' or left(grupap, 1)='B' or left(grupap, 1)='C') and (CMTD='1'),&amp;nbsp; SUMA_FACTURA))+sum(if((left(grupap, 1)='A' or left(grupap, 1)='B' or left(grupap, 1)='C') and (CMTD='1'),&amp;nbsp; NEP_SUMA_FACTURA))+sum(if((CMTD='1'),SUM_NETIPARITE)))&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva; color: #000080;"&gt;&lt;EM&gt;*SUM(IF(luna_off=month(today()),OFF_INVOICE))))/(sum(if(CMTDzl='1',zl2013))/sum(if(CMzl='1',zl2013))))&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva; color: #000080;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva; color: #000080;"&gt;&lt;STRONG&gt;vInvoiceTrend&lt;/STRONG&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-family: 'trebuchet ms', geneva;"&gt;&lt;EM&gt;((sum(if((left(grupap, 1)='A' or left(grupap, 1)='B' or left(grupap, 1)='C') and (CMTD='1'),&amp;nbsp; SUMA_FACTURA))+sum(if((left(grupap, 1)='A' or left(grupap, 1)='B' or left(grupap, 1)='C') and (CMTD='1'),&amp;nbsp; NEP_SUMA_FACTURA))+sum(if((CMTD='1'),SUM_NETIPARITE)))/(sum(if(CMTDzl='1',zl2013))/sum(if(CMzl='1',zl2013))))&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;And finally you can use:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;&lt;EM style="color: #800000;"&gt;&lt;STRONG&gt;1- (SUM($(vMonthlyTrend)) / SUM($(vInvoiceTrend)))&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;Note: Please don't include "=" (equal to) sign while assigning the variable in the Variable Overview window.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps! Please let me know if you have any questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;DV&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Dec 2013 08:41:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TOTAL-in-straight-table/m-p/507544#M1126138</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2013-12-20T08:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: TOTAL in straight-table?</title>
      <link>https://community.qlik.com/t5/QlikView/TOTAL-in-straight-table/m-p/507545#M1126139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;I tried&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;with&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;variable&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;but&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;appears&lt;/SPAN&gt; with &lt;SPAN class="hps"&gt;red .&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;How can I&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;include&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;in the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;script&lt;/SPAN&gt;&lt;SPAN&gt;?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;Thank you very&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;much for&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;everything you did&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Dec 2013 09:27:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TOTAL-in-straight-table/m-p/507545#M1126139</guid>
      <dc:creator>andradinu</dc:creator>
      <dc:date>2013-12-20T09:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: Re: TOTAL in straight-table?</title>
      <link>https://community.qlik.com/t5/QlikView/TOTAL-in-straight-table/m-p/507546#M1126140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;You're welcome. Please can you post the sample app? It's easier to work with the sample app. Please can you share the sample app?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;DV&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Dec 2013 10:26:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TOTAL-in-straight-table/m-p/507546#M1126140</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2013-12-20T10:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: TOTAL in straight-table?</title>
      <link>https://community.qlik.com/t5/QlikView/TOTAL-in-straight-table/m-p/507547#M1126141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;Is posted&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;above (see&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;response&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;to&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;Erika&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;Jain&lt;/SPAN&gt;). &lt;SPAN class="hps"&gt;Indeed&lt;/SPAN&gt;, it's &lt;SPAN class="hps"&gt;pretty big (106 MB)&lt;/SPAN&gt;, but &lt;SPAN class="hps"&gt;it did not work&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;to make it&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;smaller.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;Many thanks again!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Dec 2013 10:32:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TOTAL-in-straight-table/m-p/507547#M1126141</guid>
      <dc:creator>andradinu</dc:creator>
      <dc:date>2013-12-20T10:32:24Z</dc:date>
    </item>
  </channel>
</rss>

