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
- 2K Product Ideas
- 2K Ideas Exchange
- 1.6K Connect
- 1.3K Connectors
- 311 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 3.8K Transform
- 656 Datasets
- 115 SQL DataFlows
- 2.2K Magic ETL
- 813 Beast Mode
- 3.3K Visualize
- 2.5K Charting
- 81 App Studio
- 45 Variables
- 772 Automate
- 190 Apps
- 481 APIs & Domo Developer
- 78 Workflows
- 23 Code Engine
- 36 AI and Machine Learning
- 19 AI Chat
- AI Playground
- AI Projects and Models
- 17 Jupyter Workspaces
- 410 Distribute
- 120 Domo Everywhere
- 280 Scheduled Reports
- 10 Software Integrations
- 143 Manage
- 139 Governance & Security
- 8 Domo Community Gallery
- 48 Product Releases
- 12 Domo University
- 5.4K Community Forums
- 41 Getting Started
- 31 Community Member Introductions
- 114 Community Announcements
- 4.8K Archive