Create expression to calculate aggregated past values

Thanks @Sajarra 
This may be a solution, although I need to find a efficient way to retrieve the SLO average value for the past 30 days basing on each day