<?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: Row Level Aggregation in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Row-Level-Aggregation/m-p/1799692#M64778</link>
    <description>&lt;P&gt;Hi - Solved it - if anyone else comes across the same, and what I assume is a very specific issue, then I needed to sub total my inner set analysis, and tweak the outer.&amp;nbsp; New code is:&amp;nbsp;&lt;/P&gt;&lt;P&gt;SUM( {&amp;lt; DataType={Forecast} &amp;gt;}&lt;/P&gt;&lt;P&gt;AGGR(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(SUM( Total &amp;lt;GBM&amp;gt; {&amp;lt;Year={$(vYearChoiceBaseCommission)} &amp;gt;}[Underlying Claims]) / SUM(Total &amp;lt;GBM&amp;gt; {&amp;lt;Year={$(vYearChoiceBaseCommission)} &amp;gt;}[GEP]))&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;(SUM({&amp;lt;DataType={Forecast}&amp;gt;}GEP_Forecast))&lt;/P&gt;&lt;P&gt;, Year, GBM )&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Apr 2021 09:54:45 GMT</pubDate>
    <dc:creator>MrAndrews</dc:creator>
    <dc:date>2021-04-15T09:54:45Z</dc:date>
    <item>
      <title>Row Level Aggregation</title>
      <link>https://community.qlik.com/t5/App-Development/Row-Level-Aggregation/m-p/1799165#M64725</link>
      <description>&lt;P&gt;Hi - I've been looking at this for ages, but I've hit a brick wall...&lt;/P&gt;&lt;P&gt;I'm building something which takes historical data, creates a ratio, then applies that ratio to future metrics.&amp;nbsp; &amp;nbsp;The pivot then displays the future metrics.&amp;nbsp; I can get the pivot to behave perfectly well at a Totals level, but they also want to it doing the aggregation at a lower level... basically where the calculation happens on a row by row basis, and then gets summed afterwards.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This Measure is fine...&lt;/P&gt;&lt;P&gt;SUM( {&amp;lt; DataType={Forecast} &amp;gt;}&lt;BR /&gt;&amp;nbsp; AGGR(&lt;/P&gt;&lt;P&gt;(SUM(Total {&amp;lt;Year={$(vYearChoiceBaseCommission)} &amp;gt;}[Underlying Claims]) / SUM(Total{&amp;lt;Year={$(vYearChoiceBaseCommission)} &amp;gt;}[GEP]))&lt;BR /&gt;*&lt;BR /&gt;&lt;BR /&gt;(SUM( GEP_Forecast))&lt;BR /&gt;, Year)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is absolutely fine for working out all of the totals after aggregation, but I can't work out how to do the aggregation at a row level ( there is a split of 'GBMS' by Year).&amp;nbsp; I have been messing about with Removing Total, adding Aggr in different places, but i've got total blindness now!&amp;nbsp; &amp;nbsp; I can't shove this in the script as they want other flexibility.... it's a whole thing...&lt;/P&gt;&lt;P&gt;Sadly, I am unable to export an app, but i've attached dummy data and a screenshot... please help!&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd really appreciate any help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2021 21:56:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Row-Level-Aggregation/m-p/1799165#M64725</guid>
      <dc:creator>MrAndrews</dc:creator>
      <dc:date>2021-12-21T21:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: Row Level Aggregation</title>
      <link>https://community.qlik.com/t5/App-Development/Row-Level-Aggregation/m-p/1799692#M64778</link>
      <description>&lt;P&gt;Hi - Solved it - if anyone else comes across the same, and what I assume is a very specific issue, then I needed to sub total my inner set analysis, and tweak the outer.&amp;nbsp; New code is:&amp;nbsp;&lt;/P&gt;&lt;P&gt;SUM( {&amp;lt; DataType={Forecast} &amp;gt;}&lt;/P&gt;&lt;P&gt;AGGR(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(SUM( Total &amp;lt;GBM&amp;gt; {&amp;lt;Year={$(vYearChoiceBaseCommission)} &amp;gt;}[Underlying Claims]) / SUM(Total &amp;lt;GBM&amp;gt; {&amp;lt;Year={$(vYearChoiceBaseCommission)} &amp;gt;}[GEP]))&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;(SUM({&amp;lt;DataType={Forecast}&amp;gt;}GEP_Forecast))&lt;/P&gt;&lt;P&gt;, Year, GBM )&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 09:54:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Row-Level-Aggregation/m-p/1799692#M64778</guid>
      <dc:creator>MrAndrews</dc:creator>
      <dc:date>2021-04-15T09:54:45Z</dc:date>
    </item>
  </channel>
</rss>

