<?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 leading zeros without removing the zeros in the middle and end in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-remove-leading-zeros-without-removing-the-zeros-in-the/m-p/2083407#M88814</link>
    <description>&lt;P&gt;Hello, I am trying to remove leading zeros from the left of a string. I have values that look like 'GH54673045', 000005674505, MFE6453-GW, 000000000532, and 00034002GER. Could you please help me resolve this issue? I tried using the num function but it returns Null values. I also tried the Replace function but it removed the zeros in the middle. For example, 000000004230043 would return 42343 instead of 4230043&lt;/P&gt;</description>
    <pubDate>Tue, 13 Jun 2023 18:28:38 GMT</pubDate>
    <dc:creator>AquaCapriLyn</dc:creator>
    <dc:date>2023-06-13T18:28:38Z</dc:date>
    <item>
      <title>How to remove leading zeros without removing the zeros in the middle and end</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-remove-leading-zeros-without-removing-the-zeros-in-the/m-p/2083407#M88814</link>
      <description>&lt;P&gt;Hello, I am trying to remove leading zeros from the left of a string. I have values that look like 'GH54673045', 000005674505, MFE6453-GW, 000000000532, and 00034002GER. Could you please help me resolve this issue? I tried using the num function but it returns Null values. I also tried the Replace function but it removed the zeros in the middle. For example, 000000004230043 would return 42343 instead of 4230043&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 18:28:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-remove-leading-zeros-without-removing-the-zeros-in-the/m-p/2083407#M88814</guid>
      <dc:creator>AquaCapriLyn</dc:creator>
      <dc:date>2023-06-13T18:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove leading zeros without removing the zeros in the middle and end</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-remove-leading-zeros-without-removing-the-zeros-in-the/m-p/2083554#M88823</link>
      <description>&lt;P&gt;You may try something like:&lt;/P&gt;
&lt;P&gt;if(isnum(myField), mid(myField, findoneof(myField, '123456789')), myField)&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 06:30:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-remove-leading-zeros-without-removing-the-zeros-in-the/m-p/2083554#M88823</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2023-06-14T06:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove leading zeros without removing the zeros in the middle and end</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-remove-leading-zeros-without-removing-the-zeros-in-the/m-p/2083556#M88824</link>
      <description>&lt;P&gt;Hi, if there are no spaces in the codes you can convert all zeros to spaces, use ltrim to remove the initial spaces and convert again spaces to zeros:&lt;/P&gt;
&lt;P&gt;Replace(LTrim(Replace('FieldName','0', ' ')),' ', '0')&lt;/P&gt;
&lt;P&gt;You can also convert first all spaces to a non-used character and then return it back, like:&lt;/P&gt;
&lt;P&gt;Replace(Replace(LTrim(Replace(Replace('FieldName',' ','~'),'0', ' ')),' ', '0'),'~',' ')&lt;/P&gt;
&lt;P&gt;If after the fisrt zero will be always a number you can use:&lt;/P&gt;
&lt;P&gt;Mid('FieldName',FindOneOf('FieldName','123456789'))&lt;/P&gt;
&lt;P&gt;Else you can use:&lt;/P&gt;
&lt;P&gt;Mid('FieldName',FindOneOf(Upper('FieldName'),'123456789.-_ABCDEF...')) // complete with all possible characters except zero.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 06:35:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-remove-leading-zeros-without-removing-the-zeros-in-the/m-p/2083556#M88824</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2023-06-14T06:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove leading zeros without removing the zeros in the middle and end</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-remove-leading-zeros-without-removing-the-zeros-in-the/m-p/2083894#M88844</link>
      <description>&lt;P&gt;another way to start at the first character other than 0:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Mid(String,FindOneOf(String,PurgeChar(String,'0')))&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 14 Jun 2023 16:22:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-remove-leading-zeros-without-removing-the-zeros-in-the/m-p/2083894#M88844</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2023-06-14T16:22:01Z</dc:date>
    </item>
  </channel>
</rss>

