<?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: String Functions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/String-Functions/m-p/1266650#M398986</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can mention the below Right function and mention the number accordingly.Please find the below example&lt;/P&gt;&lt;P&gt;data:&lt;BR /&gt;LOAD* inline [&lt;BR /&gt;ID&lt;BR /&gt;AAAA12333&lt;BR /&gt;AAAA12334&lt;BR /&gt;AAAA12335&lt;BR /&gt;AAAA12336&lt;BR /&gt;AAAA12337&lt;BR /&gt;AAAA12338&lt;BR /&gt;AAAA12339&lt;BR /&gt;AAAA12340&lt;BR /&gt;AAAA12341&lt;BR /&gt;AAAA12342&lt;BR /&gt;AAAA12343&lt;BR /&gt;AAAA12344&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;dat1:&lt;BR /&gt;&lt;STRONG&gt;load right ("ID",5) as IDNo&amp;nbsp;&amp;nbsp; ----&amp;gt; use this &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="123.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/154519_123.JPG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident data;&lt;BR /&gt;DROP Table data;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Feb 2017 09:14:29 GMT</pubDate>
    <dc:creator>shivkumar300</dc:creator>
    <dc:date>2017-02-27T09:14:29Z</dc:date>
    <item>
      <title>String Functions</title>
      <link>https://community.qlik.com/t5/QlikView/String-Functions/m-p/1266649#M398985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a field that contains staff names and ID. I would love to seperate them so I can have a column for name and another for id...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the right('ID', 5) as IDNO.... but it is not giving the desired format...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please script below and attached picture&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LIB CONNECT TO 'UGOCHI HR';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Right( ID, 5) as IDNO,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "NAME_OF_EMPLOYEE",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DEPARTMENT,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "LOAN_START_DATE",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "REPAYMENT_START_DATE",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "EXPECTED_LOAN_END_DATE",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "LOAN_AMOUNT_GRANTED",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "INSTALLMENT_AMOUNT",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "LOAN_AMOUNT_PAID",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "OUTSTANDING_BALANCE",&lt;/P&gt;&lt;P&gt;''''''''''''''''''''''''''''''''...............................................&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Feb 2017 08:12:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-Functions/m-p/1266649#M398985</guid>
      <dc:creator>akpofureenughwu</dc:creator>
      <dc:date>2017-02-26T08:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: String Functions</title>
      <link>https://community.qlik.com/t5/QlikView/String-Functions/m-p/1266650#M398986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can mention the below Right function and mention the number accordingly.Please find the below example&lt;/P&gt;&lt;P&gt;data:&lt;BR /&gt;LOAD* inline [&lt;BR /&gt;ID&lt;BR /&gt;AAAA12333&lt;BR /&gt;AAAA12334&lt;BR /&gt;AAAA12335&lt;BR /&gt;AAAA12336&lt;BR /&gt;AAAA12337&lt;BR /&gt;AAAA12338&lt;BR /&gt;AAAA12339&lt;BR /&gt;AAAA12340&lt;BR /&gt;AAAA12341&lt;BR /&gt;AAAA12342&lt;BR /&gt;AAAA12343&lt;BR /&gt;AAAA12344&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;dat1:&lt;BR /&gt;&lt;STRONG&gt;load right ("ID",5) as IDNo&amp;nbsp;&amp;nbsp; ----&amp;gt; use this &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="123.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/154519_123.JPG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident data;&lt;BR /&gt;DROP Table data;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2017 09:14:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-Functions/m-p/1266650#M398986</guid>
      <dc:creator>shivkumar300</dc:creator>
      <dc:date>2017-02-27T09:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: String Functions</title>
      <link>https://community.qlik.com/t5/QlikView/String-Functions/m-p/1266651#M398987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Akpofure,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trust that you are doing great!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer below sample script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14881877047454207 jive_text_macro" jivemacro_uid="_14881877047454207"&gt;
&lt;P&gt;Data:&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;ID,&lt;/P&gt;
&lt;P&gt;REPLACE(ID, RIGHT(ID,5), ' ') AS StaffName,&lt;/P&gt;
&lt;P&gt;RIGHT(ID,5) AS StaffId;&lt;/P&gt;
&lt;P&gt;LOAD * INLINE [&lt;/P&gt;
&lt;P&gt;ID&lt;/P&gt;
&lt;P&gt;Abanum Odikayor19145&lt;/P&gt;
&lt;P&gt;Abayomi Daniel90536&lt;/P&gt;
&lt;P&gt;Abdel Mohammed18235&lt;/P&gt;
&lt;P&gt;Abdulgafar Zakariyau18479&lt;/P&gt;
&lt;P&gt;Abdulkadir Yusuf20638&lt;/P&gt;
&lt;P&gt;Abdulkarim Braimoh74235&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;


&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will be helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are still facing challenges then please share the application with sample data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;P.S.: This script is designed considering StaffId is of 5 character length.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2017 09:31:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-Functions/m-p/1266651#M398987</guid>
      <dc:creator>rahulpawarb</dc:creator>
      <dc:date>2017-02-27T09:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: String Functions</title>
      <link>https://community.qlik.com/t5/QlikView/String-Functions/m-p/1266652#M398988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try one of these:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Right(Trim("ID"), 5) as IDNO&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;KeepChar("ID", '1234567890') as IDNO&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2017 10:45:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-Functions/m-p/1266652#M398988</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-27T10:45:41Z</dc:date>
    </item>
  </channel>
</rss>

