<?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: Nested Aggregation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Nested-Aggregation/m-p/1533328#M748263</link>
    <description>&lt;P&gt;Okay what is the expected output based on this new data that you have provided?&lt;/P&gt;</description>
    <pubDate>Tue, 22 Jan 2019 14:38:48 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2019-01-22T14:38:48Z</dc:date>
    <item>
      <title>Nested Aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-Aggregation/m-p/1531406#M748256</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I'm facing a problem regarding nested aggregations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm seeking a solution to find the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got Projects per Segment&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Projects per Segment" style="width: 128px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/3912i516301439038E637/image-size/large?v=v2&amp;amp;px=999" role="button" title="Projects.png" alt="Projects per Segment" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Projects per Segment&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I got per Day the amount of items per project&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ProjectItems" style="width: 272px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/3913i6998B742C5C5A27F/image-size/large?v=v2&amp;amp;px=999" role="button" title="ProjectItems.PNG" alt="ProjectItems" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;ProjectItems&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What I do is to calculate per day per item the sum (also per segment)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Maximum Per Day and Segment.PNG" style="width: 921px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/3914iB174F628A9BF4DB2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Maximum Per Day and Segment.PNG" alt="Maximum Per Day and Segment.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Now do I need the maximum per item and of that day the amount per segment (green rows above). With the function I use I only get the maximum per segment (please see the not correct output table below).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Maximum per Item per Segment.PNG" style="width: 990px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/3916iFB2D19FAFF917E42/image-size/large?v=v2&amp;amp;px=999" role="button" title="Maximum per Item per Segment.PNG" alt="Maximum per Item per Segment.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Does anyone have an idea to solve this problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:44:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-Aggregation/m-p/1531406#M748256</guid>
      <dc:creator>tomhovens</dc:creator>
      <dc:date>2024-11-16T04:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-Aggregation/m-p/1531544#M748257</link>
      <description>&lt;P&gt;Try this expression&lt;/P&gt;&lt;PRE&gt;Sum(Aggr(If(Max(TOTAL &amp;lt;Item&amp;gt; Aggr(Sum(Amount), Item, Date)) = Sum(TOTAL &amp;lt;Item, Date&amp;gt; Amount), Sum(Amount)), Item, Date, Segment))&lt;/PRE&gt;</description>
      <pubDate>Thu, 17 Jan 2019 12:51:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-Aggregation/m-p/1531544#M748257</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-01-17T12:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-Aggregation/m-p/1532530#M748258</link>
      <description>&lt;P&gt;Thanks Sunny, it works for most of all items. Only for items which has more than one day of max it's totalizing. Do you have an solution to that. It tried to work with count(distinct date). But it don't work.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 07:30:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-Aggregation/m-p/1532530#M748258</guid>
      <dc:creator>tomhovens</dc:creator>
      <dc:date>2019-01-21T07:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-Aggregation/m-p/1533230#M748259</link>
      <description>&lt;P&gt;Would you be able to share an example of the scenario you just mentioned?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jan 2019 12:23:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-Aggregation/m-p/1533230#M748259</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-01-22T12:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-Aggregation/m-p/1533286#M748260</link>
      <description>&lt;P&gt;Yes sure, no problem. Please see the attached files&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Maximum Graphic.png" style="width: 945px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/4229iBAA02C27F8CD0694/image-size/large?v=v2&amp;amp;px=999" role="button" title="Maximum Graphic.png" alt="Maximum Graphic.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jan 2019 13:46:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-Aggregation/m-p/1533286#M748260</guid>
      <dc:creator>tomhovens</dc:creator>
      <dc:date>2019-01-22T13:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-Aggregation/m-p/1533308#M748261</link>
      <description>&lt;P&gt;Project have different values then what was given earlier. What are the new Segment values associated with the new Project Numbers&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jan 2019 14:11:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-Aggregation/m-p/1533308#M748261</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-01-22T14:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-Aggregation/m-p/1533316#M748262</link>
      <description>&lt;P&gt;I added the segment, the projectid is different&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jan 2019 14:22:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-Aggregation/m-p/1533316#M748262</guid>
      <dc:creator>tomhovens</dc:creator>
      <dc:date>2019-01-22T14:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-Aggregation/m-p/1533328#M748263</link>
      <description>&lt;P&gt;Okay what is the expected output based on this new data that you have provided?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jan 2019 14:38:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-Aggregation/m-p/1533328#M748263</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-01-22T14:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-Aggregation/m-p/1533358#M748264</link>
      <description>&lt;P&gt;The expected output should be 10224 for segment 1, the other segments doesn't have any value. Problem is that the max amount per day is during from 25-06 untill 02-07. The function that you provided me summarize the 7 days&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jan 2019 15:01:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-Aggregation/m-p/1533358#M748264</guid>
      <dc:creator>tomhovens</dc:creator>
      <dc:date>2019-01-22T15:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-Aggregation/m-p/1533377#M748265</link>
      <description>&lt;P&gt;How about this&lt;/P&gt;&lt;PRE&gt;Sum(&lt;FONT color="#FF0000"&gt;DISTINCT&lt;/FONT&gt; Aggr(&lt;BR /&gt;   If(Max(TOTAL &amp;lt;Item&amp;gt; Aggr(Sum(Amount), Item, Date)) = Sum(TOTAL &amp;lt;Item, Date&amp;gt; Amount)&lt;BR /&gt;   , Sum(Amount))&lt;BR /&gt;, Item, Date, Segment))&lt;/PRE&gt;</description>
      <pubDate>Tue, 22 Jan 2019 15:18:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-Aggregation/m-p/1533377#M748265</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-01-22T15:18:06Z</dc:date>
    </item>
  </channel>
</rss>

