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

levenshtein in Qliksense

Good Morning,


You need to calculate the distance between two strings of characters by means of the levenshtein algorithm.


Thks for help your.

6 Replies
marcus_sommer

Anonymous
Not applicable
Author

Thanks for your help, but this post is in Qlikview; I am needing in Qliksense!

silva_robertool
Contributor
Contributor

Maybe a make a function on database and realise the processing on data extract; Other solution is make a function for levensthein algorithm in a calculed column with sense sintax language and use on yours reports.

Levenshtein distance - Wikipedia

I wait help you, bye

tomasz_tru
Specialist
Specialist

I think it's best to do it on source database level or in the script. What kind of analysis do you want to perform a (I'm just curious)?

Tomasz

silva_robertool
Contributor
Contributor

I think it's best to do it on source database level, why various database use native implementation of levensthein algorithm, for example Oracle database.  But in performance question, make an test for see a best option.

Regards, Roberto.

AlexOmetis
Partner Ambassador
Partner Ambassador

There is an undocumented function for this in Qlik Sense - LevenshteinDist - that was introduced in the June 2017 release. The only place you can find reference to it is in the API explorer: https://api-insights.qlik.com/. I've tested it and can validate it does work, even though it's not documented.

Qlik Partner Ambassador 2024