<?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 the fourth character from the end in a string in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/remove-the-fourth-character-from-the-end-in-a-string/m-p/427281#M1158898</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look into the QV string functions section in the HELP file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your two expressions for the new fields might look like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Number,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;replace(Number,'******','*****') &lt;/STRONG&gt;as NewNumber1,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;left(Number,len(Number)-4)&amp;amp;right(Number,3) &lt;/STRONG&gt;as NewNumber2,&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending on the format of the Number field, you might also want to look into index(),findoneof() etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Feb 2013 08:37:21 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2013-02-12T08:37:21Z</dc:date>
    <item>
      <title>remove the fourth character from the end in a string</title>
      <link>https://community.qlik.com/t5/QlikView/remove-the-fourth-character-from-the-end-in-a-string/m-p/427279#M1158896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a field that i want to load in my tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is like "123456******7890".&lt;/P&gt;&lt;P&gt;I want to create a new field be removing one of the asterisks&lt;/P&gt;&lt;P&gt;and another by removing the first digit after the asterisks ( in this example the digit 7).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2013 07:57:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/remove-the-fourth-character-from-the-end-in-a-string/m-p/427279#M1158896</guid>
      <dc:creator />
      <dc:date>2013-02-12T07:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: remove the fourth character from the end in a string</title>
      <link>https://community.qlik.com/t5/QlikView/remove-the-fourth-character-from-the-end-in-a-string/m-p/427280#M1158897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your string has a variable lenght and the field name is for example myField you can use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;mid(&lt;STRONG&gt;myField,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;1,len(myField)-4) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2013 08:10:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/remove-the-fourth-character-from-the-end-in-a-string/m-p/427280#M1158897</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2013-02-12T08:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: remove the fourth character from the end in a string</title>
      <link>https://community.qlik.com/t5/QlikView/remove-the-fourth-character-from-the-end-in-a-string/m-p/427281#M1158898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look into the QV string functions section in the HELP file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your two expressions for the new fields might look like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Number,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;replace(Number,'******','*****') &lt;/STRONG&gt;as NewNumber1,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;left(Number,len(Number)-4)&amp;amp;right(Number,3) &lt;/STRONG&gt;as NewNumber2,&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending on the format of the Number field, you might also want to look into index(),findoneof() etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2013 08:37:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/remove-the-fourth-character-from-the-end-in-a-string/m-p/427281#M1158898</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-02-12T08:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: remove the fourth character from the end in a string</title>
      <link>https://community.qlik.com/t5/QlikView/remove-the-fourth-character-from-the-end-in-a-string/m-p/427282#M1158899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there, thank you for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field has a fixed length of 16 digits. Using the code that you gave me it completely removes the last four digits.&lt;/P&gt;&lt;P&gt;I just want yo remove the fourth from the last and keep the last three.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2013 08:39:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/remove-the-fourth-character-from-the-end-in-a-string/m-p/427282#M1158899</guid>
      <dc:creator />
      <dc:date>2013-02-12T08:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: remove the fourth character from the end in a string</title>
      <link>https://community.qlik.com/t5/QlikView/remove-the-fourth-character-from-the-end-in-a-string/m-p/427283#M1158900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;a:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * INLINE [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; F1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 123456******7890&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;load&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; replace(F1,'******','') as Number1,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; replace(F1,'7','') as Number11,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; left(F1,len(F1)-10) &amp;amp; right(F1,4) as Number2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Resident a;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2013 08:58:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/remove-the-fourth-character-from-the-end-in-a-string/m-p/427283#M1158900</guid>
      <dc:creator />
      <dc:date>2013-02-12T08:58:49Z</dc:date>
    </item>
  </channel>
</rss>

