Hi! This is my first topic here.
I need to get the sum of previous months like if the current month is september and the minimum month is july. I need the sum between this. Another example if the same account number the current month is august, I need the sum between from august to july.

For this situation, For the current month 09-2022 must show 3, august 2 and july 1.
Thank you so much!