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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
saumyashah90
Specialist
Specialist

I want to check if Today() is working day or not

I have to pull data from a excel

Have date column as LogDate

I want to load only dates from Monday to Friday.

how will I be able to do it?

6 Replies
fvelascog72
Partner - Specialist
Partner - Specialist

Try this:

LOAD

*

FROM excel

WHERE not(WeekDay(LogDate)=5 or Weekday(LogDate)=6);  //5 is Saturday and 6 is Sunday

jpenuliar
Partner - Specialist III
Partner - Specialist III

You can add a Where clause in Script:

Where WEEKDAY(LogDate) <= 4 ;

Anonymous
Not applicable

... or maybe :

.....where  WeekDay(LogDate) < 5 ;

mjayachandran
Creator II
Creator II

You can also refer the post

Find Net Working Days

jonathandienst
Partner - Champion III
Partner - Champion III

Hi

     Where FirstWorkDate(LogDate) <> LogDate

The work day functions can take a list of holiday dates into consideration:

     Set vHolidays = '2015/01/01', '2015/04/03', '2015/04/03'

      Where FirstWorkDate(LogDate, 1, $(vHolidays)) <> LogDate

HTH

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
buzzy996
Master II
Master II

try this way,

I believe the best way,create a excel sheet with all day(work days and holidays) and set flag as 0 for holiday.

by comparing ur actual source file and new excel file ..u can only load working days/comapre today is work day or not in ur application.