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: 
LovelyPints
Contributor
Contributor

Addition of two values within the same field

Hey,

I have a field that contains an integer value for the majority of the column. However some of the values have a space in the middle, so two values and only ever two values at most. Instead of removing the space I would like to add the two numbers separated by a space within the same field together.

I know it would look something like..

If(Row contains ' '), Take left value, take right value, add together, else no space, carry over whole number to new column

Is this even possible in Qlik ?

Thanks!

1 Solution

Accepted Solutions
stevejoyce
Specialist II
Specialist II

i'm thinking replace spaces with '+' and use evaluate:

in load script:

evaluate(replace([your field], ' ', '+')) as [your New field]

View solution in original post

1 Reply
stevejoyce
Specialist II
Specialist II

i'm thinking replace spaces with '+' and use evaluate:

in load script:

evaluate(replace([your field], ' ', '+')) as [your New field]