<?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: Can Data Be &amp;quot;Scrubbed&amp;quot;? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Can-Data-Be-quot-Scrubbed-quot/m-p/355512#M705072</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all so much!&amp;nbsp; I implemented both functions and laid the columns side by side.&amp;nbsp; They provided pretty much exactly the same results.&amp;nbsp; The Purge left in a couple of characters I didn't think to account for (someone entered a + as part of an overseas number), but I am fairly sure it would have worked long term.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I very much appreciate your assistance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Jun 2012 21:25:46 GMT</pubDate>
    <dc:creator>raynac</dc:creator>
    <dc:date>2012-06-15T21:25:46Z</dc:date>
    <item>
      <title>Can Data Be "Scrubbed"?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-Data-Be-quot-Scrubbed-quot/m-p/355508#M705068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a database with a phone_number field.&amp;nbsp; The problem is that it's not a number but a string field where any of the following are valid:&lt;/P&gt;&lt;P&gt;(416) 555-1212&lt;/P&gt;&lt;P&gt;416-555-1212&lt;/P&gt;&lt;P&gt;416.555.1212&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You get the idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, we have another table from a completely different place where that same phone number is always stored as 4165551212, and I have been asked to join records based on those two fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So here is my question - is there a way in the script to "scrub" the data in the first field of any non-numeric characters so it will cleanly join with the second field?&amp;nbsp; I found a reference to "num(evaluate(phone_number), '##########')" but the phone numbers might be non-North-American, so we can't know how many characters might be in the field...and I get a "Garbage after expression" error when I try this.&amp;nbsp; (I am still running Qlikview 9, if that makes a difference.)&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any assistance would be much appreciated!&amp;nbsp; Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2012 20:31:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-Data-Be-quot-Scrubbed-quot/m-p/355508#M705068</guid>
      <dc:creator>raynac</dc:creator>
      <dc:date>2012-06-15T20:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: Can Data Be "Scrubbed"?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-Data-Be-quot-Scrubbed-quot/m-p/355509#M705069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;look at purgechar in help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2012 20:44:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-Data-Be-quot-Scrubbed-quot/m-p/355509#M705069</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2012-06-15T20:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: Can Data Be "Scrubbed"?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-Data-Be-quot-Scrubbed-quot/m-p/355510#M705070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think mwoolf has the right idea, but the KeepChar() function may be easier to use for this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2012 20:56:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-Data-Be-quot-Scrubbed-quot/m-p/355510#M705070</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2012-06-15T20:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: Can Data Be "Scrubbed"?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-Data-Be-quot-Scrubbed-quot/m-p/355511#M705071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;keepchar (&lt;/SPAN&gt;phone_number, '1234567890') as Phone_Number&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2012 21:00:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-Data-Be-quot-Scrubbed-quot/m-p/355511#M705071</guid>
      <dc:creator />
      <dc:date>2012-06-15T21:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: Can Data Be "Scrubbed"?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-Data-Be-quot-Scrubbed-quot/m-p/355512#M705072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all so much!&amp;nbsp; I implemented both functions and laid the columns side by side.&amp;nbsp; They provided pretty much exactly the same results.&amp;nbsp; The Purge left in a couple of characters I didn't think to account for (someone entered a + as part of an overseas number), but I am fairly sure it would have worked long term.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I very much appreciate your assistance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2012 21:25:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-Data-Be-quot-Scrubbed-quot/m-p/355512#M705072</guid>
      <dc:creator>raynac</dc:creator>
      <dc:date>2012-06-15T21:25:46Z</dc:date>
    </item>
  </channel>
</rss>

