<?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: Adding zeros to number in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Adding-zeros-to-number/m-p/368530#M1177877</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you wanted to add 0's you could try something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;repeat('0', (10 - len(Field))) &amp;amp; Field as NewField&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then NewField will have the zero padding to fill out length 10 and should unify your results.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Apr 2012 18:51:21 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-04-25T18:51:21Z</dc:date>
    <item>
      <title>Adding zeros to number</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-zeros-to-number/m-p/368529#M1177876</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;Can you please help?&lt;/P&gt;&lt;P&gt;I have a field with a integer for example 0001234567 coming from a DB, and I have the same data field coming from&amp;nbsp; a excel spread sheet in the following format 1234567. &lt;/P&gt;&lt;P&gt;How can I add zeros to the left of the number coming form the excel sheet, or how do I take off zeros from the left data coming from the DB before loading the data so these two data fields can correspond to the same thing and be associated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some data coming from the Excel sheet in this field, are like 234567, then I would have to add 4 zeros to the begining of the number 0000234567 in order to be associated with the one coming from the DB. The one form the DB always come with a fixed amount of numbers, in this example 10 digits. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I look forward to hearing your suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thks a lot.&lt;/P&gt;&lt;P&gt;Jorge&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2020 18:02:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-zeros-to-number/m-p/368529#M1177876</guid>
      <dc:creator />
      <dc:date>2020-11-20T18:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Adding zeros to number</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-zeros-to-number/m-p/368530#M1177877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you wanted to add 0's you could try something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;repeat('0', (10 - len(Field))) &amp;amp; Field as NewField&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then NewField will have the zero padding to fill out length 10 and should unify your results.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2012 18:51:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-zeros-to-number/m-p/368530#M1177877</guid>
      <dc:creator />
      <dc:date>2012-04-25T18:51:21Z</dc:date>
    </item>
    <item>
      <title>Adding zeros to number</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-zeros-to-number/m-p/368531#M1177878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; To add zeros use&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num(FieldName,'0000000000') as NumFieldName&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; To remove zeros use&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num(FieldName) as NumFieldName&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2012 18:54:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-zeros-to-number/m-p/368531#M1177878</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-04-25T18:54:50Z</dc:date>
    </item>
    <item>
      <title>Adding zeros to number</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-zeros-to-number/m-p/368532#M1177879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you really need to?&amp;nbsp; I would have though QV would recognise 0001234567 as the number 1234567 and load it as such.&amp;nbsp; It would therefore link to the 1234567 from the Excel spreadsheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is not happening you could try Num(IntegerFieldFromDatabase)&amp;nbsp; during the load to convert to a number.&lt;/P&gt;&lt;P&gt;If that doesn't work then there is a solution for removing leading zeros &lt;A _jive_internal="true" href="https://community.qlik.com/message/36879#36879"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2012 19:04:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-zeros-to-number/m-p/368532#M1177879</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-04-25T19:04:56Z</dc:date>
    </item>
    <item>
      <title>Adding zeros to number</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-zeros-to-number/m-p/368533#M1177880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks a lot bapperson, that worked. Thanks very much as well for those that participated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2012 19:11:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-zeros-to-number/m-p/368533#M1177880</guid>
      <dc:creator />
      <dc:date>2012-04-25T19:11:11Z</dc:date>
    </item>
  </channel>
</rss>

