<?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 leading zeros in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/leading-zeros/m-p/218850#M71915</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alan,&lt;/P&gt;&lt;P&gt;Fortunately, QV is intelligent enough to relate 0001234 and 1234. Still you can use num(key) across for the generalization or convert to numeric while bringign to QVD.&lt;/P&gt;&lt;P&gt;--Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 17 Oct 2009 00:07:07 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-10-17T00:07:07Z</dc:date>
    <item>
      <title>leading zeros</title>
      <link>https://community.qlik.com/t5/QlikView/leading-zeros/m-p/218848#M71913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I am pulling together a report from a number of different sources. My key field joinng all my tables together is a number. In some of the data files it might be represented as 001234 and in another it will be 1234.&lt;/P&gt;&lt;P&gt;I am sure that this is a common problem and rather than try and re-invent the wheel I thought I would ask is what is the best way to solve this problem.&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;P&gt;Alan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2009 23:57:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/leading-zeros/m-p/218848#M71913</guid>
      <dc:creator />
      <dc:date>2009-10-16T23:57:53Z</dc:date>
    </item>
    <item>
      <title>leading zeros</title>
      <link>https://community.qlik.com/t5/QlikView/leading-zeros/m-p/218849#M71914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try to eliminate zeros&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;replace(ltrim(replace(fieldname, '0', ' ')), ' ', 0) &lt;B&gt;as&lt;/B&gt; fieldname1&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;you can add the number of zeros&lt;/P&gt;&lt;P&gt;text&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;('00'&amp;amp;([fieldname])) as fieldname1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Oct 2009 00:04:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/leading-zeros/m-p/218849#M71914</guid>
      <dc:creator />
      <dc:date>2009-10-17T00:04:50Z</dc:date>
    </item>
    <item>
      <title>leading zeros</title>
      <link>https://community.qlik.com/t5/QlikView/leading-zeros/m-p/218850#M71915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alan,&lt;/P&gt;&lt;P&gt;Fortunately, QV is intelligent enough to relate 0001234 and 1234. Still you can use num(key) across for the generalization or convert to numeric while bringign to QVD.&lt;/P&gt;&lt;P&gt;--Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Oct 2009 00:07:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/leading-zeros/m-p/218850#M71915</guid>
      <dc:creator />
      <dc:date>2009-10-17T00:07:07Z</dc:date>
    </item>
    <item>
      <title>leading zeros</title>
      <link>https://community.qlik.com/t5/QlikView/leading-zeros/m-p/218851#M71916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is the field named "001234" and "1234" or are the values (contents) of a field filled "001234", "1234", meaning the same key ...?&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Oct 2009 00:10:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/leading-zeros/m-p/218851#M71916</guid>
      <dc:creator />
      <dc:date>2009-10-17T00:10:27Z</dc:date>
    </item>
    <item>
      <title>leading zeros</title>
      <link>https://community.qlik.com/t5/QlikView/leading-zeros/m-p/218852#M71917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;Arun Paduva wrote:&lt;BR /&gt;Alan,&lt;BR /&gt;Fortunately, QV is intelligent enough to relate 0001234 and 1234. Still you can use num(key) across for the generalization or convert to numeric while bringign to QVD.&lt;BR /&gt;--Arun&amp;lt;div&amp;gt;&amp;lt;/div&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, Arun is right, QlikView handles "001234" and "01234" and "1234" as the same value and matches the values correctly.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Oct 2009 00:16:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/leading-zeros/m-p/218852#M71917</guid>
      <dc:creator />
      <dc:date>2009-10-17T00:16:44Z</dc:date>
    </item>
    <item>
      <title>leading zeros</title>
      <link>https://community.qlik.com/t5/QlikView/leading-zeros/m-p/218853#M71918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all for your help, I had managed to remove all the leading zeros before the replies and it turns out that I have a different problem. I thought it was because the records weren't matching but if QV is clever enough to match then I need to look elswhere. &lt;IMG alt="Sad" src="http://community.qlik.com/emoticons/emotion-6.gif" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks all&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Oct 2009 00:23:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/leading-zeros/m-p/218853#M71918</guid>
      <dc:creator />
      <dc:date>2009-10-17T00:23:55Z</dc:date>
    </item>
    <item>
      <title>leading zeros</title>
      <link>https://community.qlik.com/t5/QlikView/leading-zeros/m-p/218854#M71919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What if I don't want QlikView to handle this situation? I have a scenario where " A123" represents "Apples" and "A123" represents apricots. When I move the data from the database into the QVD, QlikView drops the leading space off first value. This causes cartesians because my tables are orders and items. "A123" is the item_code which the two tables are joined on. I have tried coding "text(item_code)" but QV still drops the values. Is there a way to prevent QV from interpretting the data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jul 2010 17:38:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/leading-zeros/m-p/218854#M71919</guid>
      <dc:creator />
      <dc:date>2010-07-13T17:38:31Z</dc:date>
    </item>
    <item>
      <title>leading zeros</title>
      <link>https://community.qlik.com/t5/QlikView/leading-zeros/m-p/218855#M71920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SET Verbatim = 1; // turns off automatic trim&lt;BR /&gt;SET Verbatim = 0; // turns back on automatic trim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jul 2010 20:07:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/leading-zeros/m-p/218855#M71920</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-07-13T20:07:36Z</dc:date>
    </item>
    <item>
      <title>leading zeros</title>
      <link>https://community.qlik.com/t5/QlikView/leading-zeros/m-p/218856#M71921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much. Relatively new to QV and have gotten "surprised" by this a couple of times already. Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jul 2010 21:52:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/leading-zeros/m-p/218856#M71921</guid>
      <dc:creator />
      <dc:date>2010-07-13T21:52:05Z</dc:date>
    </item>
    <item>
      <title>leading zeros</title>
      <link>https://community.qlik.com/t5/QlikView/leading-zeros/m-p/218857#M71922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ALang&lt;/P&gt;&lt;P&gt;I would also think about changing to a new key field (either in QV or your source), the difference between "ABC123" and " ABC123" is very small &amp;amp; might be a source of frustration for the users.&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Bruce&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jul 2010 21:56:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/leading-zeros/m-p/218857#M71922</guid>
      <dc:creator />
      <dc:date>2010-07-13T21:56:24Z</dc:date>
    </item>
    <item>
      <title>leading zeros</title>
      <link>https://community.qlik.com/t5/QlikView/leading-zeros/m-p/218858#M71923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, I checked for that. Unfortunately for me, I am a consumer of the data. To further complicate matters, both the parent and child have two fields (both varchar) that indicate a records uniqueness, so I am already creating a composite key manually for QV. Part of the key is plan codes for medical plans. The application allows them to manually enter the plan codes which will be used as the primary key to be perpetuated. The database has a constraint on the plan code. The field is varchar however, so when one user enter "HYN" and another " HYN", the constraint allowed it.&lt;/P&gt;&lt;P&gt;The life lesson I have had to explain this to my business users several times: QV does not cover/eliminate underlying data or system issues; it probably exposes them faster.&lt;/P&gt;&lt;P&gt;Thanks Bruce&lt;/P&gt;&lt;P&gt;As an aside, the contributors on these forums have been an invaluable resource for the developers at my company. We have only been using QV for about 3 months and are trying to get up to speed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jul 2010 22:09:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/leading-zeros/m-p/218858#M71923</guid>
      <dc:creator />
      <dc:date>2010-07-13T22:09:20Z</dc:date>
    </item>
    <item>
      <title>leading zeros</title>
      <link>https://community.qlik.com/t5/QlikView/leading-zeros/m-p/218859#M71924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this case how we diffentiate these numbers as individual..Is there any way..I want to keep 001234,01234 and 1234 number as different numbers.By default QV will assume all these number as one i.e., 1234&lt;/P&gt;&lt;P&gt;pls provide the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2011 12:08:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/leading-zeros/m-p/218859#M71924</guid>
      <dc:creator />
      <dc:date>2011-03-28T12:08:53Z</dc:date>
    </item>
    <item>
      <title>leading zeros</title>
      <link>https://community.qlik.com/t5/QlikView/leading-zeros/m-p/218860#M71925</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;I fixed this same problem bij loading the it as text.&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;text(FIELD) as FIELD&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2011 12:17:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/leading-zeros/m-p/218860#M71925</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-03-28T12:17:42Z</dc:date>
    </item>
    <item>
      <title>leading zeros</title>
      <link>https://community.qlik.com/t5/QlikView/leading-zeros/m-p/218861#M71926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Text(NumberField) AS NumberField&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;That will load 001234 as a string different to 1234 or 00001234.&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2011 12:19:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/leading-zeros/m-p/218861#M71926</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-03-28T12:19:02Z</dc:date>
    </item>
    <item>
      <title>leading zeros</title>
      <link>https://community.qlik.com/t5/QlikView/leading-zeros/m-p/218862#M71927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry to dig out an old thread, i wanted to avoid opening yet another thread concerning leading zeros in the dataset.&lt;/P&gt;&lt;P&gt;The suggestions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load text(column) as column;&lt;/P&gt;&lt;P&gt;sql select column from table;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;seem to be the canonical answer to the question so far in the threads i found. For this example (extracting a column 1:1 into qlikview), it works perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, i have a slight problem in my script, as a lot of functions are called in sql.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, one line in my script right now is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sql select nvl(possible_entry1,possible_entry2) as used_entry from table;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(nvl is an oracle function that gives possible_entry1 if it is not NULL and possible_entry2 otherwise).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i have the same problem again: possible_entry1 and possible_entry2 can have "1" and "001" meaning different things.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;however:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load text(used_entry) as used_entry;&lt;/P&gt;&lt;P&gt;﻿﻿﻿sql select nvl(possible_entry1,possible_entry2) as used_entry from table;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gives an error when executing the "sql"-Line:&lt;/P&gt;&lt;P&gt;Field not found - &amp;lt;used_entry&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I apply the Text-Function in this example? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"load text (nvl(...))" does not work because the Qlik-View does not know about nvl, this part is done on the oracle-side.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2012 16:37:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/leading-zeros/m-p/218862#M71927</guid>
      <dc:creator />
      <dc:date>2012-02-20T16:37:39Z</dc:date>
    </item>
    <item>
      <title>leading zeros</title>
      <link>https://community.qlik.com/t5/QlikView/leading-zeros/m-p/218863#M71928</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;Remove the LOAD part and leave only the SQL part in your script. Note that fields are case sensitive in QlikView, and some drivers are not, so they will return likewise irrespective you use select FIELD or select field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2012 15:52:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/leading-zeros/m-p/218863#M71928</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2012-02-27T15:52:12Z</dc:date>
    </item>
    <item>
      <title>leading zeros</title>
      <link>https://community.qlik.com/t5/QlikView/leading-zeros/m-p/218864#M71929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Leaving out the load part gets me back to square one: The Leading Zeros are mixed together, meaning that two values "0003" and "3" in the data end up either as "3" in qvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to preserve the leading zeros, you definitely need the "load Text()"-Part.&lt;/P&gt;&lt;P&gt;This has been solved, for example in:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/message/44902#44902"&gt;http://community.qlik.com/message/44902#44902&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/message/44007#44007"&gt;http://community.qlik.com/message/44007#44007&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/message/2572#2572"&gt;http://community.qlik.com/message/2572#2572&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem was that i thought this solution would not work if the column is not loaded directly (e.g. "sql select columname from table"), but as part of a function (e.g.: "select nvl(column1, column2) as somecolumn").&lt;/P&gt;&lt;P&gt;The mistake was that (with the oracle-driver) the columns are returned all in Upper Case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the suggestions from the other threads still hold true, if you want to preserve leading zeros, the easiest working solution i found so far is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD TEXT(SOMECOLUMN) AS SOMECOLUMN, COLUMN3, COLUMN4;&lt;/P&gt;&lt;P&gt;SQL SELECT NVL(COLUMN1, COLUMN2), AS SOMECOLUMN,COLUMN3,COLUMN4&amp;nbsp; FROM TABLE;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution works for me for all columns i had trouble with when creating the thread.&lt;/P&gt;&lt;P&gt;Thanks again to everyone involved, especially for jagan for pushing me in the right direction and qlikuser14 for spotting the real error in my script (forgetting that qlikview is case sensitive while oracle is not).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2012 16:19:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/leading-zeros/m-p/218864#M71929</guid>
      <dc:creator />
      <dc:date>2012-02-27T16:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: leading zeros</title>
      <link>https://community.qlik.com/t5/QlikView/leading-zeros/m-p/218865#M71930</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;That is right, you either need the Text() or Num() function to keep leading zeroes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;Num(FieldName, '00000') // i.e.: in case your code is fixed to 5 digits&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But removing the LOAD will help you check the names as they are retrieved by the driver and put into QlikView memory, which sometimes helps to understand where is the renaming problem (SQL or LOAD).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2012 16:29:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/leading-zeros/m-p/218865#M71930</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2012-02-27T16:29:12Z</dc:date>
    </item>
  </channel>
</rss>

