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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
ganeshreddy
Creator III
Creator III

Missing records while Updating

Hi All,

Here i need to update the new records to old file, while updating with this code i am missing  '201510,123,20,25' record. How resolve this issue,Here i got only four fields YearMonth, code, mat1, mat2 . Can any one help me on this. Please find attached.

Best Regards,

Ganesh

Labels (1)
1 Solution

Accepted Solutions
maxgro
MVP
MVP

Data:

LOAD Date,

     code,

     mat1,

     mat2

  , Date & '-' & code as key

FROM

[New.txt]

(txt, codepage is 1252, embedded labels, delimiter is ',', msq)

;

Concatenate

LOAD Date,

     code,

     mat1,

     mat2

FROM

[Old.txt]

(txt, codepage is 1252, embedded labels, delimiter is ',', msq)

Where not Exists(key, Date & '-' & code);

drop field key;

View solution in original post

2 Replies
maxgro
MVP
MVP

Data:

LOAD Date,

     code,

     mat1,

     mat2

  , Date & '-' & code as key

FROM

[New.txt]

(txt, codepage is 1252, embedded labels, delimiter is ',', msq)

;

Concatenate

LOAD Date,

     code,

     mat1,

     mat2

FROM

[Old.txt]

(txt, codepage is 1252, embedded labels, delimiter is ',', msq)

Where not Exists(key, Date & '-' & code);

drop field key;

ganeshreddy
Creator III
Creator III
Author

Thank You Maxgro.