This super close to your query.
Yes it is slow
Yes there are better ways to do this
But it works. lol
Differences:
TranDate to be the last three months from today vs the date field you have.
Company Filter on the main, which you can add quickly.
testgroup.baq (43.7 KB)