<?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 Help in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Aggregation-Help/m-p/2458464#M98659</link>
    <description>&lt;P&gt;Hello Good people. Stuck at a problem.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-06-02 030046.png" style="width: 643px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/167232i16141A8941E412A8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-06-02 030046.png" alt="Screenshot 2024-06-02 030046.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;What i'm trying to do is I want to sum the values for each individual material on the right.&lt;/P&gt;
&lt;P&gt;For example: for the number 1000034697 we have 4 sub numbers 7000090312,7000090314,7000090315,7000090313 which each have their own values as 0,259776,277128,491832. Here's the formula for the right most column:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;=aggr(if(RequirementRSF &amp;lt; 0, 0, RequirementRSF),BOM_Material)&lt;/P&gt;
&lt;P&gt;What I want is I want to create a separate table that would give me 1000034697 and its value as 1028736. Same for all the other number series. Some how my aggregation works fine only when I select one number from the left. But its not gives me zero if I do not select any number. Any advice?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 01 Jun 2024 22:15:46 GMT</pubDate>
    <dc:creator>ISK</dc:creator>
    <dc:date>2024-06-01T22:15:46Z</dc:date>
    <item>
      <title>Aggregation Help</title>
      <link>https://community.qlik.com/t5/App-Development/Aggregation-Help/m-p/2458464#M98659</link>
      <description>&lt;P&gt;Hello Good people. Stuck at a problem.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-06-02 030046.png" style="width: 643px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/167232i16141A8941E412A8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-06-02 030046.png" alt="Screenshot 2024-06-02 030046.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;What i'm trying to do is I want to sum the values for each individual material on the right.&lt;/P&gt;
&lt;P&gt;For example: for the number 1000034697 we have 4 sub numbers 7000090312,7000090314,7000090315,7000090313 which each have their own values as 0,259776,277128,491832. Here's the formula for the right most column:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;=aggr(if(RequirementRSF &amp;lt; 0, 0, RequirementRSF),BOM_Material)&lt;/P&gt;
&lt;P&gt;What I want is I want to create a separate table that would give me 1000034697 and its value as 1028736. Same for all the other number series. Some how my aggregation works fine only when I select one number from the left. But its not gives me zero if I do not select any number. Any advice?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Jun 2024 22:15:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggregation-Help/m-p/2458464#M98659</guid>
      <dc:creator>ISK</dc:creator>
      <dc:date>2024-06-01T22:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation Help</title>
      <link>https://community.qlik.com/t5/App-Development/Aggregation-Help/m-p/2458471#M98661</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/193794"&gt;@ISK&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Check this one:&lt;BR /&gt;&lt;BR /&gt;Dimension: BOMinBOM_Material&lt;BR /&gt;Measure:&lt;BR /&gt;Sum(Aggr(Sum(TOTAL &amp;lt;BOM_Material&amp;gt; if(RequirementRSF &amp;lt; 0, 0, RequirementRSF)), BOM_Material))&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;******Hope this resolve your issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If the issue is solved please mark the answer with Accept as Solution &amp;amp; like it.********&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jun 2024 03:21:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggregation-Help/m-p/2458471#M98661</guid>
      <dc:creator>TauseefKhan</dc:creator>
      <dc:date>2024-06-02T03:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation Help</title>
      <link>https://community.qlik.com/t5/App-Development/Aggregation-Help/m-p/2458496#M98664</link>
      <description>&lt;P&gt;Unfortunately no. The formula gives zero values.&lt;/P&gt;
