Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

if today is the 3rd working day of the month

Hi Experts

I hope you can help me , I am trying to create a QVD when today is the 3rd working day of the month

So the script below will create a QVD the 03rd of the month - but if the 3rd is not a working day it wont creat one

if num(Day(Today()),00)=03  then

MISDATA:

Load *
  
FROM

(biff, embedded labels, header is 3 lines, table is RCMT$)
Where  date([Date received by ddd])>=date('$(dDate)') and date([Date received by ddd])<=date('$(hDate)');

STORE MISDATA INTO $(vFileDate).qvd (qvd);
DROP TABLE MISDATA;

I think its a variation of

if  NetWorkDays(Date(MonthStart), Date(Today())) = 3 then

But I cant quite get it working

Any advise would really be appreciated

Thanks

A

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Try

NetWorkDays(MonthStart(today()), today())

and maybe add your holidays as third ff. arguments.

View solution in original post

2 Replies
swuehl
MVP
MVP

Try

NetWorkDays(MonthStart(today()), today())

and maybe add your holidays as third ff. arguments.

Not applicable
Author

Thanks Swuehl