<?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: Pivot Table Total in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Total/m-p/1090033#M924280</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To calculate the total in the pivot table, you will need to use an Aggr() wrapped around the expression. This Aggr() needs the chart dimensions as fields, but you are using calculated dimensions, so you have to use the underlying fields. you could try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14603643086862060" jivemacro_uid="_14603643086862060" modifiedtitle="true"&gt;
&lt;P&gt;Sum(Aggr(if(&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Replace(replace(only({&amp;lt;%Month = {'$(=$(=vCurrMonth))'},%Year = {'$(=$(=vCurrYear))'},CURRENCY = {'$(=$(vCurr))'} &amp;gt;}CRR),'_','.'),'CRR','') =&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Replace(replace(only({&amp;lt;%Month = {'$(=$(=vPrevMonth))'},%Year = {'$(=$(=vPrevYear))'},CURRENCY = {'$(=$(vCurr))'} &amp;gt;}CRR),'_','.'),'CRR',''),&lt;/P&gt;
&lt;P&gt;&amp;nbsp; count({&amp;lt;%Month = {'$(=$(=vCurrMonth))'},%Year = {'$(=$(=vCurrYear))'},CURRENCY = {'$(=$(vCurr))'}&amp;gt;}CONTRACT) ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; if(&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Replace(replace(only({&amp;lt;%Month = {'$(=$(=vCurrMonth))'},%Year = {'$(=$(=vCurrYear))'},CURRENCY = {'$(=$(vCurr))'} &amp;gt;}CRR),'_','.'),'CRR','') &amp;lt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Replace(replace(only({&amp;lt;%Month = {'$(=$(=vPrevMonth))'},%Year = {'$(=$(=vPrevYear))'},CURRENCY = {'$(=$(vCurr))'} &amp;gt;}CRR),'_','.'),'CRR',''),&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Count({&amp;lt;%Month = {'$(=$(=vCurrMonth))'},%Year = {'$(=$(=vCurrYear))'},CURRENCY = {'$(=$(vCurr))'}&amp;gt;}CONTRACT) ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; if(&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Replace(replace(only({&amp;lt;%Month = {'$(=$(=vCurrMonth))'},%Year = {'$(=$(=vCurrYear))'},CURRENCY = {'$(=$(vCurr))'} &amp;gt;}CRR),'_','.'),'CRR','') &amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Replace(replace(only({&amp;lt;%Month = {'$(=$(=vPrevMonth))'},%Year = {'$(=$(=vPrevYear))'},CURRENCY = {'$(=$(vCurr))'} &amp;gt;}CRR),'_','.'),'CRR',''),&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Count({&amp;lt;%Month = {'$(=$(=vCurrMonth))'},%Year = {'$(=$(=vCurrYear))'},CURRENCY = {'$(=$(vCurr))'}&amp;gt;}CONTRACT) ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; ) &lt;/P&gt;
&lt;P&gt;) &lt;/P&gt;
&lt;P&gt;), CRR, PARTY_ID))&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if I can make a suggestion - do the replace operations in the load script. This will make your expressions much easier to write, understand and debug, and leads to a more sustainable model.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Apr 2016 08:47:35 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2016-04-11T08:47:35Z</dc:date>
    <item>
      <title>Pivot Table Total</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Total/m-p/1090030#M924277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to show missing total for below image. This is pivot table. I am getting total for only one value and not for all. I wanted to show totals for all the values.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Missing total.PNG" class="jive-image image-1" src="/legacyfs/online/121172_Missing total.PNG" style="width: 620px; height: 473px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dim1: =aggr(only({&amp;lt;%Month = {'$(=$(=vPrevMonth))'}, %Year = {'$(=$(=vPrevYear))'},CURRENCY = {'$(=$(vCurr))'}&amp;gt;}CRR),PARTY_ID)&lt;/P&gt;&lt;P&gt;Dim2: =aggr(only({&amp;lt;%Month = {'$(=$(=vCurrMonth))'}, %Year = {'$(=$(=vCurrYear))'},CURRENCY = {'$(=$(vCurr))'}&amp;gt;}CRR),PARTY_ID)&lt;/P&gt;&lt;P&gt;Expression&lt;BR /&gt;if(&lt;BR /&gt;Replace(replace(only({&amp;lt;%Month = {'$(=$(=vCurrMonth))'},%Year = {'$(=$(=vCurrYear))'},CURRENCY = {'$(=$(vCurr))'} &amp;gt;}CRR),'_','.'),'CRR','') =&lt;/P&gt;&lt;P&gt;Replace(replace(only({&amp;lt;%Month = {'$(=$(=vPrevMonth))'},%Year = {'$(=$(=vPrevYear))'},CURRENCY = {'$(=$(vCurr))'} &amp;gt;}CRR),'_','.'),'CRR',''),&lt;BR /&gt;count({&amp;lt;%Month = {'$(=$(=vCurrMonth))'},%Year = {'$(=$(=vCurrYear))'},CURRENCY = {'$(=$(vCurr))'}&amp;gt;}CONTRACT) ,&lt;BR /&gt;if(&lt;BR /&gt;Replace(replace(only({&amp;lt;%Month = {'$(=$(=vCurrMonth))'},%Year = {'$(=$(=vCurrYear))'},CURRENCY = {'$(=$(vCurr))'} &amp;gt;}CRR),'_','.'),'CRR','') &amp;lt;&lt;/P&gt;&lt;P&gt;Replace(replace(only({&amp;lt;%Month = {'$(=$(=vPrevMonth))'},%Year = {'$(=$(=vPrevYear))'},CURRENCY = {'$(=$(vCurr))'} &amp;gt;}CRR),'_','.'),'CRR',''),&lt;BR /&gt;Count({&amp;lt;%Month = {'$(=$(=vCurrMonth))'},%Year = {'$(=$(=vCurrYear))'},CURRENCY = {'$(=$(vCurr))'}&amp;gt;}CONTRACT) ,&lt;BR /&gt;if(&lt;BR /&gt;Replace(replace(only({&amp;lt;%Month = {'$(=$(=vCurrMonth))'},%Year = {'$(=$(=vCurrYear))'},CURRENCY = {'$(=$(vCurr))'} &amp;gt;}CRR),'_','.'),'CRR','') &amp;gt;&lt;/P&gt;&lt;P&gt;Replace(replace(only({&amp;lt;%Month = {'$(=$(=vPrevMonth))'},%Year = {'$(=$(=vPrevYear))'},CURRENCY = {'$(=$(vCurr))'} &amp;gt;}CRR),'_','.'),'CRR',''),&lt;BR /&gt;Count({&amp;lt;%Month = {'$(=$(=vCurrMonth))'},%Year = {'$(=$(=vCurrYear))'},CURRENCY = {'$(=$(vCurr))'}&amp;gt;}CONTRACT) ,&lt;BR /&gt;) &lt;BR /&gt;) &lt;BR /&gt;) &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/Pivot-Table-Total/m-p/1090030#M924277</guid>
      <dc:creator>priyarane</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table Total</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Total/m-p/1090031#M924278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you post the sample application?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2016 08:43:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Total/m-p/1090031#M924278</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-04-11T08:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table Total</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Total/m-p/1090032#M924279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Priya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Provide a sample .qvw file .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anjali &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2016 08:46:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Total/m-p/1090032#M924279</guid>
      <dc:creator />
      <dc:date>2016-04-11T08:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table Total</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Total/m-p/1090033#M924280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To calculate the total in the pivot table, you will need to use an Aggr() wrapped around the expression. This Aggr() needs the chart dimensions as fields, but you are using calculated dimensions, so you have to use the underlying fields. you could try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14603643086862060" jivemacro_uid="_14603643086862060" modifiedtitle="true"&gt;
