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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
ahmada
Contributor II
Contributor II

Dynamic Networkdays expression

Hello,
I have a question about the formula "networkdays()".
I have a calendar with %Date and Year and in the script the holidays defined as variable.

I would like to select a year and have the days calculated from the beginning of the selected year.

I tried this formula: networkdays(YearStart(%Datum), today() ,vHolidays). Unfortunately the (YearStart(%Datum) does not work in the function.

But the formula = networkdays(YearStart(today()), today() ,vHolidays) works. But I want to filter with the year.

I hope you can help me. Kind regards Ahmad.NetworkDate.PNG

1 Solution

Accepted Solutions
tresesco
MVP
MVP

Try like:

networkdays(YearStart(Max(%Datum)), today() ,vHolidays)

View solution in original post

2 Replies
tresesco
MVP
MVP

Try like:

networkdays(YearStart(Max(%Datum)), today() ,vHolidays)

ahmada
Contributor II
Contributor II
Author

Thank you so much for your help. It worked directly. 😀