Hi!
I need to fill the last date gap within my workflow. The premise of my automation is to analyze the data of previous working date.
So, I need to:
- If today is monday, the last available data is from friday, then copy paste friday data to saturday and sunday.
- If today is monday, the last available data is from thursday (because friday is holiday), then copy paste friday data to saturday and sunday.
- If today is wednesday, the last available data is from monday (because tuesday is holiday), then copy paste monday data to tuesday.
I created an auxiliary table with all weekend and holiday dates to help me out, but I cannot think of a way to do this. Anyone has any ideas?
There's also a sequence o two holidays in a row. (that could happen)