<?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 Aggr average not rolling up as expected in pivot table in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Aggr-average-not-rolling-up-as-expected-in-pivot-table/m-p/1923473#M76009</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have a pivot table with several dimensions, and am trying to display the average at each level of the dimension below. I am trying to avoid using any hard-coded expression based on dimensionality() or getobjectfield() since there are several dimensions and they may be moved around for analysis.&lt;/P&gt;
&lt;P&gt;Simplified example and expected output:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Brysonds_1-1651071468832.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/78095i1EFABD29FD669952/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Brysonds_1-1651071468832.png" alt="Brysonds_1-1651071468832.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;This is the formula I am using:&lt;BR /&gt;&lt;BR /&gt;Avg(Aggr(Sum([Measure]),[Customer Group],[Customer],[Employee],[Product]))&lt;BR /&gt;&lt;BR /&gt;Interestingly enough, if I add a second measure of Avg(Measure), this gives the exact same output as the aggr version above, so I assume there is a problem with my expression.&lt;/P&gt;</description>
    <pubDate>Wed, 27 Apr 2022 15:04:29 GMT</pubDate>
    <dc:creator>Brysonds</dc:creator>
    <dc:date>2022-04-27T15:04:29Z</dc:date>
    <item>
      <title>Aggr average not rolling up as expected in pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-average-not-rolling-up-as-expected-in-pivot-table/m-p/1923473#M76009</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have a pivot table with several dimensions, and am trying to display the average at each level of the dimension below. I am trying to avoid using any hard-coded expression based on dimensionality() or getobjectfield() since there are several dimensions and they may be moved around for analysis.&lt;/P&gt;
&lt;P&gt;Simplified example and expected output:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Brysonds_1-1651071468832.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/78095i1EFABD29FD669952/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Brysonds_1-1651071468832.png" alt="Brysonds_1-1651071468832.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;This is the formula I am using:&lt;BR /&gt;&lt;BR /&gt;Avg(Aggr(Sum([Measure]),[Customer Group],[Customer],[Employee],[Product]))&lt;BR /&gt;&lt;BR /&gt;Interestingly enough, if I add a second measure of Avg(Measure), this gives the exact same output as the aggr version above, so I assume there is a problem with my expression.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 15:04:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-average-not-rolling-up-as-expected-in-pivot-table/m-p/1923473#M76009</guid>
      <dc:creator>Brysonds</dc:creator>
      <dc:date>2022-04-27T15:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr average not rolling up as expected in pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-average-not-rolling-up-as-expected-in-pivot-table/m-p/1924168#M76068</link>
      <description>&lt;P&gt;don't use Avg() at all, calculate the average&amp;nbsp; as sum() / count()&lt;/P&gt;
&lt;P&gt;example, Average sales per transaction&lt;/P&gt;
&lt;P&gt;sum(Sales)/Count(Transaction)&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 17:00:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-average-not-rolling-up-as-expected-in-pivot-table/m-p/1924168#M76068</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2022-04-28T17:00:29Z</dc:date>
    </item>
  </channel>
</rss>

