Yes you see how “number” is nested within “Days” (collection) in screenshot 1; so your map function must reflect that. Currently you only map until until the collection, which likely returns empty/null.
I changed everything from a formula property to a normal numbers property. THAT worked, but not what I need. I also noticed if just 1 row is empty, the average doesn’t work. All rows must contain something. Also not what I need.
For context, the formula number is the property “Days” which refers to the amount of days someone has been in the program. I want to get averages of everyone once per month and return a number in another database with a whole bunch of other metrics. “Days” has to be a formula as the entire point of this is automation, obviously.