<?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: Remove some strings from a field in Water Cooler</title>
    <link>https://community.qlik.com/t5/Water-Cooler/Remove-some-strings-from-a-field/m-p/1661592#M10790</link>
    <description>&lt;P&gt;what if you try using purgecharacter function?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;purgechar(DOC_PURCHASES,'.-/')&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 30 Dec 2019 21:04:08 GMT</pubDate>
    <dc:creator>Frank_Hartmann</dc:creator>
    <dc:date>2019-12-30T21:04:08Z</dc:date>
    <item>
      <title>Remove some strings from a field</title>
      <link>https://community.qlik.com/t5/Water-Cooler/Remove-some-strings-from-a-field/m-p/1661577#M10789</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a field that is the document number of the invoice.&lt;/P&gt;&lt;P&gt;This field will have some strings like . or / or - or etc&lt;/P&gt;&lt;P&gt;how can i remove from all data these strings that have come from false data entry.&lt;/P&gt;&lt;P&gt;I tried with the the following command&lt;/P&gt;&lt;P&gt;IF(FINDONEOF(DOC_PURCHASES,'.'),REPLACE(DOC_PURCHASES,'.',''),&lt;BR /&gt;IF(FINDONEOF(DOC_PURCHASES,'/'),REPLACE(DOC_PURCHASES,'/',''),&lt;BR /&gt;IF(FINDONEOF(DOC_PURCHASES,'-'),REPLACE(DOC_PURCHASES,'-',''),&lt;BR /&gt;IF(FINDONEOF(DOC_PURCHASES,','),REPLACE(DOC_PURCHASES,',',''),&lt;BR /&gt;DOC_PURCHASES))))&lt;/P&gt;&lt;P&gt;but in some values does not work and i don't know why.&lt;/P&gt;&lt;P&gt;Have anyone an idea how can i do this.&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2019 19:44:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/Remove-some-strings-from-a-field/m-p/1661577#M10789</guid>
      <dc:creator>geogou1973</dc:creator>
      <dc:date>2019-12-30T19:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: Remove some strings from a field</title>
      <link>https://community.qlik.com/t5/Water-Cooler/Remove-some-strings-from-a-field/m-p/1661592#M10790</link>
      <description>&lt;P&gt;what if you try using purgecharacter function?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;purgechar(DOC_PURCHASES,'.-/')&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2019 21:04:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/Remove-some-strings-from-a-field/m-p/1661592#M10790</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2019-12-30T21:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: Remove some strings from a field</title>
      <link>https://community.qlik.com/t5/Water-Cooler/Remove-some-strings-from-a-field/m-p/1661608#M10791</link>
      <description>&lt;P&gt;As&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/29675"&gt;@Frank_Hartmann&lt;/a&gt;&amp;nbsp; suggested you can either use purgechar function in which you can write as many junk characters that you want to remove. If single quotes itself is one of the junk character then you can use it like below&lt;/P&gt;&lt;P&gt;=PurgeChar(&lt;SPAN&gt;DOC_PURCHASES&lt;/SPAN&gt;,&lt;STRONG&gt;chr(39)&lt;/STRONG&gt;&amp;amp;'-.,')&lt;/P&gt;&lt;P&gt;If you field always going to have number value then you can use keepchar function which will automatically remove all other characters from field&lt;/P&gt;&lt;P&gt;Keepchar(&lt;SPAN&gt;DOC_PURCHASES,'0123456789')&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2019 21:54:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/Remove-some-strings-from-a-field/m-p/1661608#M10791</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2019-12-30T21:54:48Z</dc:date>
    </item>
  </channel>
</rss>

