Aggregate with dynamic time range

Hello,
I am trying to create an aggregation based on a dynamic time frame which I want to calculate.
I was trying to do something like this

But I cant get it to work...
Any suggestions?

Please don't post pictures of text, logs or code. They are difficult to read, impossible to search and replicate (if it's code), and some people may not be even able to see them :slight_smile:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.