Hi @Zerry00
There is a nice article in the learning section that deals with period over period calculations.
One key aspect when dealing with prior periods is that your calculated fields does the filtering and you should not apply a filter on the visual itself. The parameter controls for dates will provide the range on the basis of which your calculated field would work.
Regards,
Giri