反馈已提交
网络繁忙
A group of interns came to the company, and their wages were settled according to the number of days they worked. We hope to calculate how many working days they have worked through "start time" and "end time".
By marking a date and subtracting the number of marks of two dates, you can obtain the number of working days between two dates.
Download sample data for this article:130.sample data.rar
1) The content format of the date table is shown in the following table:
If the user's own holiday time is different from the table, it can be changed.
2) Upload the date table to finebi. Add the self-service dataset "holiday marking table" and check all data in the "DateChart". As shown in the figure below:
3) Add a new column to mark the date with 0 and 1. 0 for holidays and 1 for non holidays. As shown in the figure below:
4) Add a new column called "Accumulation mark". As shown in the figure below:
The table after accumulation is shown in the figure below. You can directly calculate the working days between two dates through the "Accumulation mark" field.
For example, the number of working days between March 14, 2011 and March 8, 2011 only needs to be subtracted by the corresponding "Accumulation mark" value: (45-41) + 1 = 5 days.
1) Upload the "NameChart", create a new self-service dataset, and check all fields of the "NameChart". As shown in the figure below:
2) Add left and right merge. Select the "TIME" and "Cumulative mark" field of the holiday mark table, and select "start time" and "TIME" according to the combination. As shown in the figure below:
This step corresponds each start time to their marks.
3) Change the field "Accumulation mark" to "start time mark". As shown in the figure below:
4) Similarly, make another left and right merge. Select the "TIME" field and "Cumulative mark" field in the holiday mark table, and select the "end time" and "TIME" according to the combination, as shown in the following figure:
This step corresponds the end time to their marks.
5) Change the "holiday marking table - accumulation mark" to "end time mark".
6) Add a new column to calculate the number of working days between the start time and the end time, as shown in the following figure:
Subtract the two marks to get the number of working days.
7) Save the self-service dataset.
The calculated working days are shown in the figure below. For example, James interned for 43 working days from August 31, 2016 to July 4, 2016.
售前咨询电话
400-811-8890转1
在线技术支持
在线QQ:800049425
热线电话:400-811-8890转2
总裁办24H投诉
热线电话:173-1278-1526
文 档反 馈
鼠标选中内容,快速反馈问题
鼠标选中存在疑惑的内容,即可快速反馈问题,我们将会跟进处理。
不再提示
10s后关闭