How to create comparison time periods like these examples
In a Pivot Report I would like to be able to select any date range and show a set of metrics for that date range e.g. revenue, orders, units sold.
I would then like to be able to compare to the previous period based on the amount of days on the selected date range. For example, if I select 2024-11-01 to 2024-11-07 the previous period would be the 7 days immediately prior to this range (i.e. 2024-10-25 to 2024-10-31). If I select 2024-11-01 2024-11-05 the previous period would be the 5 day period of 2024-10-27 to 2024-10-31, and so on. You can do this pretty easily in tools like Google Analytics for example.
I'd also like to see the equivalent period from the previous month, so if I select 2024-11-01 to 2024-11-07 I'd expect to see data from the equivalent days of the previous month i.e. 2024-10-01 to 2024-10-07. This could be in a separate report though. So I could have two reports in a dashboard and pick my study time period from a unified time period filter at the top of the dashboard. I have an idea how to do this one but would welcome a perspective from the community.
Thanks!