<?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 the pivot table in Qlik Sense in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Totals-in-the-pivot-table-in-Qlik-Sense/m-p/1242952#M24727</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shubham,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the quick response, however there are a few issues with this approach:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;It will significantly increase application load time as my real data set contains more than 700K...&lt;/LI&gt;&lt;LI&gt;Although technically it shows correct total amounts, it is incorrect in terms of Cohort analysis - the Q4-2016 group has not reached age 2 yet (for example, for customers who joined the company in Q4-2016 this is only the first Q=age 0 with the company) so I cannot show amount of 14 at age 2 for Q4-2016.&lt;BR /&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/147801_Capture.JPG" style="height: 158px; width: 620px;" /&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;The desired output would look like this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/147802_Capture.JPG" style="height: 138px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Anastasya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Dec 2016 12:17:09 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-12-28T12:17:09Z</dc:date>
    <item>
      <title>Totals in the pivot table in Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/Totals-in-the-pivot-table-in-Qlik-Sense/m-p/1242947#M24722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm struggling to get the right total amounts in the Pivot table in Qlik Sense.&lt;/P&gt;&lt;P&gt;Here's a simplified example of the problem:&lt;/P&gt;&lt;P&gt;I have a pivot table with a Cohort, Age and relevant amount for every age:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/147751_Capture.JPG" style="height: 169px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;All amounts and totals are displayed as you expected.&lt;/P&gt;&lt;P&gt;The problem begins when I create a pivot table with Cumulative sum of amounts as expression:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/147776_Capture.JPG" style="height: 160px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;The highlighted Totals are incorrect..&lt;/P&gt;&lt;P&gt;I understand that Aggr function should be used to achieve the correct result, but couldn't figure out how exactly to use it.&lt;/P&gt;&lt;P&gt;I tried following the instruction here &lt;A href="https://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/ChartFunctions/NestedAggregations/sum-of-rows-pivot-tables.htm"&gt;https://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/ChartFunctions/NestedAggregations/sum-of-rows-pivot-tables.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;without any luck.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Any suggestion will be much appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Many thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Anastasya &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2016 07:35:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Totals-in-the-pivot-table-in-Qlik-Sense/m-p/1242947#M24722</guid>
      <dc:creator />
      <dc:date>2016-12-28T07:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: Totals in the pivot table in Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/Totals-in-the-pivot-table-in-Qlik-Sense/m-p/1242948#M24723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(rowno() = '0' , normal sum expression, cumulative sum expression)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(dimensionality() = 0, normal sum expression, cumulative sum expression)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2016 07:43:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Totals-in-the-pivot-table-in-Qlik-Sense/m-p/1242948#M24723</guid>
      <dc:creator>shraddha_g</dc:creator>
      <dc:date>2016-12-28T07:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: Totals in the pivot table in Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/Totals-in-the-pivot-table-in-Qlik-Sense/m-p/1242949#M24724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Use this code in your script and you will get your desired results in UI without changing any expression.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CohortForEx:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Cohort,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Age",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Amount,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Cohort&amp;amp;'|'&amp;amp;"Age" as ExistField&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Created this field to use exists funtion&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;FROM [lib://Temp downloads/Cohort for ex.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;Load Distinct Cohort Resident CohortForEx;&lt;/P&gt;&lt;P&gt;Join&lt;/P&gt;&lt;P&gt;Load Distinct "Age",0 as Amount Resident CohortForEx;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;// Took all possible combinations of Age and Cohort with zero amount&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate(CohortForEx)&lt;/P&gt;&lt;P&gt;LOAD * Resident Temp where not Exists(ExistField,Cohort&amp;amp;'|'&amp;amp;"Age");&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;//Added only those combinations of Cohort and Age that does not exist in your data with Amount as 0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table Temp;&lt;/P&gt;&lt;P&gt;Drop Field ExistField;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2016 08:26:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Totals-in-the-pivot-table-in-Qlik-Sense/m-p/1242949#M24724</guid>
      <dc:creator>shubham_singh</dc:creator>
      <dc:date>2016-12-28T08:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: Totals in the pivot table in Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/Totals-in-the-pivot-table-in-Qlik-Sense/m-p/1242950#M24725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shraddha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the quick response, however it doesn't yield the desired result.&lt;/P&gt;&lt;P&gt;It simply summarizes all amounts at a specific age, instead of summarizing the cumulative amounts.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/147800_Capture.JPG" style="height: 159px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; For example, at age 1, the total should be 30+55+74=159.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Any other ides?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Anastasya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2016 11:57:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Totals-in-the-pivot-table-in-Qlik-Sense/m-p/1242950#M24725</guid>
      <dc:creator />
      <dc:date>2016-12-28T11:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: Totals in the pivot table in Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/Totals-in-the-pivot-table-in-Qlik-Sense/m-p/1242951#M24726</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(RangeSum(Above(Sum(Amount),0,RowNo())), Cohort, Age))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/147799_Capture.PNG" style="height: 134px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2016 12:04:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Totals-in-the-pivot-table-in-Qlik-Sense/m-p/1242951#M24726</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-28T12:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: Totals in the pivot table in Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/Totals-in-the-pivot-table-in-Qlik-Sense/m-p/1242952#M24727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shubham,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the quick response, however there are a few issues with this approach:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;It will significantly increase application load time as my real data set contains more than 700K...&lt;/LI&gt;&lt;LI&gt;Although technically it shows correct total amounts, it is incorrect in terms of Cohort analysis - the Q4-2016 group has not reached age 2 yet (for example, for customers who joined the company in Q4-2016 this is only the first Q=age 0 with the company) so I cannot show amount of 14 at age 2 for Q4-2016.&lt;BR /&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/147801_Capture.JPG" style="height: 158px; width: 620px;" /&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;The desired output would look like this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/147802_Capture.JPG" style="height: 138px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Anastasya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2016 12:17:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Totals-in-the-pivot-table-in-Qlik-Sense/m-p/1242952#M24727</guid>
      <dc:creator />
      <dc:date>2016-12-28T12:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: Totals in the pivot table in Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/Totals-in-the-pivot-table-in-Qlik-Sense/m-p/1242953#M24728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, Sunny!&lt;/P&gt;&lt;P&gt;You are a lifesaver! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/love.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How did you know to use Above function and not Before? &lt;/P&gt;&lt;P&gt;I want to understand it for future work (I thought I did, but apparently not so much &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2016 12:40:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Totals-in-the-pivot-table-in-Qlik-Sense/m-p/1242953#M24728</guid>
      <dc:creator />
      <dc:date>2016-12-28T12:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: Totals in the pivot table in Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/Totals-in-the-pivot-table-in-Qlik-Sense/m-p/1242954#M24729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Imagine Aggr() as an imaginary Straight table, where you cannot pivot a dimension like you do in pivot table. Since Before and After can only work with pivoted dimensions, Aggr() will never work with Before or After. So, you need to go back to Above or Below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does that make sense?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2016 12:44:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Totals-in-the-pivot-table-in-Qlik-Sense/m-p/1242954#M24729</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-28T12:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: Totals in the pivot table in Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/Totals-in-the-pivot-table-in-Qlik-Sense/m-p/1242955#M24730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;Thank you so much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2016 12:50:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Totals-in-the-pivot-table-in-Qlik-Sense/m-p/1242955#M24730</guid>
      <dc:creator />
      <dc:date>2016-12-28T12:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: Totals in the pivot table in Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/Totals-in-the-pivot-table-in-Qlik-Sense/m-p/1568845#M41491</link>
      <description>&lt;P&gt;how to change the total in a pivot table, I want to total header table without group, but the grout sum in the row. I dont know how to make.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2019 15:21:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Totals-in-the-pivot-table-in-Qlik-Sense/m-p/1568845#M41491</guid>
      <dc:creator>mepa8011</dc:creator>
      <dc:date>2019-04-12T15:21:52Z</dc:date>
    </item>
  </channel>
</rss>

