<?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: How do i get the two letters of a post code using expression? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-do-i-get-the-two-letters-of-a-post-code-using-expression/m-p/543074#M202935</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then mark it so. This gives other community members the hint what is the solution of this question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Aug 2013 09:45:42 GMT</pubDate>
    <dc:creator>rbecher</dc:creator>
    <dc:date>2013-08-29T09:45:42Z</dc:date>
    <item>
      <title>How do i get the two letters of a post code using expression?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-i-get-the-two-letters-of-a-post-code-using-expression/m-p/543065#M202926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know am a pain but please bear with me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what i am trying to achieve is to get the first two letters of a post code in a city and then i want to create an analysis of post codes where accident is more frequent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;below is the address table; what i want is get the first two letters in the postcode then i can use Towncity as a dimension and can drill through the post code, i dont know if am making sense.. any idea will be appreciated&lt;/P&gt;&lt;P&gt;Address:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD AddressID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // FKCountryID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; //&amp;nbsp; Address1, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; //&amp;nbsp; Address2, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TownCity, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; County, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Postcode&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; //&amp;nbsp; Latitude, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; //&amp;nbsp; Longitude, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; //&amp;nbsp; FullAddress, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; //&amp;nbsp; Deleted, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; //&amp;nbsp; LastUpdatedDate, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; //&amp;nbsp; CreatedDate&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;Tier1_QVDs\Address.qvd&lt;/P&gt;&lt;P&gt;(qvd);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2013 14:24:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-i-get-the-two-letters-of-a-post-code-using-expression/m-p/543065#M202926</guid>
      <dc:creator />
      <dc:date>2013-08-28T14:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: How do i get the two letters of a post code using expression?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-i-get-the-two-letters-of-a-post-code-using-expression/m-p/543066#M202927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the first part of the question you could use left(postcode,2). I am not sure about the second part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Rajesh Vaswani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2013 14:26:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-i-get-the-two-letters-of-a-post-code-using-expression/m-p/543066#M202927</guid>
      <dc:creator>rajeshvaswani77</dc:creator>
      <dc:date>2013-08-28T14:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: How do i get the two letters of a post code using expression?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-i-get-the-two-letters-of-a-post-code-using-expression/m-p/543067#M202928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this expression :&lt;/P&gt;&lt;P&gt;Left(Postcode, 2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it what you're looking for ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nicolas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2013 14:26:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-i-get-the-two-letters-of-a-post-code-using-expression/m-p/543067#M202928</guid>
      <dc:creator />
      <dc:date>2013-08-28T14:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: How do i get the two letters of a post code using expression?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-i-get-the-two-letters-of-a-post-code-using-expression/m-p/543068#M202929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the 2 leter alwways be first???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if yes you can do left(Postcode,2) as letter_poscode&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the letter are for anywuere you can use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;P&gt;purgechar ( 'a1b2c3','123' ) return 'abc' ..&lt;/P&gt;&lt;P&gt;purgechar ( 'Postcode','1234567890' ) as letter_poscode&lt;/P&gt;&lt;P&gt;Hope that gelps you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2013 14:31:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-i-get-the-two-letters-of-a-post-code-using-expression/m-p/543068#M202929</guid>
      <dc:creator>fdelacal</dc:creator>
      <dc:date>2013-08-28T14:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: How do i get the two letters of a post code using expression?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-i-get-the-two-letters-of-a-post-code-using-expression/m-p/543069#M202930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="Capture1.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/45975_Capture1.JPG.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hello, basically this is what i need, i can do it on sql but how do i update it in the address table i have in the folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to add this line of code to the address table but how can i do it. You guys rock&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE (isnumeric(SUBSTRING([Postcode] , 2 , 1))) WHEN 1 THEN LEFT ([Postcode] , 1) ELSE LEFT ([Postcode] , 2) END as PostcodeLetters&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2013 14:58:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-i-get-the-two-letters-of-a-post-code-using-expression/m-p/543069#M202930</guid>
      <dc:creator />
      <dc:date>2013-08-28T14:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: How do i get the two letters of a post code using expression?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-i-get-the-two-letters-of-a-post-code-using-expression/m-p/543070#M202931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why not use similar expression in QlikView:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD if(isnum(mid([Postcode] , 2 , 1)), lef([Postcode] ,1), left([Postcode] ,2)) as PostcodeLetters, ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2013 15:20:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-i-get-the-two-letters-of-a-post-code-using-expression/m-p/543070#M202931</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2013-08-28T15:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: How do i get the two letters of a post code using expression?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-i-get-the-two-letters-of-a-post-code-using-expression/m-p/543071#M202932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all, I really do appreciate. I am getting there gradually&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 08:44:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-i-get-the-two-letters-of-a-post-code-using-expression/m-p/543071#M202932</guid>
      <dc:creator />
      <dc:date>2013-08-29T08:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: How do i get the two letters of a post code using expression?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-i-get-the-two-letters-of-a-post-code-using-expression/m-p/543072#M202933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does my suggestion not work?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 08:48:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-i-get-the-two-letters-of-a-post-code-using-expression/m-p/543072#M202933</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2013-08-29T08:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: How do i get the two letters of a post code using expression?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-i-get-the-two-letters-of-a-post-code-using-expression/m-p/543073#M202934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ralf, it works &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 09:11:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-i-get-the-two-letters-of-a-post-code-using-expression/m-p/543073#M202934</guid>
      <dc:creator />
      <dc:date>2013-08-29T09:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: How do i get the two letters of a post code using expression?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-i-get-the-two-letters-of-a-post-code-using-expression/m-p/543074#M202935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then mark it so. This gives other community members the hint what is the solution of this question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 09:45:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-i-get-the-two-letters-of-a-post-code-using-expression/m-p/543074#M202935</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2013-08-29T09:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: How do i get the two letters of a post code using expression?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-i-get-the-two-letters-of-a-post-code-using-expression/m-p/1748508#M453468</link>
      <description>&lt;P&gt;Hi, what would this expression be to produce the first half of the postcode?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 14:12:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-i-get-the-two-letters-of-a-post-code-using-expression/m-p/1748508#M453468</guid>
      <dc:creator>kelly_oakley</dc:creator>
      <dc:date>2020-09-30T14:12:18Z</dc:date>
    </item>
  </channel>
</rss>

