<?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: Totals in pivot table after calculations/aggregation in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Totals-in-pivot-table-after-calculations-aggregation-in-script/m-p/1238171#M393599</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If it were a straight table we could do sum of rows, but not in a pivot table. I can't think of any way to do a sum in a pivot table without using sum(). Why are you trying to avoid using aggregation functions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Nov 2016 18:11:04 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2016-11-11T18:11:04Z</dc:date>
    <item>
      <title>Totals in pivot table after calculations/aggregation in script</title>
      <link>https://community.qlik.com/t5/QlikView/Totals-in-pivot-table-after-calculations-aggregation-in-script/m-p/1238168#M393596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Colleagues,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have made some calculations in the script (unique for each line, so no further aggregations are needed) to avoid calculations in the frontend.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I am showing this Field in a pivot table under Expressions without any functions at all. Works fine, &lt;SPAN style="text-decoration: underline;"&gt;BUT Totals and Subtotals are not shown, unless I select only one distinct value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question: How can I (in a pivot table) show a field without any aggregation functions and get the totals?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Vitalii&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2016 14:40:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Totals-in-pivot-table-after-calculations-aggregation-in-script/m-p/1238168#M393596</guid>
      <dc:creator />
      <dc:date>2016-11-11T14:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: Totals in pivot table after calculations/aggregation in script</title>
      <link>https://community.qlik.com/t5/QlikView/Totals-in-pivot-table-after-calculations-aggregation-in-script/m-p/1238169#M393597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May instead of using FieldName, try using Sum(FieldName) to get the subtotals&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2016 16:48:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Totals-in-pivot-table-after-calculations-aggregation-in-script/m-p/1238169#M393597</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-11-11T16:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: Totals in pivot table after calculations/aggregation in script</title>
      <link>https://community.qlik.com/t5/QlikView/Totals-in-pivot-table-after-calculations-aggregation-in-script/m-p/1238170#M393598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or are you trying to avoid even using Sum()? I mean if your total is Sum(FieldName), how else would you get Sum(FieldName) without using a Sum() function?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2016 16:49:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Totals-in-pivot-table-after-calculations-aggregation-in-script/m-p/1238170#M393598</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-11-11T16:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: Totals in pivot table after calculations/aggregation in script</title>
      <link>https://community.qlik.com/t5/QlikView/Totals-in-pivot-table-after-calculations-aggregation-in-script/m-p/1238171#M393599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If it were a straight table we could do sum of rows, but not in a pivot table. I can't think of any way to do a sum in a pivot table without using sum(). Why are you trying to avoid using aggregation functions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2016 18:11:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Totals-in-pivot-table-after-calculations-aggregation-in-script/m-p/1238171#M393599</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2016-11-11T18:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: Totals in pivot table after calculations/aggregation in script</title>
      <link>https://community.qlik.com/t5/QlikView/Totals-in-pivot-table-after-calculations-aggregation-in-script/m-p/1238172#M393600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, exactly. I am trying to avoid any calculations in the front end in order o make the application „lighter“. That is why I moved &lt;EM&gt;&lt;STRONG&gt;sum()&lt;/STRONG&gt;&lt;/EM&gt; to the script (with &lt;EM&gt;&lt;STRONG&gt;group by&lt;/STRONG&gt;&lt;/EM&gt; respectively) and now try use the fore calculated values. But using just field value without any aggregation doesn’t allow me see totals on the top of the table….&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2016 16:33:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Totals-in-pivot-table-after-calculations-aggregation-in-script/m-p/1238172#M393600</guid>
      <dc:creator />
      <dc:date>2016-11-21T16:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: Totals in pivot table after calculations/aggregation in script</title>
      <link>https://community.qlik.com/t5/QlikView/Totals-in-pivot-table-after-calculations-aggregation-in-script/m-p/1238173#M393601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to avoid any calculations in the front end in order o make the application „lighter“. That is why I moved sum() to the script (with group by respectively) and now try use the fore calculated values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2016 16:33:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Totals-in-pivot-table-after-calculations-aggregation-in-script/m-p/1238173#M393601</guid>
      <dc:creator />
      <dc:date>2016-11-21T16:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: Totals in pivot table after calculations/aggregation in script</title>
      <link>https://community.qlik.com/t5/QlikView/Totals-in-pivot-table-after-calculations-aggregation-in-script/m-p/1238174#M393602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So you just want the grand totals to display as well?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could maybe load one more row onto your table in script with a key value like 'total' and the grand totals in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I suspect you're going in the wrong direction. Doing aggregations in script is usually the &lt;EM&gt;&lt;STRONG&gt;very last&lt;/STRONG&gt;&lt;/EM&gt; solution I would ever try to address front end performance problems. I would usually try &lt;STRONG&gt;&lt;EM&gt;everything&lt;/EM&gt;&lt;/STRONG&gt; else before I resorted to that, because resorting to that just throws out the window how selections are supposed to work, or at least the ability to drill into details. That does suggest one exception to my rule, which would be for non-interactive or very limitedly interactive dashboards. In a few cases I have indeed made "light" dashboards by aggregating in script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And performance &lt;STRONG&gt;&lt;EM&gt;has&lt;/EM&gt;&lt;/STRONG&gt; forced me to aggregate in script &lt;STRONG&gt;&lt;EM&gt;once&lt;/EM&gt;&lt;/STRONG&gt;. No matter what I tried, I couldn't get a particular chart to render faster than about half a minute, and that just wasn't acceptable. So I'm not saying that script aggregation is taboo or illegal or immoral or anything, just that there's almost always a better solution. One strength of QlikView is the speed of its front end aggregation. If you're having serious performance problems, there's a very good chance there's a better way to solve those problems than to aggregate in script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2016 19:46:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Totals-in-pivot-table-after-calculations-aggregation-in-script/m-p/1238174#M393602</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2016-11-28T19:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: Totals in pivot table after calculations/aggregation in script</title>
      <link>https://community.qlik.com/t5/QlikView/Totals-in-pivot-table-after-calculations-aggregation-in-script/m-p/1238175#M393603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear John,&lt;/P&gt;&lt;P&gt;thank you very much! It is a good food for thoughts!:)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Vitalii &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2016 08:40:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Totals-in-pivot-table-after-calculations-aggregation-in-script/m-p/1238175#M393603</guid>
      <dc:creator />
      <dc:date>2016-11-29T08:40:10Z</dc:date>
    </item>
  </channel>
</rss>

