Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
timo_brenner
Contributor III
Contributor III

MIN with Aggr and Rangesum

Hello everybody,

I have the following Data:

timo_brenner_0-1642494774281.png

The Column "voraussichtlich Verfügbar bis Fälligkeit" calculates the stock for each "Komponentennr." until a certain date ("Komponentenfälligkeit"). The Formula is:

[Bestand_Komponentennr.]-
Aggr(rangesum(above( sum(Komponentenrestmenge),0,rowno())),[Komponentennr.],([Komponentenfälligkeit],(Numeric, ascending)))

 

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".

In the first five rows the callback has to be 191, in the last three rows it has to be -147.

I tried following formula:

MIN(aggr(
Aggr(rangesum(above( sum(Komponentenrestmenge),0,rowno())),[Komponentennr.],([Komponentenfälligkeit],(Numeric, ascending))),[FA-Nr.],[FA-Zeilennr.],[Arbeitsgangnr.]))

The formula doesn't work. There isn't a result in any row.

What am I doing wrong?

 

Thanks for your help.

Best regards 

Timo Brenner

 

0 Replies