<?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: Aggregation in Pivot Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggregation-in-Pivot-Table/m-p/1816711#M1213064</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Could you try something like;&lt;/P&gt;&lt;P&gt;if(Dimensionality()=1,sum(Budget), sum(Budget)/Count(TOTAL Project_No))&lt;/P&gt;&lt;P&gt;So;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="20210621_2.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/57230i14165C059048125C/image-size/large?v=v2&amp;amp;px=999" role="button" title="20210621_2.png" alt="20210621_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Becomes;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="20210621_3.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/57231i6CDC8C2C8BD7E1FD/image-size/large?v=v2&amp;amp;px=999" role="button" title="20210621_3.png" alt="20210621_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Chris.&lt;/P&gt;</description>
    <pubDate>Mon, 21 Jun 2021 18:27:11 GMT</pubDate>
    <dc:creator>chrismarlow</dc:creator>
    <dc:date>2021-06-21T18:27:11Z</dc:date>
    <item>
      <title>Aggregation in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-in-Pivot-Table/m-p/1816569#M1213059</link>
      <description>&lt;P&gt;Hi, I haven't worked with QV in some time, so I'm a bit rusty and hope someone here can help me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;See attached file: My company creates budgets on a project base, but the data needs to be displayed on a project and a subcompany level.&amp;nbsp;&lt;/P&gt;&lt;P&gt;At the moment, on the subcompany-level, the total budget-value is always displayed on every line, as per standard QV procedure:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LessaBern_1-1624277332361.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/57166iED0ACD0EAD95FFB3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LessaBern_1-1624277332361.png" alt="LessaBern_1-1624277332361.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But now I need to divide that value by the number of subcompanies per Budget_No, so that the values in the column will add up correctly:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LessaBern_2-1624277395326.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/57167i172E2D8A71526124/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LessaBern_2-1624277395326.png" alt="LessaBern_2-1624277395326.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If I could do this in the script with the fixed number of Subcompanies per Budget_No, I would have no problems - but they want a dynamic display, where the Budget is always divided by the available/ selected number of Subcompanies, e.g. if only these five are selected, the total value still needs to add up:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LessaBern_3-1624277754872.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/57168iE371F1DF00614C41/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LessaBern_3-1624277754872.png" alt="LessaBern_3-1624277754872.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have tried everything I could find with aggr() and p(), but I can never get QV to display the actual values I need. Does anybody have a solution? It feels like it should be really simple, but apparantly, I'm too dumb.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jun 2021 12:50:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-in-Pivot-Table/m-p/1816569#M1213059</guid>
      <dc:creator>LessaBern</dc:creator>
      <dc:date>2021-06-21T12:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-in-Pivot-Table/m-p/1816711#M1213064</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Could you try something like;&lt;/P&gt;&lt;P&gt;if(Dimensionality()=1,sum(Budget), sum(Budget)/Count(TOTAL Project_No))&lt;/P&gt;&lt;P&gt;So;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="20210621_2.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/57230i14165C059048125C/image-size/large?v=v2&amp;amp;px=999" role="button" title="20210621_2.png" alt="20210621_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Becomes;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="20210621_3.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/57231i6CDC8C2C8BD7E1FD/image-size/large?v=v2&amp;amp;px=999" role="button" title="20210621_3.png" alt="20210621_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Chris.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jun 2021 18:27:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-in-Pivot-Table/m-p/1816711#M1213064</guid>
      <dc:creator>chrismarlow</dc:creator>
      <dc:date>2021-06-21T18:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-in-Pivot-Table/m-p/1816715#M1213066</link>
      <description>&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;thanks so much for the reply, but the problem with "total" is that it gives me the total amount of subcompanies or projects across all dimensions, and divides every budget value by it - but I need the number of (selectable/ selected) subcompanies per Budget_No:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LessaBern_0-1624300842629.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/57232i210D11FFFDEA3211/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LessaBern_0-1624300842629.png" alt="LessaBern_0-1624300842629.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If not for that, your solution would have worked perfectly (or my solution with p() from earlier this day).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jun 2021 18:44:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-in-Pivot-Table/m-p/1816715#M1213066</guid>
      <dc:creator>LessaBern</dc:creator>
      <dc:date>2021-06-21T18:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-in-Pivot-Table/m-p/1816718#M1213067</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Maybe;&lt;/P&gt;&lt;P&gt;if(Dimensionality()=1,sum(Budget), sum(Budget)/Count(TOTAL &amp;lt;[Budget Number]&amp;gt; Project_No))&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="20210621_4.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/57233iFD16478F83BA8FC5/image-size/large?v=v2&amp;amp;px=999" role="button" title="20210621_4.png" alt="20210621_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Chris.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jun 2021 18:55:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-in-Pivot-Table/m-p/1816718#M1213067</guid>
      <dc:creator>chrismarlow</dc:creator>
      <dc:date>2021-06-21T18:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-in-Pivot-Table/m-p/1816795#M1213070</link>
      <description>&lt;P&gt;Perfect, thanks! Now I feel stupid, I had completely forgotten how to aggregate a TOTAL by a dimension, this was the missing piece, thank you so much!&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jun 2021 21:43:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-in-Pivot-Table/m-p/1816795#M1213070</guid>
      <dc:creator>LessaBern</dc:creator>
      <dc:date>2021-06-21T21:43:15Z</dc:date>
    </item>
  </channel>
</rss>

