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

Compare two words

Hello,

I want to comparer the words for exemple: Masy and  Massy, or Massy and Maissy.

In SQL, we have a function UTL_MATCH.edit_distance to give a level that represent the approaching of two word.

How can we do that in Qlikview?

thank you!

1 Solution

Accepted Solutions
10 Replies
Anonymous
Not applicable
Author

Try Wildmatch

maleksafa
Specialist
Specialist

the wildmatch is a little bit similar, you need to consider as the like operator in sql.

SQL: words like 'Mas%'

Qlik: wildmatch( Words, 'Mas*')

antoniotiman
Master III
Master III

Maybe

Len(KeepChar('Maissy','Massy'))   -> 5

Regards,

Antonio

Not applicable
Author

i always use :

if(match('Masy','Massy') =1,your expression )

Not applicable
Author

Interesting, I tested it, the disavantage is it will give also a good point  for this cas: Len(KeepChar('Maissy','saisMy'))   -> 6

Not applicable
Author

Thank you , in fait I want to do the comparison for a total colonne, not just a word like 'Mas*', but also others.

antoniotiman
Master III
Master III

You can add   expressions like

Len(KeepChar(Field1,Field2)/Len(KeepChar(Left(Field1,Floor(Len(Field1)/2),Field2))

or other.

Regards,

Antonio

MarcoWedel

Hi,

maybe this helps:

Fuzzy Matching/Joining

Levenshtein Algorithm

regards

Marco

rajeshvaswani77
Specialist III
Specialist III

Hi Adami,

Soundex is a good function to consider in yuor case.

thanks,

Rajesh Vaswani