Free Trial

General Discussions

Discuss any topics that are not product-specific here.
SOLVED

Calculate business days between dates based on Workday Table

jwalantdvyas
5 - Atom

Table 1: Work day table and 1 represent working day 0 represent non working day

Calendar_DateWork_Day
1/10/2019 0:001
2/10/2019 0:001
3/10/2019 0:001
4/10/2019 0:001
5/10/2019 0:000
6/10/2019 0:000
7/10/2019 0:000
8/10/2019 0:001
9/10/2019 0:001
10/10/2019 0:001
11/10/2019 0:001
12/10/2019 0:000
13/10/2019 0:000
14/10/2019 0:001
15/10/2019 0:001
16/10/2019 0:001
17/10/2019 0:001
18/10/2019 0:001
19/10/2019 0:000

 

Table 2

I have start date and End date in this table and want to calculate total working days between these dates

Start_DateEnd_DateTotal working Days
1/10/2019 0:006/10/2019 0:004
2/10/2019 0:007/10/2019 0:003
3/10/2019 0:008/10/2019 0:00?
4/10/2019 0:009/10/2019 0:00?
5/10/2019 0:0010/10/2019 0:00?
6/10/2019 0:0011/10/2019 0:00?
7/10/2019 0:0012/10/2019 0:00?
8/10/2019 0:0013/10/2019 0:00?
9/10/2019 0:0014/10/2019 0:00?
10/10/2019 0:0015/10/2019 0:00?
11/10/2019 0:0016/10/2019 0:00?
12/10/2019 0:0017/10/2019 0:00?
13/10/2019 0:0018/10/2019 0:00?
14/10/2019 0:0019/10/2019 0:00?

 

2 REPLIES 2
Qiu
21 - Polaris
21 - Polaris

@jwalantdvyas 
With basic tools we can do something like below.

0331-jwalantdvyas.PNG

binuacs
21 - Polaris

@jwalantdvyas another method 

binuacs_0-1648711916780.png

 

Labels
Top Solution Authors