<?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 Pivot Totals Incorrect When Rows Collapsed in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pivot-Totals-Incorrect-When-Rows-Collapsed/m-p/1548470#M440066</link>
    <description>&lt;P&gt;Hello - the measure expression below in my pivot table only works when all 3 dimensions are expanded. When the dimensions are collapsed, the total is just a grand total, without the set analysis invoked. Any ideas how to fix? I tried Dimensionality() but didn't work.&lt;/P&gt;&lt;P&gt;The 3 dimensions used are main, Region, and Branch below. The pivot table is grouped by Region, Branch, and main (in that order).&amp;nbsp; "yr" and "method2" are&amp;nbsp;the columns of the pivot table (in that order). Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=if(Dimensionality()&amp;lt;= 2 ,count(&lt;BR /&gt;aggr(count(( IF(&lt;BR /&gt;&amp;nbsp;Aggr(distinct&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;sum({&amp;lt;method2={'Web'}&amp;gt;}totalpmt)/Sum(total &amp;lt;main, [yr], [Region] , [Branch]&amp;gt; totalpmt)&lt;BR /&gt;&amp;nbsp;main,yr, [Region], [Branch])&amp;gt;=$(UsageAbove),&lt;BR /&gt;1))&lt;BR /&gt;),main, [Region], [Branch], yr)),&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;</description>
    <pubDate>Sun, 24 Feb 2019 23:59:38 GMT</pubDate>
    <dc:creator>newuser</dc:creator>
    <dc:date>2019-02-24T23:59:38Z</dc:date>
    <item>
      <title>Pivot Totals Incorrect When Rows Collapsed</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Totals-Incorrect-When-Rows-Collapsed/m-p/1548470#M440066</link>
      <description>&lt;P&gt;Hello - the measure expression below in my pivot table only works when all 3 dimensions are expanded. When the dimensions are collapsed, the total is just a grand total, without the set analysis invoked. Any ideas how to fix? I tried Dimensionality() but didn't work.&lt;/P&gt;&lt;P&gt;The 3 dimensions used are main, Region, and Branch below. The pivot table is grouped by Region, Branch, and main (in that order).&amp;nbsp; "yr" and "method2" are&amp;nbsp;the columns of the pivot table (in that order). Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=if(Dimensionality()&amp;lt;= 2 ,count(&lt;BR /&gt;aggr(count(( IF(&lt;BR /&gt;&amp;nbsp;Aggr(distinct&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;sum({&amp;lt;method2={'Web'}&amp;gt;}totalpmt)/Sum(total &amp;lt;main, [yr], [Region] , [Branch]&amp;gt; totalpmt)&lt;BR /&gt;&amp;nbsp;main,yr, [Region], [Branch])&amp;gt;=$(UsageAbove),&lt;BR /&gt;1))&lt;BR /&gt;),main, [Region], [Branch], yr)),&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;</description>
      <pubDate>Sun, 24 Feb 2019 23:59:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Totals-Incorrect-When-Rows-Collapsed/m-p/1548470#M440066</guid>
      <dc:creator>newuser</dc:creator>
      <dc:date>2019-02-24T23:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Totals Incorrect When Rows Collapsed</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Totals-Incorrect-When-Rows-Collapsed/m-p/1548481#M440069</link>
      <description>&lt;P&gt;&lt;BR /&gt;Create a variable and store:&lt;BR /&gt;vVariable = Sum(total &amp;lt;main, [yr], [Region] , [Branch]&amp;gt; totalpmt)&lt;/P&gt;&lt;P&gt;Set Expression:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SUM(&lt;BR /&gt;IF(&lt;BR /&gt;Aggr(&lt;BR /&gt;sum({&amp;lt;method2={'Web'}&amp;gt;}totalpmt)/$(vVariable)&lt;BR /&gt;,main,yr, [Region], [Branch]&lt;BR /&gt;)&lt;BR /&gt;&amp;gt;=$(UsageAbove),1)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2019 02:12:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Totals-Incorrect-When-Rows-Collapsed/m-p/1548481#M440069</guid>
      <dc:creator>ashishkalia</dc:creator>
      <dc:date>2019-02-25T02:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Totals Incorrect When Rows Collapsed</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Totals-Incorrect-When-Rows-Collapsed/m-p/1548932#M440099</link>
      <description>&lt;P&gt;For some reason, the totals look correct (collapsed or expanded rows) when I used this simpler express below. How does one know to use AGGR in the measure vs. when not to use AGGR in a measure? Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;pay_method2={'Web'}&amp;gt;}totalpmt)&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2019 23:13:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Totals-Incorrect-When-Rows-Collapsed/m-p/1548932#M440099</guid>
      <dc:creator>newuser</dc:creator>
      <dc:date>2019-02-25T23:13:26Z</dc:date>
    </item>
  </channel>
</rss>

