Count of date instances "last week"
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?
0
Answers
-
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
**Check out my Domo Tips & Tricks Videos
**Make sure toany users posts that helped you.
**Please mark as accepted the ones who solved your issue.1
Categories
- 7.4K All Categories
- 13 Getting Started in the Community
- 150 Beastmode & Analytics
- 1.8K Data Platform & Data Science
- 54 Domo Everywhere
- 2K Charting
- 1K Ideas Exchange
- 905 Connectors
- 239 Workbench
- 343 APIs
- 77 Apps
- 19 Governance & Productivity
- 237 Use Cases & Best Practices
- 50 News
- 473 Onboarding
- 573 日本支部