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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
dmohanty
Partner - Specialist
Partner - Specialist

Concatenate the Records where the Date is Updated (Unique records) - Help?

Table A
DOC_NUMDOC_ITEM_NUMDATE
1001010-Feb
1002016-Feb
1013018-Feb
1022021-Feb
1025028-Feb
Table B
DOC_NUMDOC_ITEM_NUMDATE
1003012-Mar
1002019-Mar
1033022-Mar
1025022-Mar

Hi All,

I have 2 Set of Tables as above. I want to concatenate in Such a way that if there are DOC_NUM and DOC_NUM_ITEM in both tables, then pick the one having latest DATE.

So the Output will look like this below:

DOC_NUMDOC_ITEM_NUMDATE
1001010-Feb
1002019-Mar
1003012-Mar
1013018-Feb
1022021-Feb
1025022-Mar
1033022-Mar
1 Reply
Anonymous
Not applicable

Lot of ways to do this.  But the one attached keeps all the dates and creates a second table that contains the max date.  This way you have the other date in case you need it for some other calculation.