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

Announcements
Only at Qlik Connect! Guest keynote Jesse Cole shares his secrets for daring to be different. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Change column of all records where column is a certain value

Hi community,

Is there away to change the value of a colum in a table if another column has a different value?

Lets say I want all records where column 3 equals 6010 to have column 1 values be changed to 1000.  How would I do that and have it fit with eveything else in my document?

1 Reply
MayilVahanan

HI

Try like this in script

Load  *, if(Column3 = 6010, 1000,Column1) as Column1 from tablename;

Hope it helps

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