Hi Everyone,
Version: IGN Cognos Analytics 11.1 R3
I am creating a report and am trying to figure out how to calculate the difference between two date columns whilst not considering non working days.
For example
Let's say COLUMN1 has a start date that was consistently Monday 0305/2021 and I want to calculate the number of business days using COLUMN2 as the end date, I should get the following values:
| COLUMN1 |
COLUMN2 |
# Working Days |
| Monday, 3 May 2021 |
Monday, 3 May 2021 |
1 |
| Monday, 3 May 2021 |
Tuesday, 4 May 2021 |
2 |
| Monday, 3 May 2021 |
Wednesday, 5 May 2021 |
3 |
| Monday, 3 May 2021 |
Thursday, 6 May 2021 |
4 |
| Monday, 3 May 2021 |
Friday, 7 May 2021 |
5 |
| Monday, 3 May 2021 |
Saturday, 8 May 2021 |
5 |
| Monday, 3 May 2021 |
Sunday, 9 May 2021 |
5 |
| Monday, 3 May 2021 |
Monday, 10 May 2021 |
6 |
| Monday, 3 May 2021 |
Tuesday, 11 May 2021 |
7 |
| Monday, 3 May 2021 |
Wednesday, 12 May 2021 |
8 |
To add another layer of difficulty, I need to also not consider Public Holidays and "unexpected exception dates" (i.e. unplanned days we wrote-off).
I am a little stumped here and would appreciate guidance.
If the suggestion is to create a custom query or custom table with these dates, I would need guidance on that too.
Cheers,
Jackey
------------------------------
Jackey Tran
------------------------------
#CognosAnalyticswithWatson