Hi Power Users,
I have created two different functions which I thought should work in the same way:
#1)

#2)

filter part of this function is working properly, was tested before (let's skip the delegation for now),
#1 is working properly, returning me collection with Level (in text, based on choice field) and Threshold (number) - total of X records
#2 however is also creating X records, creating proper column names (they are only defined in this function, so I know this part is workings), but data is empty:

I cannot understand the difference between those functions, for me they both should return populated collection. I just need to understand this code, no need for alternative solutions as I already have #1 working, if you have any idea, let me know.