Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
Hi,
How do I calculate the difference between two datetime columns and exclude weekends/holidays from the calculation?
I have created a standard calendar table and a public holidays table but not sure how to marry them together.
Appreciate any help.
Hi @Anonymous
Probably best is to merge both tables. Just add a new column to the main calendar table specifying whether a day is a holiday and another columns whether it's weekday or weekend. Then you can just calculate the date difference by count the number of days in between your two dates excluding holidays and weekends.
Please mark the question solved when done and consider giving kudos if posts are helpful.
Cheers
User | Count |
---|---|
12 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
25 | |
19 | |
14 | |
10 | |
7 |