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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Date Comparison, Difference of Days

Hello,

I need to add a filter for my dashboard that will display items that have shipped [Invoice Date] before they were due [Due Date]. My expression is this:

=if ([IN Invoice Date]<[CO Due Date] and  NetWorkDays([CO Due Date],[IN Invoice Date] <= 10)  and (NetWorkDays([CO Due Date],[IN Invoice Date] >= 0)), NetWorkDays([CO Due Date],[IN Invoice Date]))

This expression displays numbers 1-10 in my filter, but the data does not react to the filter. For example, when 1 is chosen, many orders still show up with more than one working day between the invoice date and the due date. My logic seems sounds and I'm not sure where to proceed from here. Any help would be appreciated.

Labels (1)
1 Reply
Not applicable
Author

I would just add a field in the script that showed the difference between the two and you can just make selections that way.  I don't really know why your method isn't working...