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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
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

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

Use NetWorkDays() function

NetWorkDays(date_creation, date_modif)

View solution in original post

2 Replies
sunny_talwar
MVP
MVP

Use NetWorkDays() function

NetWorkDays(date_creation, date_modif)

Anil_Babu_Samineni
MVP
MVP

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