Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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

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.