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.8K Product Ideas
- 1.8K Ideas Exchange
- 1.6K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 2.9K Transform
- 101 SQL DataFlows
- 622 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 748 Beast Mode
- 59 App Studio
- 41 Variables
- 686 Automate
- 176 Apps
- 453 APIs & Domo Developer
- 47 Workflows
- 10 DomoAI
- 36 Predict
- 15 Jupyter Workspaces
- 21 R & Python Tiles
- 396 Distribute
- 113 Domo Everywhere
- 276 Scheduled Reports
- 7 Software Integrations
- 125 Manage
- 122 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 10 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 109 Community Announcements
- 4.8K Archive