&lt;P&gt;Sum(Aggr(if(&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Replace(replace(only({&amp;lt;%Month = {'$(=$(=vCurrMonth))'},%Year = {'$(=$(=vCurrYear))'},CURRENCY = {'$(=$(vCurr))'} &amp;gt;}CRR),'_','.'),'CRR','') =&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Replace(replace(only({&amp;lt;%Month = {'$(=$(=vPrevMonth))'},%Year = {'$(=$(=vPrevYear))'},CURRENCY = {'$(=$(vCurr))'} &amp;gt;}CRR),'_','.'),'CRR',''),&lt;/P&gt;
&lt;P&gt;&amp;nbsp; count({&amp;lt;%Month = {'$(=$(=vCurrMonth))'},%Year = {'$(=$(=vCurrYear))'},CURRENCY = {'$(=$(vCurr))'}&amp;gt;}CONTRACT) ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; if(&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Replace(replace(only({&amp;lt;%Month = {'$(=$(=vCurrMonth))'},%Year = {'$(=$(=vCurrYear))'},CURRENCY = {'$(=$(vCurr))'} &amp;gt;}CRR),'_','.'),'CRR','') &amp;lt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Replace(replace(only({&amp;lt;%Month = {'$(=$(=vPrevMonth))'},%Year = {'$(=$(=vPrevYear))'},CURRENCY = {'$(=$(vCurr))'} &amp;gt;}CRR),'_','.'),'CRR',''),&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Count({&amp;lt;%Month = {'$(=$(=vCurrMonth))'},%Year = {'$(=$(=vCurrYear))'},CURRENCY = {'$(=$(vCurr))'}&amp;gt;}CONTRACT) ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; if(&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Replace(replace(only({&amp;lt;%Month = {'$(=$(=vCurrMonth))'},%Year = {'$(=$(=vCurrYear))'},CURRENCY = {'$(=$(vCurr))'} &amp;gt;}CRR),'_','.'),'CRR','') &amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Replace(replace(only({&amp;lt;%Month = {'$(=$(=vPrevMonth))'},%Year = {'$(=$(=vPrevYear))'},CURRENCY = {'$(=$(vCurr))'} &amp;gt;}CRR),'_','.'),'CRR',''),&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Count({&amp;lt;%Month = {'$(=$(=vCurrMonth))'},%Year = {'$(=$(=vCurrYear))'},CURRENCY = {'$(=$(vCurr))'}&amp;gt;}CONTRACT) ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; ) &lt;/P&gt;
&lt;P&gt;) &lt;/P&gt;
&lt;P&gt;), CRR, PARTY_ID))&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if I can make a suggestion - do the replace operations in the load script. This will make your expressions much easier to write, understand and debug, and leads to a more sustainable model.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2016 08:47:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Total/m-p/1090033#M924280</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-04-11T08:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table Total</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Total/m-p/1090034#M924281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It worked like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Sum(Aggr(if(&amp;nbsp; &lt;/LI&gt;&lt;LI&gt;&amp;nbsp; Replace(replace(only({&amp;lt;%Month = {'$(=$(=vCurrMonth))'},%Year = {'$(=$(=vCurrYear))'},CURRENCY = {'$(=$(vCurr))'} &amp;gt;}CRR),'_','.'),'CRR','') =&amp;nbsp; &lt;/LI&gt;&lt;LI&gt;&amp;nbsp; Replace(replace(only({&amp;lt;%Month = {'$(=$(=vPrevMonth))'},%Year = {'$(=$(=vPrevYear))'},CURRENCY = {'$(=$(vCurr))'} &amp;gt;}CRR),'_','.'),'CRR',''),&amp;nbsp; &lt;/LI&gt;&lt;LI&gt;&amp;nbsp; count({&amp;lt;%Month = {'$(=$(=vCurrMonth))'},%Year = {'$(=$(=vCurrYear))'},CURRENCY = {'$(=$(vCurr))'}&amp;gt;}CONTRACT) ,&amp;nbsp; &lt;/LI&gt;&lt;LI&gt;&amp;nbsp; if(&amp;nbsp; &lt;/LI&gt;&lt;LI&gt;&amp;nbsp; Replace(replace(only({&amp;lt;%Month = {'$(=$(=vCurrMonth))'},%Year = {'$(=$(=vCurrYear))'},CURRENCY = {'$(=$(vCurr))'} &amp;gt;}CRR),'_','.'),'CRR','') &amp;lt;&amp;nbsp; &lt;/LI&gt;&lt;LI&gt;&amp;nbsp; Replace(replace(only({&amp;lt;%Month = {'$(=$(=vPrevMonth))'},%Year = {'$(=$(=vPrevYear))'},CURRENCY = {'$(=$(vCurr))'} &amp;gt;}CRR),'_','.'),'CRR',''),&amp;nbsp; &lt;/LI&gt;&lt;LI&gt;&amp;nbsp; Count({&amp;lt;%Month = {'$(=$(=vCurrMonth))'},%Year = {'$(=$(=vCurrYear))'},CURRENCY = {'$(=$(vCurr))'}&amp;gt;}CONTRACT) ,&amp;nbsp; &lt;/LI&gt;&lt;LI&gt;&amp;nbsp; if(&amp;nbsp; &lt;/LI&gt;&lt;LI&gt;&amp;nbsp; Replace(replace(only({&amp;lt;%Month = {'$(=$(=vCurrMonth))'},%Year = {'$(=$(=vCurrYear))'},CURRENCY = {'$(=$(vCurr))'} &amp;gt;}CRR),'_','.'),'CRR','') &amp;gt;&amp;nbsp; &lt;/LI&gt;&lt;LI&gt;&amp;nbsp; Replace(replace(only({&amp;lt;%Month = {'$(=$(=vPrevMonth))'},%Year = {'$(=$(=vPrevYear))'},CURRENCY = {'$(=$(vCurr))'} &amp;gt;}CRR),'_','.'),'CRR',''),&amp;nbsp; &lt;/LI&gt;&lt;LI&gt;&amp;nbsp; Count({&amp;lt;%Month = {'$(=$(=vCurrMonth))'},%Year = {'$(=$(=vCurrYear))'},CURRENCY = {'$(=$(vCurr))'}&amp;gt;}CONTRACT) ,&amp;nbsp; &lt;/LI&gt;&lt;LI&gt;&amp;nbsp; )&amp;nbsp;&amp;nbsp; &lt;/LI&gt;&lt;LI&gt;)&amp;nbsp;&amp;nbsp; &lt;/LI&gt;&lt;LI&gt;),&amp;nbsp; PARTY_ID))&amp;nbsp; &lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2016 09:46:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Total/m-p/1090034#M924281</guid>
      <dc:creator>priyarane</dc:creator>
      <dc:date>2016-04-11T09:46:29Z</dc:date>
    </item>
  </channel>
</rss>

