<?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 do I remove preceeding zero's from Numbers in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-do-I-remove-preceeding-zero-s-from-Numbers/m-p/449605#M1164282</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another solution that I find easier to read is adding a zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;MyField+0 as MyField&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Sep 2012 22:10:50 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2012-09-27T22:10:50Z</dc:date>
    <item>
      <title>How do I remove preceeding zero's from Numbers</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-remove-preceeding-zero-s-from-Numbers/m-p/449603#M1164280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, in the data base I work with I have a mix of numbers where some have preceeding zeros and some dont for example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0000001311551 &amp;gt;&amp;gt;1311551&lt;/P&gt;&lt;P&gt;0000000454545 &amp;gt;&amp;gt;454545&lt;/P&gt;&lt;P&gt;1254550000101&amp;gt;&amp;gt;1254550000101&lt;/P&gt;&lt;P&gt;0000000045454&amp;gt;&amp;gt;45454&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The numbers after the &amp;gt;&amp;gt; are the way I want to see the numbers in my report, How do I go about this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2012 16:08:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-remove-preceeding-zero-s-from-Numbers/m-p/449603#M1164280</guid>
      <dc:creator />
      <dc:date>2012-09-27T16:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove preceeding zero's from Numbers</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-remove-preceeding-zero-s-from-Numbers/m-p/449604#M1164281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="font-family: monospace; color: blue;"&gt;replace&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: monospace; background-color: #f7f7f7;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: monospace; color: blue;"&gt;ltrim&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: monospace; background-color: #f7f7f7;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: monospace; color: blue;"&gt;replace&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: monospace; background-color: #f7f7f7;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: monospace; color: #990000;"&gt;MyField&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: monospace; background-color: #f7f7f7;"&gt;,'0',' ')),' ','0') &lt;/SPAN&gt;&lt;SPAN style="font-family: monospace; color: blue;"&gt;&lt;STRONG&gt;AS &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: monospace; color: #990000;"&gt;MyField&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This code first uses the replace() function to replace all zeros in the field with a space and then uses the ltrim() function which removes spacing from the begining of a string only. We then use replace() again to convert any remaining spaces back to zeros.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Source: &lt;A class="loading" href="http://www.qlikviewaddict.com/2012/03/removing-leading-zeros.html"&gt;http://www.qlikviewaddict.com/2012/03/removing-leading-zeros.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2012 16:22:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-remove-preceeding-zero-s-from-Numbers/m-p/449604#M1164281</guid>
      <dc:creator />
      <dc:date>2012-09-27T16:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove preceeding zero's from Numbers</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-remove-preceeding-zero-s-from-Numbers/m-p/449605#M1164282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another solution that I find easier to read is adding a zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;MyField+0 as MyField&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2012 22:10:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-remove-preceeding-zero-s-from-Numbers/m-p/449605#M1164282</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2012-09-27T22:10:50Z</dc:date>
    </item>
  </channel>
</rss>

