case when to_char(add_months({today},-3),'Mon YYYY...
# general
m
case when to_char(add_months({today},-3),'Mon YYYY') = {transaction.postingperiod} and {transaction.type} = 'Invoice' then {transaction.quantity} else 0 END