<?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: Search for similar field values, replace and remove duplicates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Search-for-similar-field-values-replace-and-remove-duplicates/m-p/1642508#M732757</link>
    <description>&lt;P&gt;Hello! Sorry for late answer.&lt;/P&gt;&lt;P&gt;This works like a charm, thanks a lot!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 04 Nov 2019 12:05:25 GMT</pubDate>
    <dc:creator>martinholm</dc:creator>
    <dc:date>2019-11-04T12:05:25Z</dc:date>
    <item>
      <title>Search for similar field values, replace and remove duplicates</title>
      <link>https://community.qlik.com/t5/QlikView/Search-for-similar-field-values-replace-and-remove-duplicates/m-p/1634802#M732753</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I'm working on a project where categories have been saved with similar names multiple times. An issue which should have been fixed at an earlier stage, but cannot be done.&lt;/P&gt;&lt;P&gt;here's an example of values that should all be named "Solumstrand"&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="clipboard_image_0.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/21377iC3C6DBEA6B8F4282/image-size/medium?v=v2&amp;amp;px=400" role="button" title="clipboard_image_0.png" alt="clipboard_image_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As there is quite a lot of these mistakes, i would like to give a column of correct names which should be (wild?)matched with the faulty names and replace them.&lt;/P&gt;&lt;P&gt;I have attempted like this for joining and i suppose i can remove the faulty names in a new load statement&lt;/P&gt;&lt;P&gt;//Names i want to correct to&lt;BR /&gt;Prosjekttabell:&lt;BR /&gt;Load Prosjektnavn;&lt;BR /&gt;LOAD Prosjektnavn INLINE [&lt;BR /&gt;Prosjektnavn&lt;BR /&gt;'Solumstrand',&lt;BR /&gt;'Muusøya',&lt;BR /&gt;'Kim Karlsen'&lt;BR /&gt;'Sande',&lt;BR /&gt;'Svelvik'&lt;BR /&gt;'Elvika',&lt;BR /&gt;'Lier',&lt;BR /&gt;'Linnes',&lt;BR /&gt;'Mjøndalen',&lt;BR /&gt;'Vidar Hansen',&lt;BR /&gt;'Åsgårdstrand'&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;//I want to search Prosjekt for substrings found in Prosjekttabell and join the fitting name to all the correct rows&lt;BR /&gt;join (Prosjekttabell)&lt;BR /&gt;Load distinct PROSJEKT_ID,&lt;BR /&gt;PROSJEKT_NR,&lt;BR /&gt;PROSJEKT&lt;BR /&gt;Resident 'Drammen_test'&lt;BR /&gt;where WildMatch(PROSJEKT, [Prosjektnavn])= [Prosjektnavn];&lt;/P&gt;&lt;P&gt;I get the error message "Cannot find the field name Prosjektnavn"&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 19:54:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-for-similar-field-values-replace-and-remove-duplicates/m-p/1634802#M732753</guid>
      <dc:creator>martinholm</dc:creator>
      <dc:date>2024-11-16T19:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: Search for similar field values, replace and remove duplicates</title>
      <link>https://community.qlik.com/t5/QlikView/Search-for-similar-field-values-replace-and-remove-duplicates/m-p/1638020#M732754</link>
      <description>&lt;P&gt;Have a look at the following Design Blog post, that may be a better way to go at things potentially.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Mapping-and-not-the-geographical-kind/ba-p/1463192" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Mapping-and-not-the-geographical-kind/ba-p/1463192&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;If you want to search for other blog posts, use the following link:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 19:24:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-for-similar-field-values-replace-and-remove-duplicates/m-p/1638020#M732754</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-10-21T19:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: Search for similar field values, replace and remove duplicates</title>
      <link>https://community.qlik.com/t5/QlikView/Search-for-similar-field-values-replace-and-remove-duplicates/m-p/1638072#M732755</link>
      <description>&lt;P&gt;What criteria do you use to classify "duplicates"?&lt;/P&gt;&lt;P&gt;Try this script and tell me about it...&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Prosjekttabell:
NOCONCATENATE
LOAD * INLINE [
    Prosjektnavn
    Solumstrand
    Muusøya
    Kim Karlsen
    Sande
    Svelvik
    Elvika
    Lier
    Linnes
    Mjøndalen
    Vidar Hansen
    Åsgårdstrand
];

ProsjektnavnMap:
MAPPING LOAD Lower(Prosjektnavn), '&amp;lt;' &amp;amp; Prosjektnavn &amp;amp; '&amp;gt;'
RESIDENT Prosjekttabell;

Test:
NOCONCATENATE
LOAD * WHERE Len(Trim(newPROSJEKT)); // Comment this line to load all rows.
LOAD DISTINCT
    PROSJEKT_ID,
    PROSJEKT_NR,
    PROSJEKT AS oldPROSJEKT,
    TextBetween(
    	MapSubstring('ProsjektnavnMap', Lower(PROSJEKT)), '&amp;lt;', '&amp;gt;'
    ) AS newPROSJEKT
RESIDENT Drammen_test;

DROP TABLE Prosjekttabell;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 21:27:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-for-similar-field-values-replace-and-remove-duplicates/m-p/1638072#M732755</guid>
      <dc:creator>JGMDataAnalysis</dc:creator>
      <dc:date>2019-10-21T21:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: Search for similar field values, replace and remove duplicates</title>
      <link>https://community.qlik.com/t5/QlikView/Search-for-similar-field-values-replace-and-remove-duplicates/m-p/1638365#M732756</link>
      <description>&lt;P&gt;A slightly shorter version...&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ProsjektnavnMap:
MAPPING LOAD Lower(Prosjektnavn), '&amp;lt;' &amp;amp; Prosjektnavn &amp;amp; '&amp;gt;'
INLINE [
        Prosjektnavn
        Solumstrand
        Muusøya
        Kim Karlsen
        Sande
        Svelvik
        Elvika
        Lier
        Linnes
        Mjøndalen
        Vidar Hansen
        Åsgårdstrand
];

Test:
NOCONCATENATE
LOAD * WHERE Len(Trim(newPROSJEKT)); // Comment this line to load all rows.
LOAD DISTINCT
    PROSJEKT_ID,
    PROSJEKT_NR,
    PROSJEKT AS oldPROSJEKT,
    TextBetween(
    	MapSubstring('ProsjektnavnMap', Lower(PROSJEKT)), '&amp;lt;', '&amp;gt;'
    ) AS newPROSJEKT
RESIDENT Drammen_test;&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 22 Oct 2019 13:04:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-for-similar-field-values-replace-and-remove-duplicates/m-p/1638365#M732756</guid>
      <dc:creator>JGMDataAnalysis</dc:creator>
      <dc:date>2019-10-22T13:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: Search for similar field values, replace and remove duplicates</title>
      <link>https://community.qlik.com/t5/QlikView/Search-for-similar-field-values-replace-and-remove-duplicates/m-p/1642508#M732757</link>
      <description>&lt;P&gt;Hello! Sorry for late answer.&lt;/P&gt;&lt;P&gt;This works like a charm, thanks a lot!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2019 12:05:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-for-similar-field-values-replace-and-remove-duplicates/m-p/1642508#M732757</guid>
      <dc:creator>martinholm</dc:creator>
      <dc:date>2019-11-04T12:05:25Z</dc:date>
    </item>
  </channel>
</rss>

