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: 
Hoowling
Contributor III
Contributor III

Replace values in script

Hi, 

I'm loading a ton of data into a qlikview application where I want to replace some of the input loaded with new values.
In below example I have the raw data stored in Table A, where the bold rows contain wrong "Type" values. I want to replace those values with the information in table B, column "Type". The end result should be as in Table C. 

Any suggestions on how to accomplish this? 

Table A   Table B   Table C  
VoucherTypeValue VoucherTypeValue VoucherTypeValue
100000A150 100001A200 100000A150
100001B200 100004C285 100001A200
100002A120 100008B433 100002A120
100003C300 100009A470 100003C300
100004B285     100004C285
100005B322     100005B322
100006A359     100006A359
100007B396     100007B396
100008A433     100008B433
100009C470     100009A470
Labels (2)
1 Solution

Accepted Solutions
MayilVahanan
MVP
MVP

Hi

Hope voucher has unique values. In that case, try like below

MapType:

Mapping Load Voucher, Type from TableB;

Load Voucher, ApplyMap('MapType', Voucher, Type) as Type, Value from TableA;

 

 

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

2 Replies
MayilVahanan
MVP
MVP

Hi

Hope voucher has unique values. In that case, try like below

MapType:

Mapping Load Voucher, Type from TableB;

Load Voucher, ApplyMap('MapType', Voucher, Type) as Type, Value from TableA;

 

 

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Hoowling
Contributor III
Contributor III
Author

Worked like a charm, thank you!