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: 
Mcs2021
Partner - Contributor
Partner - Contributor

Replacing Values in Load Editor

Hi, 

I have a column that has "1" and "-" as values. I would like to replace the "-" as "0". How would that look like in the data load editor? Thank you!

This is the example:

Lines Quoted
1
-
-
-
1
-

Labels (1)
4 Replies
stevejoyce
Specialist II
Specialist II

When loading this field: Replace([Lines Quoted], '-',  0) as [Lines Quoted]

Mcs2021
Partner - Contributor
Partner - Contributor
Author

Hi, thanks for your help. I think they are non-null values. How do I replace them? 

Mcs2021_0-1630346858089.png

 

Mcs2021
Partner - Contributor
Partner - Contributor
Author

In other words, if its not a "1", replace as "0".

stevejoyce
Specialist II
Specialist II

If([Lines Quoted] = 1, 1, 0)

 

if you are trying to replace nulls you can use alt() or newer versions of qliksense have coalesce().