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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Loop to find delivery dates

Hi Qlik-Community,

I am new to QV and at the moment I am building my first app. The content in this community is a great help so far.

Maybe you can help me with my next problem as well:

I have two tables "Loadings" (at different warehouses) and "Deliveries" (to customers). Unfortunately these tables have no clear connection.

"Deliveries" consists only of "CustomerID", "DeliveryDate" and "TourNumber".

"Loadings" does not contain a "DeliveryDate" but a "LoadingDate". This date is a few days before delivery or at the same day.

The same "TourNumber" is often used more then one time and not unique. "CustomerID" is included in "Loadings" as well.

My idea is to allocate the loading date to my "Deliveries"-Table with a loop-function which finds the last (Max date before delivery) "LoadingDate" allocated to "CustomerID" and maybe "TourNumber".

Do you have an idea how I can create this in my script?

Thanks in advance for your help!

0 Replies