<?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 LTrim and replace, with exception. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/LTrim-and-replace-with-exception/m-p/318369#M117378</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;Use Subfield( ) function to remove . from the field after doing do some thing like Subfield(0002.abc,'.' 1) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Oct 2011 14:02:45 GMT</pubDate>
    <dc:creator>its_anandrjs</dc:creator>
    <dc:date>2011-10-06T14:02:45Z</dc:date>
    <item>
      <title>LTrim and replace, with exception.</title>
      <link>https://community.qlik.com/t5/QlikView/LTrim-and-replace-with-exception/m-p/318368#M117377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following script which works in eliminating the Zero’s and blank spaces in the imported field “Material”. &lt;/P&gt;&lt;P&gt;replace(ltrim(replace(Material, '0', ' ')), ' ', 0) as Product,&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need this to exclude any item in “Material” that contains “.” Or “/” from the action of the above script but still include them in the new field “Product". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For example:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;An item in Material that is &lt;/P&gt;&lt;P&gt;000000123456 needs to become 123456&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But 0002.abc needs to remain as 0002.abc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The current action returns this as 2.abc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All spaces in the item need to be removed, which I believe the trim action achieves&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Material field contains text and numbers and both.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The new field Product then should contain all entries, so if you start with 1000 you end up with 1000 that been subject to the script actions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anyone has any idea how this can be achieved, I'd appreciate the help.&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>Thu, 06 Oct 2011 13:57:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LTrim-and-replace-with-exception/m-p/318368#M117377</guid>
      <dc:creator />
      <dc:date>2011-10-06T13:57:08Z</dc:date>
    </item>
    <item>
      <title>LTrim and replace, with exception.</title>
      <link>https://community.qlik.com/t5/QlikView/LTrim-and-replace-with-exception/m-p/318369#M117378</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;Use Subfield( ) function to remove . from the field after doing do some thing like Subfield(0002.abc,'.' 1) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2011 14:02:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LTrim-and-replace-with-exception/m-p/318369#M117378</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2011-10-06T14:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: LTrim and replace, with exception.</title>
      <link>https://community.qlik.com/t5/QlikView/LTrim-and-replace-with-exception/m-p/318370#M117379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how about:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;if(isnum(Material),num(Material),Material) as Product, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;etc. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2011 15:23:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LTrim-and-replace-with-exception/m-p/318370#M117379</guid>
      <dc:creator />
      <dc:date>2011-10-06T15:23:20Z</dc:date>
    </item>
  </channel>
</rss>

