Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Keyuser
Contributor
Contributor

Subtract one workday

Hy,

I’m loading a date field in my script.
Example: 01.05.2020

Now I need a second date field where I calculate following:
Date minus one workday.

Example: 29.05.2020

Thank you!

1 Solution

Accepted Solutions
Brett_Bleess
Former Employee
Former Employee

You have received two posts related to your use case, if either of them got you what you needed, we would greatly appreciate it if you would return to the thread and close things out by using the Accept as Solution button on the post(s) that helped you resolve things.  If you did something different, you can post that in a new comment and then mark that too, and if you still have questions, please leave an update post.

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.

View solution in original post

3 Replies
tresesco
MVP
MVP

I guess you meant - Example: 01.06.2020

FirstWorkDate(datefield, 1+1)  as date_minus_a_workday

Taoufiq_Zarra

@Keyuser 

May be

=firstworkdate (Field, 3)

 

Capture.PNG

 

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉
Brett_Bleess
Former Employee
Former Employee

You have received two posts related to your use case, if either of them got you what you needed, we would greatly appreciate it if you would return to the thread and close things out by using the Accept as Solution button on the post(s) that helped you resolve things.  If you did something different, you can post that in a new comment and then mark that too, and if you still have questions, please leave an update post.

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.