Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
master_student
Creator III
Creator III

dates difference

Hello Guys,

I need to calculate the number of days of a case  = date_modif - date_creation without counting saturday and sundays, only working days

the two field date has this format : 8/28/2017 8:37:40 AM

Any idea ?

Thanks

1 Solution

Accepted Solutions
sunny_talwar

Use NetWorkDays() function

NetWorkDays(date_creation, date_modif)

View solution in original post

2 Replies
sunny_talwar

Use NetWorkDays() function

NetWorkDays(date_creation, date_modif)

Anil_Babu_Samineni

May be this?

If(Not WildMatch(WeekDay(date_modif) and WeekDay(date_creation), 'Sat', 'Sun'), date_modif - date_creation)

OR

If(Not WildMatch(WeekDay(date_modif) and WeekDay(date_creation), 'Sat', 'Sun'), Interval(Date(Date#(date_modif,'M/DD/YYYY hh:mm:ss TT'),'DD-MM-YYYY') - Date(Date#(date_creation,'M/DD/YYYY hh:mm:ss TT'),'DD-MM-YYYY'), 'DD'))

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful