How to Create a Dynamic Period over Period Beast Mode in a Table

I have a table chart that I am trying to show the percent change in sales period over period. An example would be sales grew by 5% in June 2021 vs sales in May 2021. With this, I want to be able to dynamically select a date range to view different periods of time like "previous year" or "last 12 months". Any recommendations on how to handle this with a Beast Mode and present it in a table card format?


Other sales-related filters will be used on this card as well (suppliers, account numbers, etc.).

 Example Data:

Screenshot of Example Card:

Thanks in advance for your help!