<?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: Splitting UK Postcodes in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Splitting-UK-Postcodes/m-p/304827#M500743</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply.&amp;nbsp; The problem i could see with Left was how to determine whether i needed only the first (Count=1) character or the first 2 (Count=2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used this in the end...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PurgeChar(Left(Postcode,2),'1234567890')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 May 2011 11:33:46 GMT</pubDate>
    <dc:creator>haymarketpaul</dc:creator>
    <dc:date>2011-05-17T11:33:46Z</dc:date>
    <item>
      <title>Splitting UK Postcodes</title>
      <link>https://community.qlik.com/t5/QlikView/Splitting-UK-Postcodes/m-p/304825#M500741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using QV10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a spreadsheet with a UK postcodes column in it...&lt;/P&gt;&lt;P&gt;&lt;IMG alt="FullPostcodes.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/4404_FullPostcodes.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have another spreadsheet that looks like this...&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Postcodes.jpg" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/4403_Postcodes.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to be able to match the 2 together based on the first 1 or 2 letters in the postcode so i can then filter my data by Post Town or Region.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i obtain the first 1 or 2 letters from my list of full postcodes?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am thinking i will need to check for an ASCII number to determine if i need just the first letter or the first 2 but i am sure there is a better alternative!?&amp;nbsp; PurgeChar looks interesting, perhaps i can use subfield to grab the first part of the postcode and purgechar to remove the number part(s) - (thinking as i'm writing here).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&amp;nbsp; Is there a better solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2011 11:11:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Splitting-UK-Postcodes/m-p/304825#M500741</guid>
      <dc:creator>haymarketpaul</dc:creator>
      <dc:date>2011-05-17T11:11:50Z</dc:date>
    </item>
    <item>
      <title>Splitting UK Postcodes</title>
      <link>https://community.qlik.com/t5/QlikView/Splitting-UK-Postcodes/m-p/304826#M500742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried using the left(fieldname,count) string function and link this to your look-up table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Shyam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2011 11:22:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Splitting-UK-Postcodes/m-p/304826#M500742</guid>
      <dc:creator />
      <dc:date>2011-05-17T11:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting UK Postcodes</title>
      <link>https://community.qlik.com/t5/QlikView/Splitting-UK-Postcodes/m-p/304827#M500743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply.&amp;nbsp; The problem i could see with Left was how to determine whether i needed only the first (Count=1) character or the first 2 (Count=2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used this in the end...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PurgeChar(Left(Postcode,2),'1234567890')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2011 11:33:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Splitting-UK-Postcodes/m-p/304827#M500743</guid>
      <dc:creator>haymarketpaul</dc:creator>
      <dc:date>2011-05-17T11:33:46Z</dc:date>
    </item>
  </channel>
</rss>

