Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to compare two fields with character

Hi everyone,

Is it possible to compare two fields with character and show the differences (i.e. with delimiter "|" in between the country name)?

I have two fields like this:

Current CountryPrevious Country
USA|Canada|FranceUSA|Canada
Germany|ChinaChina|Japan
Korea|RussiaChile|Ireland

I want to add two more fields for comparing current country and previous country to see if there is any change (add / drop)

Current CountryPrevious Country

Current Country: Add

(Compare with Previous Country)

Current Country: Drop

(Compare with Previous Country)

USA|Canada|FranceUSA|CanadaFrance
Germany|ChinaChina|JapanGermanyJapan
Korea|RussiaChile|IrelandKorea|RussiaChile|Ireland
EnglandSingapore|Italy|HollandEnglandSingapore|Italy|Holland

Regards

1 Solution

Accepted Solutions
uacg0009
Partner - Specialist
Partner - Specialist

Hi Peter,

Please see the attachment, hope that's what you want.

How to compare two fields with character.PNG

Thanks.

Aiolos

View solution in original post

6 Replies
sunny_talwar

Is this needed directly on the front end of the application?

MK_QSL
MVP
MVP

Easy to achieve at back end (script side)

Anonymous
Not applicable
Author

Hi Manish,

But how? Can you share the script please?

Regards

Anonymous
Not applicable
Author

Hi Sunny,

Yup, any idea?

uacg0009
Partner - Specialist
Partner - Specialist

Hi Peter,

Please see the attachment, hope that's what you want.

How to compare two fields with character.PNG

Thanks.

Aiolos

Anonymous
Not applicable
Author

Hi Aiolos,

Thanks, it works

Regards