<?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 Phone numbers on different formats. How to match? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Phone-numbers-on-different-formats-How-to-match/m-p/215966#M69366</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome, thanks man!&lt;/P&gt;&lt;P&gt;brgds&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Jan 2010 14:16:10 GMT</pubDate>
    <dc:creator>andy</dc:creator>
    <dc:date>2010-01-19T14:16:10Z</dc:date>
    <item>
      <title>Phone numbers on different formats. How to match?</title>
      <link>https://community.qlik.com/t5/QlikView/Phone-numbers-on-different-formats-How-to-match/m-p/215964#M69364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folks,&lt;/P&gt;&lt;P&gt;I'm into writing a small Qlikview script to see which users that should be added to a system.&lt;/P&gt;&lt;P&gt;I have a database with users name and phone-number. I also have a file containing a list of users that might already exist in the database.&lt;/P&gt;&lt;P&gt;The data I have to match on is name and phone number. One or the other or both.&lt;/P&gt;&lt;P&gt;My small problem here is that the phone numbers in the database are stored in different ways for example as&lt;/P&gt;&lt;P&gt;070-123456&lt;/P&gt;&lt;P&gt;070-12 34 56&lt;/P&gt;&lt;P&gt;070-123 456&lt;/P&gt;&lt;P&gt;070123456&lt;/P&gt;&lt;P&gt;+44 70123456&lt;/P&gt;&lt;P&gt;+44 70 123456&lt;/P&gt;&lt;P&gt;and so on&lt;/P&gt;&lt;P&gt;The same goes for the file.&lt;/P&gt;&lt;P&gt;I would like to know if there is any smart way in Qlikview to achieve a match on phone-numbers with these pre-conditions?&lt;/P&gt;&lt;P&gt;My approach would be to get the DB-users into Qlikview, export as file and then get all phonenumbers on the same format with regular expressions. Run the same regular expression for the file. Then load both files into Qlikview.&lt;/P&gt;&lt;P&gt;/Andy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2010 10:22:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Phone-numbers-on-different-formats-How-to-match/m-p/215964#M69364</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2010-01-19T10:22:56Z</dc:date>
    </item>
    <item>
      <title>Phone numbers on different formats. How to match?</title>
      <link>https://community.qlik.com/t5/QlikView/Phone-numbers-on-different-formats-How-to-match/m-p/215965#M69365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are different way of doing this,&lt;/P&gt;&lt;P&gt;the string functions may helps you :&lt;/P&gt;&lt;P&gt;Suppose your Field Name is PhoneNumber,&lt;/P&gt;&lt;P&gt;the PurgeChar function : PurgeChar( [PhoneNumber], &lt;EM&gt;' -'&lt;/EM&gt;)&lt;BR /&gt;will load Phone number without any char in the second parameter : here , ' -' means that every space and every - will be erased.&lt;/P&gt;&lt;P&gt;Then to manage the +44 : use replace ([PhoneNumber],'+44','0') : All +44 will be replaced by 0&lt;/P&gt;&lt;P&gt;in the script you can use the following syntax :&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;PurgeChar( Replace([PhoneNumber],'+44','0'), &lt;EM&gt;' -'&lt;/EM&gt;) as PhoneNumber ,&lt;BR /&gt;...&lt;/P&gt;&lt;P&gt;Note: I've written this from memories, I haven't tested it on a Qvw, all apologies if I made a syntax error &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hopes it help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2010 13:53:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Phone-numbers-on-different-formats-How-to-match/m-p/215965#M69365</guid>
      <dc:creator />
      <dc:date>2010-01-19T13:53:32Z</dc:date>
    </item>
    <item>
      <title>Phone numbers on different formats. How to match?</title>
      <link>https://community.qlik.com/t5/QlikView/Phone-numbers-on-different-formats-How-to-match/m-p/215966#M69366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome, thanks man!&lt;/P&gt;&lt;P&gt;brgds&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2010 14:16:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Phone-numbers-on-different-formats-How-to-match/m-p/215966#M69366</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2010-01-19T14:16:10Z</dc:date>
    </item>
  </channel>
</rss>

