Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
lalitkgehlot89
Creator II
Creator II

how to calculate the number of weekdays between 2 date fields?

Hi,

I have a very simple question, how to calculate the number of weekdays between 2 date fields?


like in Jan 1/1/2016-31/1/2016

Mon-- 4

Tue-- 4

Wed-- 4

Thr-- 4

Fri-- 5

Sat-- 5

Sun-- 5


2 Replies
swuehl
MVP
MVP

Create a master calendar.

The Master Calendar

Then select a data range, e.g. a Month field value from the calendar.

Create a straight table chart with dimension WeekDay and as expression

=Count(WeekDay)

tobiasloe_dv
Partner - Contributor
Partner - Contributor

You could use the function NetWorkDays(start_date, end_date)