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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
avishaiz
Contributor III
Contributor III

calculate date diference of order dates and shipment date IF

I need hep with the following:

i want to make a stacked graph of the number of days it took to get the shipment in its different states:

order creation untill Bill of lading

Bill of lading untill arrival to factory

now there are several shipments from the same manufacturar and i want it to enable a drill down with the upper level being the avarege of time it took the manufacturer and a drill down to the spesific order data.

4 Replies
dusasuman
Creator
Creator

hi, Not clear with your requirement. Can you elaborate the requirement?

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Subtract the dates in the script to create a new field. Then create a chart with the average of that new field per manufacturer:

LOAD

  manufacturar,

  [order line number],

  [item number],

  [order creation],

  [order received],

  [bill of lading]

  Interval([bill of lading]-[order creation],'d') as Days_till_BoL,

  Interval([bill of lading]-[order received],'d') as Days_till_Delivery

FROM

     ...excel_file...

Dimension: manufacturar

First expression: avg(Days_till_BoL)

Second expression: avg(Days_till_Delivery)


talk is cheap, supply exceeds demand
avishaiz
Contributor III
Contributor III
Author

i get the data from a ODBC and i want to get the data in the script

with the ability to drill down

buzzy996
Master II
Master II

use Interval() like Gysbert suggested.