<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to create a function or Script for string mapping with percentages in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-create-a-function-or-Script-for-string-mapping-with/m-p/1353042#M415529</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe this approach matches your requirements?&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/263975"&gt;String Percentage Comparison?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using your example one solution might look like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_262120_Pic1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/168621_QlikCommunity_Thread_262120_Pic1.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14987792020675362 jive_text_macro" jivemacro_uid="_14987792020675362"&gt;
&lt;P&gt;tabAccountNamesTemp:&lt;/P&gt;
&lt;P&gt;LOAD * INLINE [&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AccountName&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Accenture Pvt Ltd&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Accenture Private Limited&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hitachi Systems Ltd&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hitachi System Limited&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Us Department of Army&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; United States Department of Army &lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Join&lt;/P&gt;
&lt;P&gt;LOAD AccountName as AccountName_Match&lt;/P&gt;
&lt;P&gt;Resident tabAccountNamesTemp;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;tabAccountNames:&lt;/P&gt;
&lt;P&gt;LOAD AccountName,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AccountName_Match,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num(1-Levenshtein(AccountName,AccountName_Match)/RangeMax(Len(AccountName),Len(AccountName_Match)),'0.0%') as Similarity&lt;/P&gt;
&lt;P&gt;Resident tabAccountNamesTemp;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP Table tabAccountNamesTemp;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Jun 2017 23:35:23 GMT</pubDate>
    <dc:creator>MarcoWedel</dc:creator>
    <dc:date>2017-06-29T23:35:23Z</dc:date>
    <item>
      <title>How to create a function or Script for string mapping with percentages</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-function-or-Script-for-string-mapping-with/m-p/1353033#M415520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to compare the names in the same column, for this I want to write a code in the script editor or a function in the object. can anyone help me on this?&lt;/P&gt;&lt;P&gt;Below is the example:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;Account Names:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Accenture Pvt Ltd&lt;/P&gt;&lt;P&gt;Accenture Private Limited&lt;/P&gt;&lt;P&gt;Hitachi Systems Ltd&lt;/P&gt;&lt;P&gt;Hitachi System Limited&lt;/P&gt;&lt;P&gt;Us Department of Army&lt;/P&gt;&lt;P&gt;United States Department of Army&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/space/2129"&gt;Education Services&lt;/A&gt;‌&lt;A href="https://community.qlik.com/space/2146"&gt;New to Qlik Sense&lt;/A&gt;‌&lt;A href="https://community.qlik.com/space/2050"&gt;Blogs&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 May 2017 13:56:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-function-or-Script-for-string-mapping-with/m-p/1353033#M415520</guid>
      <dc:creator>bobbyn4u</dc:creator>
      <dc:date>2017-05-29T13:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a function or Script for string mapping with percentages</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-function-or-Script-for-string-mapping-with/m-p/1353034#M415521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the expected output here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2017 17:29:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-function-or-Script-for-string-mapping-with/m-p/1353034#M415521</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-28T17:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a function or Script for string mapping with percentages</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-function-or-Script-for-string-mapping-with/m-p/1353035#M415522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have one dataset, from that dataset (Like self-join in SQL) itself&amp;nbsp; we need to identify possible matches with some %ge criteria.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dataset:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;&lt;STRONG&gt;Account Names:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Accenture Pvt Ltd&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Accenture Private Limited&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hitachi Systems Ltd&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hitachi System Limited&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Us Department of Army&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;United States Department of Army&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expected output should be like&lt;/STRONG&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Account Names&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;AccountName_Match&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Accenture Pvt Ltd&lt;/TD&gt;&lt;TD&gt;Accenture Pvt Ltd&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Accenture Pvt Ltd&lt;/TD&gt;&lt;TD&gt;Accenture Private Limited&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Accenture Private Limited&lt;/TD&gt;&lt;TD&gt;Accenture Private Limited&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Accenture Private Limited&lt;/TD&gt;&lt;TD&gt;Accenture Pvt Ltd&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Hitachi Systems Ltd&lt;/TD&gt;&lt;TD&gt;Hitachi Systems Ltd&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Hitachi Systems Ltd&lt;/TD&gt;&lt;TD&gt;Hitachi System Limited&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Hitachi System Limited&lt;/TD&gt;&lt;TD&gt;Hitachi System Limited&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Hitachi System Limited&lt;/TD&gt;&lt;TD&gt;Hitachi Systems Ltd&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Us Department of Army&lt;/TD&gt;&lt;TD&gt;Us Department of Army&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Us Department of Army&lt;/TD&gt;&lt;TD&gt;United States Department of Army&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;United States Department of Army&lt;/TD&gt;&lt;TD&gt;United States Department of Army&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;United States Department of Army&lt;/TD&gt;&lt;TD&gt;Us Department of Army&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the %ge match.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 08:42:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-function-or-Script-for-string-mapping-with/m-p/1353035#M415522</guid>
      <dc:creator>bobbyn4u</dc:creator>
      <dc:date>2017-06-29T08:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a function or Script for string mapping with percentages</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-function-or-Script-for-string-mapping-with/m-p/1353036#M415523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this is something &lt;A href="https://community.qlik.com/qlik-users/61824"&gt;marcowedel&lt;/A&gt;‌ might be able to help you with.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 08:58:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-function-or-Script-for-string-mapping-with/m-p/1353036#M415523</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-29T08:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a function or Script for string mapping with percentages</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-function-or-Script-for-string-mapping-with/m-p/1353037#M415524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;may be this will help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://qlikviewcookbook.com/?attachment_id=72" title="http://qlikviewcookbook.com/?attachment_id=72"&gt;http://qlikviewcookbook.com/?attachment_id=72&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 09:43:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-function-or-Script-for-string-mapping-with/m-p/1353037#M415524</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2017-06-29T09:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a function or Script for string mapping with percentages</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-function-or-Script-for-string-mapping-with/m-p/1353038#M415525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Check attached QVW. Your solution can be used with a combo of Wildmatch and ApplyMap (or alteratively with MapSubString for exact string matches - however, this method is 'case sensitive', the Wildmatch solution below isn't 'case sensitive').&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;The solution in this QVW allows you to look for a string of sequenced letters if it is a 'free text' field you are searching through and you believe that there is a minimum amount of letter sequence needed to match the ultimate result/grouping you want to get.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;(Can't attach QVW, so script is below, copy/paste exactly and play around with the "&lt;SPAN style="font-size: 13.3333px;"&gt;WildmatchStrings_Temp" table and change the FACT table contents to see how it works. Put a table in front end with the 2 resulting fields to understand how it works).&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P&gt;SET ThousandSep=',';&lt;/P&gt;&lt;P&gt;SET DecimalSep='.';&lt;/P&gt;&lt;P&gt;SET MoneyThousandSep=',';&lt;/P&gt;&lt;P&gt;SET MoneyDecimalSep='.';&lt;/P&gt;&lt;P&gt;SET MoneyFormat='£#,##0.00;-£#,##0.00';&lt;/P&gt;&lt;P&gt;SET TimeFormat='hh:mm:ss';&lt;/P&gt;&lt;P&gt;SET DateFormat='DD/MM/YYYY';&lt;/P&gt;&lt;P&gt;SET TimestampFormat='DD/MM/YYYY hh:mm:ss[.fff]';&lt;/P&gt;&lt;P&gt;SET MonthNames='Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec';&lt;/P&gt;&lt;P&gt;SET DayNames='Mon;Tue;Wed;Thu;Fri;Sat;Sun';&lt;/P&gt;&lt;P&gt;SET LongMonthNames='January;February;March;April;May;June;July;August;September;October;November;December';&lt;/P&gt;&lt;P&gt;SET LongDayNames='Monday;Tuesday;Wednesday;Thursday;Friday;Saturday;Sunday';&lt;/P&gt;&lt;P&gt;SET FirstWeekDay=0;&lt;/P&gt;&lt;P&gt;SET BrokenWeeks=0;&lt;/P&gt;&lt;P&gt;SET ReferenceDay=4;&lt;/P&gt;&lt;P&gt;SET FirstMonthOfYear=1;&lt;/P&gt;&lt;P&gt;SET CollationLocale='en-GB';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Script start here&lt;/P&gt;&lt;P&gt;WildmatchStrings_Temp:&lt;/P&gt;&lt;P&gt;//2. Create a numerical equivalent for each line/string of data in table:&lt;/P&gt;&lt;P&gt;LOAD *, Rowno() as OrdinalPosition;&lt;/P&gt;&lt;P&gt;//1. Original strings against which you are trying to match:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Clean_Name_as_Category, WildMatchString&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Accenture, accenture&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hitachi, hitachi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; US Department of Army, u*s*d*p*t*army&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Create a field with all strings which you will put in a variable and is sequentially 'ordered' as it is in above table:&lt;/P&gt;&lt;P&gt;Var_WildMatchString:&lt;/P&gt;&lt;P&gt;LOAD CHR(39) &amp;amp; '*' &amp;amp; Concat(DISTINCT WildMatchString, '*' &amp;amp; CHR(39) &amp;amp; ',' &amp;amp; CHR(39) &amp;amp; '*', OrdinalPosition) &amp;amp; '*' &amp;amp; CHR(39) as Var_WildMatchString RESIDENT WildmatchStrings_Temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Insert value in var:&lt;/P&gt;&lt;P&gt;LET vVar_WildMatchString = PEEK('Var_WildMatchString', 0, 'Var_WildMatchString');&lt;/P&gt;&lt;P&gt;DROP TABLE Var_WildMatchString;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Reload table as Mapping table:&lt;/P&gt;&lt;P&gt;WildMatch_Map:&lt;/P&gt;&lt;P&gt;MAPPING LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OrdinalPosition,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Clean_Name_as_Category&lt;/P&gt;&lt;P&gt;RESIDENT WildmatchStrings_Temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE WildmatchStrings_Temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THE_FACT_TABLE:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap('WildMatch_Map', WildMatchOrdinalPosition) as Clean_Name_as_Category&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Wildmatch(AccountNames, $(vVar_WildMatchString)) as WildMatchOrdinalPosition,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MapSubString(&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AccountNames&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Accenture Pvt Ltd&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Accenture Private Limited&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Accenture Consulting&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hitachi Systems Ltd&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hitachi System Limited&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hitachi France&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Us Department of Army&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; United States Department of Army&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; us dept army&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;//end script here&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 18:22:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-function-or-Script-for-string-mapping-with/m-p/1353038#M415525</guid>
      <dc:creator>cheenu_janakira</dc:creator>
      <dc:date>2017-06-29T18:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a function or Script for string mapping with percentages</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-function-or-Script-for-string-mapping-with/m-p/1353039#M415526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could approach this as a Wildcard mapping problem.&amp;nbsp; An example of Mapping with Wildcards can be found here. &lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Qlikview Cookbook: Mapping With Wildcards &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com/recipes/download-info/mapping-with-wildcards/" rel="nofollow" target="_blank"&gt;http://qlikviewcookbook.com/recipes/download-info/mapping-with-wildcards/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You can also use the Qvc.CreateWildmapExpression routine in QVC &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcomponents.org" rel="nofollow" target="_blank"&gt;http://qlikviewcomponents.org&lt;/A&gt;&lt;SPAN&gt; which does the same thing as the example. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com" rel="nofollow" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com" rel="nofollow" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 18:34:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-function-or-Script-for-string-mapping-with/m-p/1353039#M415526</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2017-06-29T18:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a function or Script for string mapping with percentages</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-function-or-Script-for-string-mapping-with/m-p/1353040#M415527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'd be happy to be proven wrong but I think this goes beyond the normal scope of a BI application. If your set of account names runs to a large number with all sorts of variations in how the names are recorded then you may need an application (think R, Matlab, Octave or something along those lines) running an algorithm that has been suitably trained.&lt;/P&gt;&lt;P&gt;Good luck&lt;/P&gt;&lt;P&gt;Andrew &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 21:03:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-function-or-Script-for-string-mapping-with/m-p/1353040#M415527</guid>
      <dc:creator>effinty2112</dc:creator>
      <dc:date>2017-06-29T21:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a function or Script for string mapping with percentages</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-function-or-Script-for-string-mapping-with/m-p/1353041#M415528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Andrew,&lt;/P&gt;&lt;P&gt;I run across this requirement fairly often in QV. It's usually just as the OP's example, variations on company names.&amp;nbsp; I tackle it with a mapping table or wildcard mapping. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 21:55:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-function-or-Script-for-string-mapping-with/m-p/1353041#M415528</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2017-06-29T21:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a function or Script for string mapping with percentages</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-function-or-Script-for-string-mapping-with/m-p/1353042#M415529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe this approach matches your requirements?&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/263975"&gt;String Percentage Comparison?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using your example one solution might look like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_262120_Pic1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/168621_QlikCommunity_Thread_262120_Pic1.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14987792020675362 jive_text_macro" jivemacro_uid="_14987792020675362"&gt;
&lt;P&gt;tabAccountNamesTemp:&lt;/P&gt;
&lt;P&gt;LOAD * INLINE [&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AccountName&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Accenture Pvt Ltd&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Accenture Private Limited&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hitachi Systems Ltd&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hitachi System Limited&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Us Department of Army&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; United States Department of Army &lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Join&lt;/P&gt;
&lt;P&gt;LOAD AccountName as AccountName_Match&lt;/P&gt;
&lt;P&gt;Resident tabAccountNamesTemp;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;tabAccountNames:&lt;/P&gt;
&lt;P&gt;LOAD AccountName,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AccountName_Match,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num(1-Levenshtein(AccountName,AccountName_Match)/RangeMax(Len(AccountName),Len(AccountName_Match)),'0.0%') as Similarity&lt;/P&gt;
&lt;P&gt;Resident tabAccountNamesTemp;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP Table tabAccountNamesTemp;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 23:35:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-function-or-Script-for-string-mapping-with/m-p/1353042#M415529</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2017-06-29T23:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a function or Script for string mapping with percentages</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-function-or-Script-for-string-mapping-with/m-p/1353043#M415530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marco,&lt;/P&gt;&lt;P&gt;This is terrific. I've had a longstanding problem involving two companies in our group each having a customer database with an overlap of customers but with the details being entered often with slightly different names. I've been putting off teasing out all the common customers but maybe I can tackle that now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jun 2017 09:14:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-function-or-Script-for-string-mapping-with/m-p/1353043#M415530</guid>
      <dc:creator>effinty2112</dc:creator>
      <dc:date>2017-06-30T09:14:05Z</dc:date>
    </item>
  </channel>
</rss>

