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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Exlude Friday & Saturday

Hi,

How to exclude Friday and Saturday weekday.

Suppose I have the Date from Start Date - 01/01/2013 to End Date - 31/03/2013.

Note : I want the count of day including Saturday and Sunday.

Thanks & Regards,

Amit Kumar

1 Solution

Accepted Solutions
rbecher
MVP
MVP

Hi Amit,

maybe this helps: shift the start and end date (consider Friday and Saturday as Weekend)

= networkdays(StartDate +1, EndDate +1)

- Ralf

Astrato.io Head of R&D

View solution in original post

10 Replies
Not applicable
Author

Hi

weekday(date)  gives you the number of the day in the week from 0 to 6.

Just exlude 4 and 5 (friday, saturday) from your query

regards

chris

Not applicable
Author

Hi,

I want to do the same by Networkdays,

Any Idea.

Reghards,

Amit Kumar

Not applicable
Author

Hi,

I want to do the same by Networkdays,

Any Idea.

Reghards,

Amit Kumar

Not applicable
Author

Hi,

I want to do the same by Networkdays,

Any Idea.

Reghards,

Amit Kumar

Not applicable
Author

Vessel DepartFinal BL
27-01-1331-03-13

I want only exlude friday and Saturday between these dates by any function / variable.

Regards,

Amit Kumar

jagan
Partner - Champion III
Partner - Champion III

Hi,

Arrive one flag for this in Script and use that in expression

LOAD

     DateFieldName,

     If(WeekDay(DateFieldName) = 'Fri' OR WeekDay(DateFieldName) = 'Sat', 1, 0) AS WeekEndFlag

FROM DataSource;

Now in set analysis expression use

=Count({<WeekEndFlag = {1}>} DateFieldName)

Hope this helps you.

Regards,

Jagan.

Not applicable
Author

Sorry It will not work, Because, I want to calculate no. of days between to dates Fields excluding Friday and Saturday.

For Example :

You are going for trip: U started on 01-01-2013 (Start Date) and U reached u'r destination after 5 Months i.e - 31-05-2013 (End Date). Now I want no. of days excluding Friday and Saturday between these months, because it was weekend for u.

Regards,

Amit Kumar

Not applicable
Author

Sorry It will not work, Because, I want to calculate no. of days between to dates Fields excluding Friday and Saturday.

For Example :

You are going for trip: U started on 01-01-2013 (Start Date) and U reached u'r destination after 5 Months i.e - 31-05-2013 (End Date). Now I want no. of days excluding Friday and Saturday between these months, because it was weekend for u.

Regards,

Amit Kumar

MayilVahanan

Hi

Try like this with Mr.Jagan Suggestion

=Count({<WeekEndFlag = {0}>} DateFieldName)

Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.