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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
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
tresB
Champion III
Champion III

Try like:

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

View solution in original post

2 Replies
tresB
Champion III
Champion III

Try like:

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

ahmada
Contributor II
Contributor II
Author

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