Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Fred12
Contributor III
Contributor III

Difference between 2 dates when it's fryday and monday

Hello, 

 

I got a table  with a lot of date, for example :

 

TABLE 1 

ID                          DATE1                          DATE 2                             interval_day

1                          27/01/2023                  27/01/2023                      0

2                          27/01/2023                  30/01/2023                     3

3                        25/01/2023                 26/01/2023                        1

4                        26/01/2023                 27/01/2023                       1

 

My problem is about second line. I would like it put me 1,  because it counts saturday and sunday but I would like it didn't.

 

What I  would like is : 

 

TABLE 1 

ID                          DATE1                          DATE 2                             interval_day

1                          27/01/2023                  27/01/2023                      0

2                          27/01/2023                  30/01/2023                     1

3                        25/01/2023                 26/01/2023                        1

4                        26/01/2023                 27/01/2023                       1

 

 

 

 

Thanks for reading me 

 

Labels (2)
1 Solution

Accepted Solutions
E_Røse
Creator II
Creator II

Try the networdays - function:

https://help.qlik.com/en-US/sense/February2023/Subsystems/Hub/Content/Sense_Hub/Scripting/DateAndTim...

Please like and mark my answer as a solution, if it resolved your issue.

View solution in original post

1 Reply
E_Røse
Creator II
Creator II

Try the networdays - function:

https://help.qlik.com/en-US/sense/February2023/Subsystems/Hub/Content/Sense_Hub/Scripting/DateAndTim...

Please like and mark my answer as a solution, if it resolved your issue.