HubSpot's KB: compare multiple time ranges with Date part (for example quarter year over year) or Compare by. If no preset fits, choose Custom in the Filter period dropdown.
1. In HubSpot
The relevant screen in my demo portal.
Custom report (1), single-object (2), and templates (3).
2. Worth knowing
Dataset-based reports with formulas need Data Hub Enterprise.