&lt;P&gt;Here's what I tried:&lt;/P&gt;
&lt;P&gt;aggr(sum(aggr(if(RequirementRSF &amp;lt; 0, 0, RequirementRSF), BOM_Material)),BOMinBOM_Material)&lt;/P&gt;
&lt;P&gt;Nows here's the output I get if I dont select any BOMinBOM_Material:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-06-02 140600.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/167240i70ED65441DFB16E4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-06-02 140600.png" alt="Screenshot 2024-06-02 140600.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;And here's the output I get when I select only one Material. Somehow it works only when selecting one material.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-06-02 140637.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/167241iBC73A8B757EA962C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-06-02 140637.png" alt="Screenshot 2024-06-02 140637.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jun 2024 09:09:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggregation-Help/m-p/2458496#M98664</guid>
      <dc:creator>ISK</dc:creator>
      <dc:date>2024-06-02T09:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation Help</title>
      <link>https://community.qlik.com/t5/App-Development/Aggregation-Help/m-p/2458498#M98665</link>
      <description>&lt;P&gt;No need to use Expression in first column: Just use&amp;nbsp;BOM_Material&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TauseefKhan_0-1717319612706.png" style="width: 514px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/167242iC66EA1E0981A488F/image-dimensions/514x120?v=v2" width="514" height="120" role="button" title="TauseefKhan_0-1717319612706.png" alt="TauseefKhan_0-1717319612706.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;or you can go with Scripting:&lt;BR /&gt;&lt;BR /&gt;Material_Data:&lt;BR /&gt;LOAD&lt;BR /&gt;BOM_Material,&lt;BR /&gt;BOM_Sub_Material,&lt;BR /&gt;RequirementRSF,&lt;BR /&gt;if(RequirementRSF &amp;lt; 0, 0, RequirementRSF) as Valid_RequirementRSF&lt;BR /&gt;INLINE [&lt;BR /&gt;BOM_Material, BOM_Sub_Material, RequirementRSF&lt;BR /&gt;1000034697, 7000090312, 0&lt;BR /&gt;1000034697, 7000090314, 259776&lt;BR /&gt;1000034697, 7000090315, 277128&lt;BR /&gt;1000034697, 7000090313, 491832&lt;BR /&gt;1000034699, 7000090318, 0&lt;BR /&gt;1000034699, 7000090319, 0&lt;BR /&gt;1000034699, 7000090314, 259776&lt;BR /&gt;1000034699, 7000090315, 277128&lt;BR /&gt;1000034700, 7000090318, 0&lt;BR /&gt;1000034700, 7000090319, 0&lt;BR /&gt;1000034700, 7000090314, 259776&lt;BR /&gt;1000034700, 7000090315, 277128&lt;BR /&gt;];&lt;BR /&gt;///*&lt;BR /&gt;Aggregated_Material_Data:&lt;BR /&gt;LOAD &lt;BR /&gt;BOM_Material,&lt;BR /&gt;Sum(Valid_RequirementRSF) as Total_RequirementRSF&lt;BR /&gt;RESIDENT Material_Data&lt;BR /&gt;GROUP BY BOM_Material;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;*****Hope this resolve your issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If the issue is solved please mark the answer with Accept as Solution &amp;amp; like it.******&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jun 2024 09:28:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggregation-Help/m-p/2458498#M98665</guid>
      <dc:creator>TauseefKhan</dc:creator>
      <dc:date>2024-06-02T09:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation Help</title>
      <link>https://community.qlik.com/t5/App-Development/Aggregation-Help/m-p/2458499#M98666</link>
      <description>&lt;P&gt;Step 1: Get rid of the unnecessary if() in the measure. You can use RangeMax instead:&lt;/P&gt;
&lt;P&gt;RangeMax(RequirementRSF,0)&lt;/P&gt;
&lt;P&gt;Step 2: This looks like it should work with Total &amp;lt;Field&amp;gt; rather than needing aggr, so:&lt;/P&gt;
&lt;P&gt;Sum(total &amp;lt;BOM_Material&amp;gt; RangeMax(RequirementRSF,0) )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that I'm not sure what the dimension's if() statement is about, so I don't know if that'll have any impact on the results.&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jun 2024 09:28:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggregation-Help/m-p/2458499#M98666</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2024-06-02T09:28:33Z</dc:date>
    </item>
  </channel>
</rss>

