<?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: Subtotals on TOP doesn't work properly in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Subtotals-on-TOP-doesn-t-work-properly/m-p/931407#M971642</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;now I understand, Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Sep 2015 09:30:21 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-09-11T09:30:21Z</dc:date>
    <item>
      <title>Subtotals on TOP doesn't work properly</title>
      <link>https://community.qlik.com/t5/QlikView/Subtotals-on-TOP-doesn-t-work-properly/m-p/931403#M971638</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;&amp;nbsp; I have a problem with subtotals in my chart, the total is not equal to the values in lines, for example in the field "Valeur forecast" the total should be 11 113 and not 12 828, I don't want to apply the expression also in the totals, how can do that ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Chart.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/98625_Chart.png" style="height: 189px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;my expression is : &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Sum ( [Forecast.Quantity) * AVG([Budget.Average Price]).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2020 18:02:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtotals-on-TOP-doesn-t-work-properly/m-p/931403#M971638</guid>
      <dc:creator />
      <dc:date>2020-11-20T18:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Subtotals on TOP doesn't work properly</title>
      <link>https://community.qlik.com/t5/QlikView/Subtotals-on-TOP-doesn-t-work-properly/m-p/931404#M971639</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(&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;STRONG&gt;Sum ( [Forecast.Quantity) * AVG([Budget.Average Price]), Article, Designation))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2015 08:53:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtotals-on-TOP-doesn-t-work-properly/m-p/931404#M971639</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-09-11T08:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: Subtotals on TOP doesn't work properly</title>
      <link>https://community.qlik.com/t5/QlikView/Subtotals-on-TOP-doesn-t-work-properly/m-p/931405#M971640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Thanks for your solution, it works but could you explain to me the expression please ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2015 09:08:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtotals-on-TOP-doesn-t-work-properly/m-p/931405#M971640</guid>
      <dc:creator />
      <dc:date>2015-09-11T09:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: Subtotals on TOP doesn't work properly</title>
      <link>https://community.qlik.com/t5/QlikView/Subtotals-on-TOP-doesn-t-work-properly/m-p/931406#M971641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since this is a pivot table there is not an option available to use a total mode. What Aggregate is doing is creating a imaginary table as the one you have and summing its row to give the total up top. Does that make sense?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2015 09:10:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtotals-on-TOP-doesn-t-work-properly/m-p/931406#M971641</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-09-11T09:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: Subtotals on TOP doesn't work properly</title>
      <link>https://community.qlik.com/t5/QlikView/Subtotals-on-TOP-doesn-t-work-properly/m-p/931407#M971642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;now I understand, Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2015 09:30:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtotals-on-TOP-doesn-t-work-properly/m-p/931407#M971642</guid>
      <dc:creator />
      <dc:date>2015-09-11T09:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: Subtotals on TOP doesn't work properly</title>
      <link>https://community.qlik.com/t5/QlikView/Subtotals-on-TOP-doesn-t-work-properly/m-p/931408#M971643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No problem &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am glad I was able to help.&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, 11 Sep 2015 09:33:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtotals-on-TOP-doesn-t-work-properly/m-p/931408#M971643</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-09-11T09:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: Subtotals on TOP doesn't work properly</title>
      <link>https://community.qlik.com/t5/QlikView/Subtotals-on-TOP-doesn-t-work-properly/m-p/931409#M971644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Subtotal/Total in Pivot Table always works as Expression Total.. so you can't have the total of Rows which is usually available in Straight Table.&lt;/P&gt;&lt;P&gt;Consider below simple example..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;&amp;nbsp; Country, Customer&lt;/P&gt;&lt;P&gt;&amp;nbsp; Germany, A&lt;/P&gt;&lt;P&gt;&amp;nbsp; UK, B&lt;/P&gt;&lt;P&gt;&amp;nbsp; France, A&lt;/P&gt;&lt;P&gt;&amp;nbsp; UK, C&lt;/P&gt;&lt;P&gt;&amp;nbsp; USA, D&lt;/P&gt;&lt;P&gt;&amp;nbsp; India, E&lt;/P&gt;&lt;P&gt;&amp;nbsp; India, D&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Create a Straight Table&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Dimension&lt;/P&gt;&lt;P&gt;Country&lt;/P&gt;&lt;P&gt;Expression&lt;/P&gt;&lt;P&gt;1) Count(Distinct Customer)&lt;/P&gt;&lt;P&gt;Total Mode = Expression Total&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;You will get total 5&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Count(Distinct Customer)&lt;/P&gt;&lt;P&gt;Total Mode = Sum of Rows&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;You will get total 7&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Create a Pivot Table&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Dimension&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Country&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Expression&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;1) Count(Distinct Customer)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt;&lt;STRONG&gt;You will get total 5&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;In Pivot Table, by default the total mode is Expression Total.&lt;/P&gt;&lt;P&gt;If you want, total of rows, you need to use one of the below 2 expressions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SUM(Aggr(COUNT(DISTINCT Customer),Country))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF(Dimensionality() = 0, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUM(Aggr(COUNT(DISTINCT Customer),Country)),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COUNT(DISTINCT Customer)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will helps !&lt;/P&gt;&lt;P&gt;Happy Qliking !&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2015 09:35:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtotals-on-TOP-doesn-t-work-properly/m-p/931409#M971644</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-09-11T09:35:14Z</dc:date>
    </item>
  </channel>
</rss>

