Hi,
Welcome to the QuickSight community.
You can do this comparison using periodOverPeriodLastValue. Please
It is explained in detail in this community article.
Hope it meets your requirement to compare over the previous period.
Regards,
Anwar Ali