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

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
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.