<?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: How To Remove Leading Zeros in a Number in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-To-Remove-Leading-Zeros-in-a-Number/m-p/729911#M1068856</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Hi Vinitha&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;you can perform below code in your existing work space. try to run below and check.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; NUMBER,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Num(NUMBER) as NUMBER1,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; NUM(Right(NUMBER, Len(NUMBER)-FindOneOf(NUMBER, '123456789')+1)) as NUMBER2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Inline&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; NUMBER&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; 00000978&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; 00001524&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; 00001024&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; 00012356&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&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;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Aug 2014 05:27:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-08-25T05:27:22Z</dc:date>
    <item>
      <title>How To Remove Leading Zeros in a Number</title>
      <link>https://community.qlik.com/t5/QlikView/How-To-Remove-Leading-Zeros-in-a-Number/m-p/729905#M1068850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a field with the following values&lt;/P&gt;&lt;P&gt;00000978&lt;/P&gt;&lt;P&gt;00001524&lt;/P&gt;&lt;P&gt;00001024&lt;/P&gt;&lt;P&gt;00012356&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field is in number format.&lt;/P&gt;&lt;P&gt;The length of the field is constant and it is 8.&lt;/P&gt;&lt;P&gt;I would like to remove the leading zeros and would like to have the values as follows:&lt;/P&gt;&lt;P&gt;978&lt;/P&gt;&lt;P&gt;1524&lt;/P&gt;&lt;P&gt;1024&lt;/P&gt;&lt;P&gt;12356&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help me to get the above output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vinitha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 13:24:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-To-Remove-Leading-Zeros-in-a-Number/m-p/729905#M1068850</guid>
      <dc:creator />
      <dc:date>2014-08-22T13:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: How To Remove Leading Zeros in a Number</title>
      <link>https://community.qlik.com/t5/QlikView/How-To-Remove-Leading-Zeros-in-a-Number/m-p/729906#M1068851</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;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Num(Num#(FieldName,'#,##0'),'#,##0') AS FieldName;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;Num(FieldName)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 13:29:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-To-Remove-Leading-Zeros-in-a-Number/m-p/729906#M1068851</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2014-08-22T13:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: How To Remove Leading Zeros in a Number</title>
      <link>https://community.qlik.com/t5/QlikView/How-To-Remove-Leading-Zeros-in-a-Number/m-p/729907#M1068852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the script below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; *, &lt;/SPAN&gt;&lt;STRONG style=": ; color: #800000; font-size: 8pt;"&gt;Number8digit&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;+0 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;As&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #800000; font-size: 8pt;"&gt;Number&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Inline&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt; Number8digit&lt;BR /&gt;00000978&lt;BR /&gt;00001524&lt;BR /&gt;00001024&lt;BR /&gt;00012356&lt;BR /&gt;]&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;IMG alt="Capture.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/65014_Capture.PNG.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 13:31:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-To-Remove-Leading-Zeros-in-a-Number/m-p/729907#M1068852</guid>
      <dc:creator>nagaiank</dc:creator>
      <dc:date>2014-08-22T13:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: How To Remove Leading Zeros in a Number</title>
      <link>https://community.qlik.com/t5/QlikView/How-To-Remove-Leading-Zeros-in-a-Number/m-p/729908#M1068853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; NUMBER,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Num(NUMBER) as NUMBER1,&lt;/P&gt;&lt;P&gt;&amp;nbsp; NUM(Right(NUMBER, Len(NUMBER)-FindOneOf(NUMBER, '123456789')+1)) as NUMBER2&lt;/P&gt;&lt;P&gt;Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;&amp;nbsp; NUMBER&lt;/P&gt;&lt;P&gt;&amp;nbsp; 00000978&lt;/P&gt;&lt;P&gt;&amp;nbsp; 00001524&lt;/P&gt;&lt;P&gt;&amp;nbsp; 00001024&lt;/P&gt;&lt;P&gt;&amp;nbsp; 00012356&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 13:37:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-To-Remove-Leading-Zeros-in-a-Number/m-p/729908#M1068853</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-08-22T13:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: How To Remove Leading Zeros in a Number</title>
      <link>https://community.qlik.com/t5/QlikView/How-To-Remove-Leading-Zeros-in-a-Number/m-p/729909#M1068854</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;You can try below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;replace(ltrim(replace(Number, '0', ' ')), ' ', 0) as New_Number;&lt;/P&gt;&lt;P&gt;LOAD * Inline [&lt;/P&gt;&lt;P&gt;Number&lt;/P&gt;&lt;P&gt;00000978&lt;/P&gt;&lt;P&gt;00001524&lt;/P&gt;&lt;P&gt;00001024&lt;/P&gt;&lt;P&gt;00012356&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;ASHFAQ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Aug 2014 09:53:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-To-Remove-Leading-Zeros-in-a-Number/m-p/729909#M1068854</guid>
      <dc:creator>ashfaq_haseeb</dc:creator>
      <dc:date>2014-08-24T09:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: How To Remove Leading Zeros in a Number</title>
      <link>https://community.qlik.com/t5/QlikView/How-To-Remove-Leading-Zeros-in-a-Number/m-p/729910#M1068855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Num(YourField)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;should be the easiest way.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Aug 2014 10:24:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-To-Remove-Leading-Zeros-in-a-Number/m-p/729910#M1068855</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-08-24T10:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: How To Remove Leading Zeros in a Number</title>
      <link>https://community.qlik.com/t5/QlikView/How-To-Remove-Leading-Zeros-in-a-Number/m-p/729911#M1068856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Hi Vinitha&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;you can perform below code in your existing work space. try to run below and check.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; NUMBER,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Num(NUMBER) as NUMBER1,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; NUM(Right(NUMBER, Len(NUMBER)-FindOneOf(NUMBER, '123456789')+1)) as NUMBER2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Inline&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; NUMBER&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; 00000978&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; 00001524&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; 00001024&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; 00012356&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&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;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2014 05:27:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-To-Remove-Leading-Zeros-in-a-Number/m-p/729911#M1068856</guid>
      <dc:creator />
      <dc:date>2014-08-25T05:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: How To Remove Leading Zeros in a Number</title>
      <link>https://community.qlik.com/t5/QlikView/How-To-Remove-Leading-Zeros-in-a-Number/m-p/729912#M1068857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mid(FieldValue, FindOneOf(&lt;SPAN style="font-size: 13.3333px;"&gt;FieldValue&lt;/SPAN&gt;,'123546789'))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2017 10:15:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-To-Remove-Leading-Zeros-in-a-Number/m-p/729912#M1068857</guid>
      <dc:creator>fabioporta</dc:creator>
      <dc:date>2017-12-07T10:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: How To Remove Leading Zeros in a Number</title>
      <link>https://community.qlik.com/t5/QlikView/How-To-Remove-Leading-Zeros-in-a-Number/m-p/1655033#M1068858</link>
      <description>&lt;P&gt;this worked for me:&lt;/P&gt;&lt;P&gt;Num(Num#(yourfield,'#,##0'),'#0') AS FieldName&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2019 13:58:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-To-Remove-Leading-Zeros-in-a-Number/m-p/1655033#M1068858</guid>
      <dc:creator>Femke</dc:creator>
      <dc:date>2019-12-06T13:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: How To Remove Leading Zeros in a Number</title>
      <link>https://community.qlik.com/t5/QlikView/How-To-Remove-Leading-Zeros-in-a-Number/m-p/1666452#M1068859</link>
      <description>&lt;P&gt;this one worked perfectly&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2020 20:27:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-To-Remove-Leading-Zeros-in-a-Number/m-p/1666452#M1068859</guid>
      <dc:creator>suepenick</dc:creator>
      <dc:date>2020-01-16T20:27:24Z</dc:date>
    </item>
    <item>
      <title>Re: How To Remove Leading Zeros in a Number</title>
      <link>https://community.qlik.com/t5/QlikView/How-To-Remove-Leading-Zeros-in-a-Number/m-p/1975739#M1220732</link>
      <description>&lt;P&gt;Text(Alt(FieldName + 0, FieldName)) as FieldName&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 08:42:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-To-Remove-Leading-Zeros-in-a-Number/m-p/1975739#M1220732</guid>
      <dc:creator>JeromeNagarro</dc:creator>
      <dc:date>2022-09-01T08:42:49Z</dc:date>
    </item>
  </channel>
</rss>

