<?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 MIN with Aggr and Rangesum in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/MIN-with-Aggr-and-Rangesum/m-p/1882155#M72645</link>
    <description>&lt;P&gt;Hello everybody,&lt;/P&gt;
&lt;P&gt;I have the following Data:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="timo_brenner_0-1642494774281.png" style="width: 919px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/70391iB0B05CE2BB9B182D/image-dimensions/919x159?v=v2" width="919" height="159" role="button" title="timo_brenner_0-1642494774281.png" alt="timo_brenner_0-1642494774281.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The Column "voraussichtlich Verfügbar bis Fälligkeit" calculates the stock for each "Komponentennr." until a certain date ("Komponentenfälligkeit"). The Formula is:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;[Bestand_Komponentennr.]-&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Aggr(rangesum(above( sum(Komponentenrestmenge),0,rowno())),[Komponentennr.],([Komponentenfälligkeit],(Numeric, ascending)))&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now I want to creat a new column which should show the minimum of the calculated stock for each combination of "FA-Nr.", "FA-Zeilennr." and "Arbeitsgangnummer".&lt;/P&gt;
&lt;P&gt;In the first five rows the callback has to be 191, in the last three rows it has to be -147.&lt;/P&gt;
&lt;P&gt;I tried following formula:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;MIN(aggr(&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Aggr(rangesum(above( sum(Komponentenrestmenge),0,rowno())),[Komponentennr.],([Komponentenfälligkeit],(Numeric, ascending))),[FA-Nr.],[FA-Zeilennr.],[Arbeitsgangnr.]))&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;The formula doesn't work. There isn't a result in any row.&lt;/P&gt;
&lt;P&gt;What am I doing wrong?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your help.&lt;/P&gt;
&lt;P&gt;Best regards&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Timo Brenner&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 18 Jan 2022 08:42:44 GMT</pubDate>
    <dc:creator>timo_brenner</dc:creator>
    <dc:date>2022-01-18T08:42:44Z</dc:date>
    <item>
      <title>MIN with Aggr and Rangesum</title>
      <link>https://community.qlik.com/t5/App-Development/MIN-with-Aggr-and-Rangesum/m-p/1882155#M72645</link>
      <description>&lt;P&gt;Hello everybody,&lt;/P&gt;
&lt;P&gt;I have the following Data:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="timo_brenner_0-1642494774281.png" style="width: 919px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/70391iB0B05CE2BB9B182D/image-dimensions/919x159?v=v2" width="919" height="159" role="button" title="timo_brenner_0-1642494774281.png" alt="timo_brenner_0-1642494774281.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The Column "voraussichtlich Verfügbar bis Fälligkeit" calculates the stock for each "Komponentennr." until a certain date ("Komponentenfälligkeit"). The Formula is:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;[Bestand_Komponentennr.]-&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Aggr(rangesum(above( sum(Komponentenrestmenge),0,rowno())),[Komponentennr.],([Komponentenfälligkeit],(Numeric, ascending)))&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now I want to creat a new column which should show the minimum of the calculated stock for each combination of "FA-Nr.", "FA-Zeilennr." and "Arbeitsgangnummer".&lt;/P&gt;
&lt;P&gt;In the first five rows the callback has to be 191, in the last three rows it has to be -147.&lt;/P&gt;
&lt;P&gt;I tried following formula:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;MIN(aggr(&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Aggr(rangesum(above( sum(Komponentenrestmenge),0,rowno())),[Komponentennr.],([Komponentenfälligkeit],(Numeric, ascending))),[FA-Nr.],[FA-Zeilennr.],[Arbeitsgangnr.]))&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;The formula doesn't work. There isn't a result in any row.&lt;/P&gt;
&lt;P&gt;What am I doing wrong?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your help.&lt;/P&gt;
&lt;P&gt;Best regards&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Timo Brenner&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 08:42:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/MIN-with-Aggr-and-Rangesum/m-p/1882155#M72645</guid>
      <dc:creator>timo_brenner</dc:creator>
      <dc:date>2022-01-18T08:42:44Z</dc:date>
    </item>
  </channel>
</rss>

