Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
VNPython
Contributor
Contributor

Re: Calculating number of days between two date fields

Hi Sir, i am very new to Qlik and hope you could help resolve this issue similar to calculate different in days: I would like to know from Invoice Date to Receiving Order Date, how long it took to produce a product. the calculation works well if the invoice date is later than order date. However, the result would goes into negative when the receiving order date is greater than invoice date. example: received order on 25th of the month and invoiced on the 1st of next month. hence the result is -24 instead of 5 or 6 days depending on if that month has 30 or 31 (or 28) days in the calendar.

Seeking your expert solution on this issue, thanks for your reading.

2 Replies
marcus_sommer

You need to calculate the differences with the dates and not the day's of these dates, like:

Date1 - Date2 as Diff

- Marcus

VNPython
Contributor
Contributor
Author

thanks Marcus, i will try and revert back if any issue.