Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
didierodayo
Partner - Creator III
Partner - Creator III

Updating QVD with excel

Hi, I need some help.

I have a QVD content below and I would like to update the QVD with a new column called STATUS. the STATUS field will be left joined  but will only update certain TEST_IDs.

1- How can I set it so that instead of NULL on the other TEST_ID STATUS column I can have NOT_VALID instead?

NOTE: this is a large QVD and new TEST_IDs will be loaded to the QVD every month so I want the new TEST_IDs to have STATUS as NOT_VALID once the reload takes place.

Thanks

QVD CONTENT:

   

TEST_IDPRICE
1259600
1260200
1261150
1262222
1263325
1264621
1265200
1266100
1267850

EXCEL CONTENT FOR UPDATE:

   

TEST_IDSTATUS
1261CURRENT
1262CURRENT
1263CURRENT
1264CURRENT
1 Solution

Accepted Solutions
MindaugasBacius
Partner - Specialist III
Partner - Specialist III

map_status:

mapping LOAD TEST_ID,

     STATUS

FROM

(ooxml, embedded labels, table is Sheet2);

LOAD TEST_ID,

     PRICE,

     ApplyMap('map_status', TEST_ID, 'NOT_VALID') as STATUS

FROM

(ooxml, embedded labels, table is Sheet1);

Result:

Screenshot_1.jpg

Also, at the end of the script just store everything back.

View solution in original post

2 Replies
MindaugasBacius
Partner - Specialist III
Partner - Specialist III

map_status:

mapping LOAD TEST_ID,

     STATUS

FROM

(ooxml, embedded labels, table is Sheet2);

LOAD TEST_ID,

     PRICE,

     ApplyMap('map_status', TEST_ID, 'NOT_VALID') as STATUS

FROM

(ooxml, embedded labels, table is Sheet1);

Result:

Screenshot_1.jpg

Also, at the end of the script just store everything back.

didierodayo
Partner - Creator III
Partner - Creator III
Author

Thanks Mindaugas,

coud you help me with this as well please?

Updating 2 table from a 3rd table