I need to know what is the date 5 previous business days from current day, including holidays
The domo data set for calendar has columns for isHoliday and is workday, but how do I find the 5th previous day from a given date that contains 5 business days. For example, if the date is 11/28/2022 it should return a date of 11/18/2022 because there is 1 holiday (11/24) and two weekends(total of 5 non working days).
Thanks,
Mike
Best Answer
-
If I solved your problem, please select "yes" above
1
Answers
-
You could do this in Magic ETL. Use the domo calendar dataset, filter out all non-work days, and then use a lag function to retrieve the value 5 rows back. This would give you the date you are looking for.
If I solved your problem, please select "yes" above
1 -
Depending on what you need, ETL is most likely the way to go. Otherwise, if what you need is a list of the last N workable days, you can do that with just a table, filters and limiting the number of rows.
1 -
ETL is 100% the way to go, and you can use the Domo Date Dimension if you don't have a custom calendar.
0 -
If you mean to use a function called Lag in a Formula tile, I don't see that function as an option. I assume I have misunderstood.
Mike
0 -
If I solved your problem, please select "yes" above
1 -
Thanks for the help! Exactly what I needed.
MIke
0
Categories
- All Categories
- Product Ideas
- 2.1K Ideas Exchange
- Data Connections
- 1.3K Connectors
- 309 Workbench
- 17 Cloud Integrations
- Data & ETL
- 2.3K Magic ETL
- 120 SQL DataFlows
- 667 Datasets
- Visualize & Apps
- 90 App Studio
- 198 Pro-code Components
- 2.6K Charting & Analyzer
- 873 Calculations & Variables (Beast Mode)
- AI & Data science
- 23 Domo AI & AI Chat
- 4 Managing AI
- 18 Jupyter Workspaces
- Automate
- 122 Workflows
- Alerts
- Distribute
- 118 Domo Everywhere
- 284 Reporting
- Manage
- 146 Governance & Security
- 489 APIs
- 11 Add-ins & Plugins
- 13 Domo Community Gallery
- 49 Product Releases
- 13 Domo University
- Community Forums
- 41 Getting Started
- 31 Community Member Introductions
- 118 Community Announcements
- 5K Archive