In my report, I have two events. I want to calcula...

# questionsd

dry-journalist-28459

09/28/2023, 10:19 PMIn my report, I have two events. I want to calculate the percentage B of A, but from the previous month.
I know I can use a formula to calculate that for the current month, but I need to calculate it across months.
For example, in August 2023, event A had 35702 occurrences. And in September 2023 event B had 8110 occurrences. So the percentage would be ~23%.
Any ideas if this is possible at all?