<?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 How to remove the leading zero's in the alphanumeric field values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-remove-the-leading-zero-s-in-the-alphanumeric-field/m-p/150517#M28518</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;seems to me like a bug. Have experimented and apparently QV interprets numbers with more than&lt;/P&gt;&lt;P&gt;14 leading "0"s always as a text, with lesser "0"s it would interpret a number like 0000000000000078517 as 78517.&lt;/P&gt;&lt;P&gt;You might use the Replace-function:&lt;/P&gt;&lt;P&gt;Replace(YourField, '00000000000000', '') AS TextOrNumber&lt;/P&gt;&lt;P&gt;but this will fail for e.g. 00000000000000078517A as it would display then 78517A and no longer the full string, which is probably needed.&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Jul 2009 02:33:33 GMT</pubDate>
    <dc:creator>prieper</dc:creator>
    <dc:date>2009-07-29T02:33:33Z</dc:date>
    <item>
      <title>How to remove the leading zero's in the alphanumeric field values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-remove-the-leading-zero-s-in-the-alphanumeric-field/m-p/150512#M28513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The data looks like below one of my reporting field&lt;/P&gt;&lt;P&gt;2412HJk0067&lt;BR /&gt;0161R11U2&lt;BR /&gt;0000000000000002326&lt;BR /&gt;0000000000000005338&lt;BR /&gt;973-GV-79&lt;BR /&gt;0000000000000008349&lt;BR /&gt;834-PV-62&lt;BR /&gt;0164DU636&lt;BR /&gt;00000000000000078517&lt;BR /&gt;1437/392&lt;BR /&gt;##2WQR4567&lt;BR /&gt;-0089WSE9&lt;BR /&gt;-08213R8756&lt;BR /&gt;-00006543298&lt;/P&gt;&lt;P&gt;Database the field has data type character and values are not maintained the same length .&lt;/P&gt;&lt;P&gt;Data extraction it is extracted as&lt;/P&gt;&lt;P&gt;text(field1) as field1&lt;/P&gt;&lt;P&gt;I would like to remove leading 0 atleast for the values like 0000000000000007851 to 7851.&lt;/P&gt;&lt;P&gt;I tried Num,num#,trim ,left- nothing is working.&lt;/P&gt;&lt;P&gt;Advance thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2009 01:17:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-remove-the-leading-zero-s-in-the-alphanumeric-field/m-p/150512#M28513</guid>
      <dc:creator />
      <dc:date>2009-07-29T01:17:49Z</dc:date>
    </item>
    <item>
      <title>How to remove the leading zero's in the alphanumeric field values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-remove-the-leading-zero-s-in-the-alphanumeric-field/m-p/150513#M28514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&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;mid([GLPCA.RACCT],index([GLPCA.RACCT],left(PurgeChar([GLPCA.RACCT] , '0' ),1)))&lt;BR /&gt; [ /code ]&lt;BR /&gt;I use this as my standard for mixed numbers and to remove leading zeros&lt;BR /&gt;&lt;BR /&gt;Jim&amp;lt;/body&amp;gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2009 02:07:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-remove-the-leading-zero-s-in-the-alphanumeric-field/m-p/150513#M28514</guid>
      <dc:creator>jbeierschmitt</dc:creator>
      <dc:date>2009-07-29T02:07:31Z</dc:date>
    </item>
    <item>
      <title>How to remove the leading zero's in the alphanumeric field values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-remove-the-leading-zero-s-in-the-alphanumeric-field/m-p/150514#M28515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look here:&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/forums/t/17456.aspx"&gt;http://community.qlik.com/forums/t/17456.aspx&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2009 02:16:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-remove-the-leading-zero-s-in-the-alphanumeric-field/m-p/150514#M28515</guid>
      <dc:creator>disqr_rm</dc:creator>
      <dc:date>2009-07-29T02:16:31Z</dc:date>
    </item>
    <item>
      <title>How to remove the leading zero's in the alphanumeric field values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-remove-the-leading-zero-s-in-the-alphanumeric-field/m-p/150515#M28516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use this as a standard with no problems:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mid([GLPCA.RACCT],index([GLPCA.RACCT],left(PurgeChar([GLPCA.RACCT] , '0' ),1)))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2009 02:22:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-remove-the-leading-zero-s-in-the-alphanumeric-field/m-p/150515#M28516</guid>
      <dc:creator>jbeierschmitt</dc:creator>
      <dc:date>2009-07-29T02:22:16Z</dc:date>
    </item>
    <item>
      <title>How to remove the leading zero's in the alphanumeric field values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-remove-the-leading-zero-s-in-the-alphanumeric-field/m-p/150516#M28517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your solution .&lt;/P&gt;&lt;P&gt;It is working &lt;IMG alt="Yes" src="http://community.qlik.com/emoticons/emotion-21.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2009 02:25:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-remove-the-leading-zero-s-in-the-alphanumeric-field/m-p/150516#M28517</guid>
      <dc:creator />
      <dc:date>2009-07-29T02:25:53Z</dc:date>
    </item>
    <item>
      <title>How to remove the leading zero's in the alphanumeric field values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-remove-the-leading-zero-s-in-the-alphanumeric-field/m-p/150517#M28518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;seems to me like a bug. Have experimented and apparently QV interprets numbers with more than&lt;/P&gt;&lt;P&gt;14 leading "0"s always as a text, with lesser "0"s it would interpret a number like 0000000000000078517 as 78517.&lt;/P&gt;&lt;P&gt;You might use the Replace-function:&lt;/P&gt;&lt;P&gt;Replace(YourField, '00000000000000', '') AS TextOrNumber&lt;/P&gt;&lt;P&gt;but this will fail for e.g. 00000000000000078517A as it would display then 78517A and no longer the full string, which is probably needed.&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2009 02:33:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-remove-the-leading-zero-s-in-the-alphanumeric-field/m-p/150517#M28518</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2009-07-29T02:33:33Z</dc:date>
    </item>
    <item>
      <title>How to remove the leading zero's in the alphanumeric field values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-remove-the-leading-zero-s-in-the-alphanumeric-field/m-p/150518#M28519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is why I recommend using replace with trim combination. Otherwise you will have problem with "long" numbers.&lt;/P&gt;&lt;P&gt;replace(ltrim(replace(OldMaterial, '0', ' ')), ' ', 0) as NewMaterial&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2009 02:40:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-remove-the-leading-zero-s-in-the-alphanumeric-field/m-p/150518#M28519</guid>
      <dc:creator>disqr_rm</dc:creator>
      <dc:date>2009-07-29T02:40:21Z</dc:date>
    </item>
    <item>
      <title>How to remove the leading zero's in the alphanumeric field values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-remove-the-leading-zero-s-in-the-alphanumeric-field/m-p/150519#M28520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rakesh,&lt;/P&gt;&lt;P&gt;our messages crossed - pretty nice solution. Though depending on the meaning of the data it might be of importance whether you have 0000456A or 456A ......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2009 03:43:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-remove-the-leading-zero-s-in-the-alphanumeric-field/m-p/150519#M28520</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2009-07-29T03:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove the leading zero's in the alphanumeric field values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-remove-the-leading-zero-s-in-the-alphanumeric-field/m-p/150520#M28521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rakesh,&lt;/P&gt;&lt;P&gt;Thanks for the example.&amp;nbsp; It works great.&lt;/P&gt;&lt;P&gt;Thom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2012 13:30:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-remove-the-leading-zero-s-in-the-alphanumeric-field/m-p/150520#M28521</guid>
      <dc:creator>tmumaw</dc:creator>
      <dc:date>2012-12-05T13:30:44Z</dc:date>
    </item>
  </channel>
</rss>

