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

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Weekdays.

Hello .. I am using this formula that brings me the result of working days in the month. The exclusion of holidays, I'm using a field "DATA_FERIADO_LOCAL" from my table where are the dates of the holidays. The problem is that for a month if more than one holiday, she can not calculate. I had to put the function "MAX"to just bring in a holiday period prescribed. This is wrong. I need my formula that makes the exclusion of all holidays in the month.

=(

networkdays(MonthStart(AddMonths(today())),MonthsEnd(1,Today()),MAX(DATA_FERIADO_LOCAL)))





1 Reply
pover
Partner - Master
Partner - Master

You should put a list of holiday dates, so try

=(networkdays(MonthStart(AddMonths(today())),MonthsEnd(1,Today()),$(=chr(39) & concat(DATA_FERIADO_LOCAL,chr(39)&','&chr(39))&chr(39)))))

or just

=(networkdays(MonthStart(AddMonths(today())),MonthsEnd(1,Today()),$(=concat(DATA_FERIADO_LOCAL,','))))

It might be better to save (=chr(39) & concat(DATA_FERIADO_LOCAL,chr(39)&','&chr(39))&chr(39)) as a variable that you dollar-sign expand in the expression.

Regards.