<?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 Remove Leading Zeros from Field while loading in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Remove-Leading-Zeros-from-Field-while-loading/m-p/169516#M40296</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;then u want to remove all zeors&lt;/P&gt;&lt;P&gt;ex:&lt;/P&gt;&lt;P&gt;0003000950 u want 395 or how u want?&lt;/P&gt;&lt;P&gt;-Sathish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 May 2010 13:38:15 GMT</pubDate>
    <dc:creator>sathishkumar_go</dc:creator>
    <dc:date>2010-05-28T13:38:15Z</dc:date>
    <item>
      <title>Remove Leading Zeros from Field while loading</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-Leading-Zeros-from-Field-while-loading/m-p/169513#M40293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello !&lt;/P&gt;&lt;P&gt;We have a field that is a numerical value with many digits.&lt;/P&gt;&lt;P&gt;AFAIK QV supports up to 11 or 12 digits for a field to be considered numeric.&lt;/P&gt;&lt;P&gt;I wanna load this field as String (since it can't be numeric cause it has too many digits) but REMOVE LEADING ZEROS while loading it.&lt;/P&gt;&lt;P&gt;This is a sample of the field values :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;NUMCLI_COCTI ;&lt;BR /&gt;000000009279340;&lt;BR /&gt;000000008000040;&lt;BR /&gt;000000009424789;&lt;BR /&gt;000000009401191;&lt;BR /&gt;000000009372228;&lt;BR /&gt;000000009372228;&lt;BR /&gt;000000009021023;&lt;BR /&gt;000000009279340;&lt;BR /&gt;000000009221292;&lt;BR /&gt;000000009424789;&lt;BR /&gt;000000009401191;&lt;BR /&gt;000031230777806;&lt;BR /&gt;000599744000174;&lt;BR /&gt;[/CODE]&lt;BR /&gt;Is there a LTRIM ,with Zeroes instead of Spaces ? Kind of a RemLeft (Remove Left chars) ...&lt;BR /&gt;Any suggestions ?&lt;BR /&gt;Thanks !&amp;lt;/body&amp;gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 May 2010 12:55:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-Leading-Zeros-from-Field-while-loading/m-p/169513#M40293</guid>
      <dc:creator />
      <dc:date>2010-05-28T12:55:36Z</dc:date>
    </item>
    <item>
      <title>Remove Leading Zeros from Field while loading</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-Leading-Zeros-from-Field-while-loading/m-p/169514#M40294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;you want to use as string then use text function.&lt;/P&gt;&lt;P&gt;if want to remove all zero's are 1st 5 places????&lt;/P&gt;&lt;P&gt;because i noted some fileds r 1st 3 places only 0&lt;/P&gt;&lt;P&gt;-Sathish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 May 2010 13:09:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-Leading-Zeros-from-Field-while-loading/m-p/169514#M40294</guid>
      <dc:creator>sathishkumar_go</dc:creator>
      <dc:date>2010-05-28T13:09:08Z</dc:date>
    </item>
    <item>
      <title>Remove Leading Zeros from Field while loading</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-Leading-Zeros-from-Field-while-loading/m-p/169515#M40295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont know how many Trailing Zeroes we can have. The sample I provided has a coincidence. But it's not like that...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 May 2010 13:12:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-Leading-Zeros-from-Field-while-loading/m-p/169515#M40295</guid>
      <dc:creator />
      <dc:date>2010-05-28T13:12:25Z</dc:date>
    </item>
    <item>
      <title>Remove Leading Zeros from Field while loading</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-Leading-Zeros-from-Field-while-loading/m-p/169516#M40296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;then u want to remove all zeors&lt;/P&gt;&lt;P&gt;ex:&lt;/P&gt;&lt;P&gt;0003000950 u want 395 or how u want?&lt;/P&gt;&lt;P&gt;-Sathish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 May 2010 13:38:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-Leading-Zeros-from-Field-while-loading/m-p/169516#M40296</guid>
      <dc:creator>sathishkumar_go</dc:creator>
      <dc:date>2010-05-28T13:38:15Z</dc:date>
    </item>
    <item>
      <title>Remove Leading Zeros from Field while loading</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-Leading-Zeros-from-Field-while-loading/m-p/169517#M40297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;0003000950 I want 3000950&lt;/P&gt;&lt;P&gt;0000000001 I want 1&lt;/P&gt;&lt;P&gt;0000000012 then I want 12&lt;/P&gt;&lt;P&gt;123456789012345 I want 123456789012345&lt;/P&gt;&lt;P&gt;and so forth !&lt;/P&gt;&lt;P&gt;It's simple : REMOVE LEADING ZEROES FROM A FIELD !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 May 2010 13:47:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-Leading-Zeros-from-Field-while-loading/m-p/169517#M40297</guid>
      <dc:creator />
      <dc:date>2010-05-28T13:47:52Z</dc:date>
    </item>
    <item>
      <title>Remove Leading Zeros from Field while loading</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-Leading-Zeros-from-Field-while-loading/m-p/169518#M40298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI TRY THIS&lt;/P&gt;&lt;P&gt;HOPE THIS WILL WORK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE&lt;/P&gt;&lt;P&gt;(LTRIM(REPLACE(NUMCLI_COCTI, '0', ' ')), ' ', '0')&lt;/P&gt;&lt;P&gt;GOOD LUCK&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 May 2010 14:02:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-Leading-Zeros-from-Field-while-loading/m-p/169518#M40298</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2010-05-28T14:02:24Z</dc:date>
    </item>
    <item>
      <title>Remove Leading Zeros from Field while loading</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-Leading-Zeros-from-Field-while-loading/m-p/169519#M40299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adriano&lt;/P&gt;&lt;P&gt;assuming your large number string has a fixed length you could split the field into subparts and create the numeric representation for each of the parts. The recombine the number, multiplying the higher parts with the according number.&lt;/P&gt;&lt;P&gt;You will still hit a border for the highest number representable.&lt;/P&gt;&lt;P&gt;num1 = num(left(NUMCLI_COCTI,8))&lt;BR /&gt;num2= num(right(NUMCLI_COCTI,8))&lt;BR /&gt;num = (num1 * 100000000) + num2&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jürg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 May 2010 15:11:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-Leading-Zeros-from-Field-while-loading/m-p/169519#M40299</guid>
      <dc:creator />
      <dc:date>2010-05-28T15:11:51Z</dc:date>
    </item>
    <item>
      <title>Remove Leading Zeros from Field while loading</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-Leading-Zeros-from-Field-while-loading/m-p/169520#M40300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello. I can remove leading zeroes using this in the script, but second column (containing the non-zero value) is created in the table. Do you know how can I change the value within the existing column? Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Dec 2010 01:32:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-Leading-Zeros-from-Field-while-loading/m-p/169520#M40300</guid>
      <dc:creator>bullish35</dc:creator>
      <dc:date>2010-12-01T01:32:54Z</dc:date>
    </item>
    <item>
      <title>Remove Leading Zeros from Field while loading</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-Leading-Zeros-from-Field-while-loading/m-p/169521#M40301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;replace(ltrim(replace(YourField,'0',' ')),' ','0') &lt;STRONG&gt;as YourField&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Dec 2010 01:37:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-Leading-Zeros-from-Field-while-loading/m-p/169521#M40301</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-12-01T01:37:45Z</dc:date>
    </item>
    <item>
      <title>Remove Leading Zeros from Field while loading</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-Leading-Zeros-from-Field-while-loading/m-p/169522#M40302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ltrim(replace(Individual_Item_Number,'77','')) as Dupe So I used this variant to try and identify individual_items where they start with '77%' and return it's non 77 equivalent: Where ind_item = 12345, Dupe is 12345 as it should be. where ind_item = 7712345, Dupe is 12345 as it should be...however, if ind_item = 1277345, it returns 12345 when I would like it to remain 1277345. I only want it to act if the two left most digits meet the criteria.&amp;nbsp; Thoughts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2012 22:46:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-Leading-Zeros-from-Field-while-loading/m-p/169522#M40302</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-28T22:46:18Z</dc:date>
    </item>
  </channel>
</rss>

