<?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 Aggregation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggregation/m-p/1224553#M391055</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do have a Pivot table. I wish to get the "Team * order out" expressions right.&lt;/P&gt;&lt;P&gt;The aggregation have to be made according to Order and Team. Also if &lt;SPAN style="font-size: 13.3333px;"&gt;this expression&lt;/SPAN&gt; If(Type = "KG" and Fact/Plan &amp;gt; 0.9, 1, If(Fact/Plan = 1, 1, 0))&amp;nbsp; returns 0 than the whole order lines have to become 0. All expressions in Set analysis manner and in front end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The out come I would like to get:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screenshot_2.jpg" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/155107_Screenshot_2.jpg" style="height: 203px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the logic that stands behind:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="155106" alt="Screenshot_1.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/155106_Screenshot_1.jpg" style="height: 228px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If any questions arises please ask.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for cooperation!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Mar 2017 08:12:37 GMT</pubDate>
    <dc:creator>MindaugasBacius</dc:creator>
    <dc:date>2017-03-03T08:12:37Z</dc:date>
    <item>
      <title>Aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation/m-p/1224553#M391055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do have a Pivot table. I wish to get the "Team * order out" expressions right.&lt;/P&gt;&lt;P&gt;The aggregation have to be made according to Order and Team. Also if &lt;SPAN style="font-size: 13.3333px;"&gt;this expression&lt;/SPAN&gt; If(Type = "KG" and Fact/Plan &amp;gt; 0.9, 1, If(Fact/Plan = 1, 1, 0))&amp;nbsp; returns 0 than the whole order lines have to become 0. All expressions in Set analysis manner and in front end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The out come I would like to get:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screenshot_2.jpg" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/155107_Screenshot_2.jpg" style="height: 203px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the logic that stands behind:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="155106" alt="Screenshot_1.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/155106_Screenshot_1.jpg" style="height: 228px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If any questions arises please ask.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for cooperation!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Mar 2017 08:12:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation/m-p/1224553#M391055</guid>
      <dc:creator>MindaugasBacius</dc:creator>
      <dc:date>2017-03-03T08:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation/m-p/1224554#M391056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the attachment, you will find some sort of a solution that meets your preferred conditions... but to be honest, it was a nice exercise in using Aggr, but it's kind of ridiculous (kudos to you if you can understand what that formula is doing, I'm pretty sure I myself would have problems with it in a week time &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would make much more sense to me to calculate whether order can be counted as "out" or not in script (with group by Order and Team), and then use such flag in your formulas.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Mar 2017 10:15:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation/m-p/1224554#M391056</guid>
      <dc:creator>kuba_michalik</dc:creator>
      <dc:date>2017-03-03T10:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation/m-p/1224555#M391057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be another option&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1) Max(TOTAL &amp;lt;Order, Team&amp;gt;{&amp;lt;Type = {'KG'}&amp;gt;} If(Fact/Plan &amp;gt; 0.9 and Team = 1, 1, 0))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;2) Max(TOTAL &amp;lt;Order, Team&amp;gt;{&amp;lt;Type = {'KG'}&amp;gt;} If(Fact/Plan &amp;gt; 0.9 and Team = 2, 1, 0))&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;3) Max(TOTAL &amp;lt;Order, Team&amp;gt;{&amp;lt;Type = {'KG'}&amp;gt;} If(Fact/Plan &amp;gt; 0.9 and Team = 3, 1, 0))&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/155165_Capture.PNG" style="height: 151px; width: 620px;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Mar 2017 13:55:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation/m-p/1224555#M391057</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-03T13:55:34Z</dc:date>
    </item>
  </channel>
</rss>

