Check out the rewritten formulas for cost Amount (Current Period) (copy 2) and previous year in the attached viz.
I have changed Period to Period (Copy) using :
DATETRUNC('month',[Posting Date])=datetrunc('month',[Month of Posting Date Parameter])
and Previous Year to Previous Year (Copy) using:
datetrunc('month',[Posting Date])=datetrunc('month',dateadd('month',-12,[Month of Posting Date Parameter]))
I hope this helps.
Please remember to mark this or any other reply that is helpful or solves your issue with the 'Correct Answer' and/or 'This Helped Me' links below.