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
- 1.2K Product Ideas
- 1.2K Ideas Exchange
- 1.4K Connect
- 1.1K Connectors
- 273 Workbench
- 2 Cloud Amplifier
- 3 Federated
- 2.7K Transform
- 78 SQL DataFlows
- 525 Datasets
- 2.1K Magic ETL
- 2.9K Visualize
- 2.2K Charting
- 437 Beast Mode
- 23 Variables
- 513 Automate
- 115 Apps
- 390 APIs & Domo Developer
- 8 Workflows
- 26 Predict
- 10 Jupyter Workspaces
- 16 R & Python Tiles
- 332 Distribute
- 77 Domo Everywhere
- 255 Scheduled Reports
- 66 Manage
- 66 Governance & Security
- 1 Product Release Questions
- Community Forums
- 40 Getting Started
- 26 Community Member Introductions
- 68 Community Announcements
- 4.8K Archive