Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

joining two values

Hi

as i shown in the below image what i have highlighted in red is the same person who has two names in the DB i want to combine these two record as 1 n show the result how can i do this??

Untitled.png

thank you in advance

12 Replies
PrashantSangle

Welcome.

Regards,

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Not applicable
Author

thank you 4 your help to

maxgro
MVP
MVP

nested if

Temp:

load * inline

[

SDExecutives,Sale

Rohan Fernando,803

Dasun Wedaasinghe,285

Chathura Munasinghe,221

Chathura Munasingha,172

Chathura Munasingho,172

Diyath wickramaratne,128

Nuwan Shaweendra,103

Kaushal Jayabahu,93

Kaushal Premawansha,186

];

Main:

load

*,

if(WildMatch(SDExecutives, '*chathura*'), 'Chathura Munasinghe',

if(WildMatch(SDExecutives, '*kaushal*'), 'Kaushal Jayabahu',

if(WildMatch(SDExecutives, '*not?exists*'), 'not exists',

SDExecutives))) as SDExecutives_New

Resident Temp;

drop table Temp;

another one

Main:

load

*,

pick(  WildMatch(SDExecutives,   '*chathura*',   '*kaushal*',   '*'  ),

  'Chathura Munasinghe',  'Kaushal Jayabahu',  SDExecutives  ) as SDExecutives_New

Resident Temp;

drop table Temp;

from online help

The wildmatch function performs a case insensitive comparison and permits the use of wildcard characters ( * and ?) in the comparison strings.