Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
Simon_BI
Contributor II
Contributor II

Date loading

I need suggestion here.

Below i have six order lines, but i only want to have one order line with the earliest date as the output which means the output should be only one order line with 12/1/2019.

Could someone give a help here? Thanks

30234229, 3420, 12/1/2019, ACN

Order:
LOAD * INLINE [
ITEM, OrderQty, Date, Destination
30234229, 240, 12/31/2019, ACN
30234229, 3270, 12/13/2019, ACN
30234229, 3330, 12/7/2019, ACN
30234229, 3420, 12/1/2019, ACN
30234229, 3450, 12/6/2019, ACN
30234229, 3510, 12/20/2019, ACN
];

1 Solution

Accepted Solutions
Anil_Babu_Samineni

Order:
LOAD ITEM, OrderQty, Date(Date#(Date,'MM/DD/YYYY')) as Date, Destination INLINE [
ITEM, OrderQty, Date, Destination
30234229, 240, 12/31/2019, ACN
30234229, 3270, 12/13/2019, ACN
30234229, 3330, 12/7/2019, ACN
30234229, 3420, 12/1/2019, ACN
30234229, 3450, 12/6/2019, ACN
30234229, 3510, 12/20/2019, ACN
];

Inner Join (Order)
LOAD ITEM, Min(Date) as Date Resident Order Group By ITEM;

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful

View solution in original post

2 Replies
Anil_Babu_Samineni

Order:
LOAD ITEM, OrderQty, Date(Date#(Date,'MM/DD/YYYY')) as Date, Destination INLINE [
ITEM, OrderQty, Date, Destination
30234229, 240, 12/31/2019, ACN
30234229, 3270, 12/13/2019, ACN
30234229, 3330, 12/7/2019, ACN
30234229, 3420, 12/1/2019, ACN
30234229, 3450, 12/6/2019, ACN
30234229, 3510, 12/20/2019, ACN
];

Inner Join (Order)
LOAD ITEM, Min(Date) as Date Resident Order Group By ITEM;

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Simon_BI
Contributor II
Contributor II
Author

That works. Thank you so much Anil.