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: 
MT4T
Creator
Creator

LastWorkDate do not exclude holidays from variable

Hello,

I have an issue with LastWorkDate / NetWorkDays.

Need to calc turnaround time (TAT) for service center.

I have a list of holidays from excel (maintained by externals) which I convert to variable, but below script does not exclude holidays from variable.

lastworkdate("Data rozpoczęcia naprawy", 5 ,'$(vDniWolne)') as DZIEN_TAT_N,
lastworkdate("Data rozpoczęcia naprawy", 3 ,'$(vDniWolne)') as DZIEN_TAT_P,

On sheet I see correctly Master Callendar with joined Holidays (Święto).

In variable vDniWolne is correctly loaded all days from my excel including my example '26/12/2022' - which is monday

But as you can see on bellow screen it show this day in table as workday, it should be excluded.

I think there is something in way I use variable value '$(vDniWolne)' and script or chart function lastworkdate read it wrong.

MT4T_0-1672656182707.png

 

Labels (3)
1 Solution

Accepted Solutions
pedrobergo
Employee
Employee

Hi @MT4T 

Since all members from variabe vDniWolne contain single quotes, you just need to use $ expansion signal, like:

lastworkdate(Data, 3 ,$(vDniWolne))

 

pedrobergo_0-1672672225569.png

[],

Pedro

View solution in original post

1 Reply
pedrobergo
Employee
Employee

Hi @MT4T 

Since all members from variabe vDniWolne contain single quotes, you just need to use $ expansion signal, like:

lastworkdate(Data, 3 ,$(vDniWolne))

 

pedrobergo_0-1672672225569.png

[],

Pedro