Trying to visualize a sales funnel via Hubspot data and running into issues. I need to create a calculated column counting instances that a date field falls in "last week". Is there a quick calc for something like that?
You could use the date range filter to show only last week.
You could also create a beast mode that would tell you if the date is within the previous week.
CASE WHEN `date` >= /* first day of the previous week */ DATE_SUB(DATE_SUB(CURRENT_DATE(), INTERVAL 1 WEEK) , INTERVAL (DAYOFWEEK(CURRENT_DATE()) - 1) DAY) AND `date` <= /* last day of the previous week */ DATE_ADD(DATE_SUB(CURRENT_DATE(), INTERVAL 1 WEEK) , INTERVAL (7- DAYOFWEEK(CURRENT_DATE())) DAY) THEN 'Y' ELSE 'N' END
Add this beast mode to your filter and filter to Y