<?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 Help with aggr in pivot table - need to get the overall average by year in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Help-with-aggr-in-pivot-table-need-to-get-the-overall-average-by/m-p/2122056#M91358</link>
    <description>&lt;P&gt;I have the following expression&amp;nbsp; in a pivot table measure:&lt;/P&gt;
&lt;P&gt;aggr( count(distinct WorkDate),WorkMonth,WorkYear,BusUnit)&lt;/P&gt;
&lt;P&gt;It works at the WorkMonth level but I would like to get the average as a total for the year.&amp;nbsp; Please advise...thank you.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mikegrattan_0-1695655647039.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/117006i9AF09B71BEF7AD56/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mikegrattan_0-1695655647039.png" alt="mikegrattan_0-1695655647039.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Sep 2023 15:27:44 GMT</pubDate>
    <dc:creator>mikegrattan</dc:creator>
    <dc:date>2023-09-25T15:27:44Z</dc:date>
    <item>
      <title>Help with aggr in pivot table - need to get the overall average by year</title>
      <link>https://community.qlik.com/t5/App-Development/Help-with-aggr-in-pivot-table-need-to-get-the-overall-average-by/m-p/2122056#M91358</link>
      <description>&lt;P&gt;I have the following expression&amp;nbsp; in a pivot table measure:&lt;/P&gt;
&lt;P&gt;aggr( count(distinct WorkDate),WorkMonth,WorkYear,BusUnit)&lt;/P&gt;
&lt;P&gt;It works at the WorkMonth level but I would like to get the average as a total for the year.&amp;nbsp; Please advise...thank you.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mikegrattan_0-1695655647039.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/117006i9AF09B71BEF7AD56/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mikegrattan_0-1695655647039.png" alt="mikegrattan_0-1695655647039.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2023 15:27:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Help-with-aggr-in-pivot-table-need-to-get-the-overall-average-by/m-p/2122056#M91358</guid>
      <dc:creator>mikegrattan</dc:creator>
      <dc:date>2023-09-25T15:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: Help with aggr in pivot table - need to get the overall average by year</title>
      <link>https://community.qlik.com/t5/App-Development/Help-with-aggr-in-pivot-table-need-to-get-the-overall-average-by/m-p/2122502#M91375</link>
      <description>&lt;P&gt;You can use dimensionality() function to change the behaviour of your expression based on the level of aggregation you are.&lt;BR /&gt;For example:&lt;BR /&gt;If(Dimensionality()=2&lt;BR /&gt;&amp;nbsp; &amp;nbsp; ,&lt;SPAN&gt;aggr( count(distinct WorkDate),WorkMonth,WorkYear,BusUnit)&lt;BR /&gt;&lt;/SPAN&gt;&amp;nbsp; &amp;nbsp; ,aggr(avg(&lt;SPAN&gt;aggr( count(distinct WorkDate),WorkMonth,WorkYear,BusUnit)),WorkYear,BusUnit)&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 13:39:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Help-with-aggr-in-pivot-table-need-to-get-the-overall-average-by/m-p/2122502#M91375</guid>
      <dc:creator>vincent_ardiet_</dc:creator>
      <dc:date>2023-09-26T13:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: Help with aggr in pivot table - need to get the overall average by year</title>
      <link>https://community.qlik.com/t5/App-Development/Help-with-aggr-in-pivot-table-need-to-get-the-overall-average-by/m-p/2123053#M91412</link>
      <description>&lt;P&gt;Thanks Vincent; I believe this will work.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 14:05:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Help-with-aggr-in-pivot-table-need-to-get-the-overall-average-by/m-p/2123053#M91412</guid>
      <dc:creator>mikegrattan</dc:creator>
      <dc:date>2023-09-27T14:05:34Z</dc:date>
    </item>
  </channel>
</rss>

