<?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: Text fields containing numbers with leading zeros are imported as numeric though in Excel they are declared text in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Text-fields-containing-numbers-with-leading-zeros-are-imported/m-p/2085824#M1224071</link>
    <description>&lt;P&gt;you can then convert it again back to text TEXT(NUM()),&amp;nbsp; the other way in the script is from&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6148"&gt;@rwunderlich&lt;/a&gt;&amp;nbsp; :&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/App-Development/Is-it-possible-to-load-all-fields-in-text-format-while-reading/td-p/1795731" target="_blank"&gt;https://community.qlik.com/t5/App-Development/Is-it-possible-to-load-all-fields-in-text-format-while-reading/td-p/1795731&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 20 Jun 2023 13:39:27 GMT</pubDate>
    <dc:creator>QGTFS</dc:creator>
    <dc:date>2023-06-20T13:39:27Z</dc:date>
    <item>
      <title>Text fields containing numbers with leading zeros are imported as numeric though in Excel they are declared text</title>
      <link>https://community.qlik.com/t5/QlikView/Text-fields-containing-numbers-with-leading-zeros-are-imported/m-p/2085480#M1224051</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have the following problem. I am importing an Excel file that has 2 columns specifically formatted as text (I used the function TEXT) containing numbers with leading zeros, so that the field length is 5 characters (for instance the FIPS for US Counties), and Qlik though in the preview is showing me the leading zeros, it is importing the sheet without them and turns them into numeric, though I need them to be let as text.&lt;/P&gt;
&lt;P&gt;Is there any possibility to let Qlik "know" that that field has to remain text, and not be turned into numeric, and thus the leading 0s remain too.&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2023 19:39:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-fields-containing-numbers-with-leading-zeros-are-imported/m-p/2085480#M1224051</guid>
      <dc:creator>bmarin</dc:creator>
      <dc:date>2023-06-19T19:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: Text fields containing numbers with leading zeros are imported as numeric though in Excel they are declared text</title>
      <link>https://community.qlik.com/t5/QlikView/Text-fields-containing-numbers-with-leading-zeros-are-imported/m-p/2085493#M1224053</link>
      <description>&lt;P&gt;Are you using the Text() function in your Load statement?&lt;/P&gt;
&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2023 21:23:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-fields-containing-numbers-with-leading-zeros-are-imported/m-p/2085493#M1224053</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2023-06-19T21:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: Text fields containing numbers with leading zeros are imported as numeric though in Excel they are declared text</title>
      <link>https://community.qlik.com/t5/QlikView/Text-fields-containing-numbers-with-leading-zeros-are-imported/m-p/2085607#M1224058</link>
      <description>&lt;P&gt;One way to manipulate your text to remove leading zero's could be to use substring and to detect if zeros are leading ( index(text,'0')&amp;gt;0).&lt;/P&gt;
&lt;P&gt;Another way might be to convert your text to numeric and then back to text.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2023 07:29:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-fields-containing-numbers-with-leading-zeros-are-imported/m-p/2085607#M1224058</guid>
      <dc:creator>QGTFS</dc:creator>
      <dc:date>2023-06-20T07:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: Text fields containing numbers with leading zeros are imported as numeric though in Excel they are declared text</title>
      <link>https://community.qlik.com/t5/QlikView/Text-fields-containing-numbers-with-leading-zeros-are-imported/m-p/2085809#M1224067</link>
      <description>&lt;P&gt;No, I just load the Excel sheet as it is. The cells that are converted automatically by Qlik were obtained using the Excel function TEXT(cell, '00000'), so I was expecting that Qlik respects this.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2023 13:25:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-fields-containing-numbers-with-leading-zeros-are-imported/m-p/2085809#M1224067</guid>
      <dc:creator>bmarin</dc:creator>
      <dc:date>2023-06-20T13:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: Text fields containing numbers with leading zeros are imported as numeric though in Excel they are declared text</title>
      <link>https://community.qlik.com/t5/QlikView/Text-fields-containing-numbers-with-leading-zeros-are-imported/m-p/2085812#M1224068</link>
      <description>&lt;P&gt;But I need the leading zeroes, and I need the field to stay as text as it was declared on the Excel sheet&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2023 13:28:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-fields-containing-numbers-with-leading-zeros-are-imported/m-p/2085812#M1224068</guid>
      <dc:creator>bmarin</dc:creator>
      <dc:date>2023-06-20T13:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: Text fields containing numbers with leading zeros are imported as numeric though in Excel they are declared text</title>
      <link>https://community.qlik.com/t5/QlikView/Text-fields-containing-numbers-with-leading-zeros-are-imported/m-p/2085816#M1224069</link>
      <description>&lt;P&gt;Sorry, I misunderstood. There's a way to retain your format although not text, but with&amp;nbsp;&lt;SPAN&gt;NUM(YourField,'00000')&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2023 13:32:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-fields-containing-numbers-with-leading-zeros-are-imported/m-p/2085816#M1224069</guid>
      <dc:creator>QGTFS</dc:creator>
      <dc:date>2023-06-20T13:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: Text fields containing numbers with leading zeros are imported as numeric though in Excel they are declared text</title>
      <link>https://community.qlik.com/t5/QlikView/Text-fields-containing-numbers-with-leading-zeros-are-imported/m-p/2085821#M1224070</link>
      <description>&lt;P&gt;I saw in other discussions about the function NUM, however I would need that the field stays text simply, without any conversion of any kind. There is no possibility in Qlik to specify visually if a field has to have a certain type, in this instance text?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2023 13:35:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-fields-containing-numbers-with-leading-zeros-are-imported/m-p/2085821#M1224070</guid>
      <dc:creator>bmarin</dc:creator>
      <dc:date>2023-06-20T13:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: Text fields containing numbers with leading zeros are imported as numeric though in Excel they are declared text</title>
      <link>https://community.qlik.com/t5/QlikView/Text-fields-containing-numbers-with-leading-zeros-are-imported/m-p/2085824#M1224071</link>
      <description>&lt;P&gt;you can then convert it again back to text TEXT(NUM()),&amp;nbsp; the other way in the script is from&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6148"&gt;@rwunderlich&lt;/a&gt;&amp;nbsp; :&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/App-Development/Is-it-possible-to-load-all-fields-in-text-format-while-reading/td-p/1795731" target="_blank"&gt;https://community.qlik.com/t5/App-Development/Is-it-possible-to-load-all-fields-in-text-format-while-reading/td-p/1795731&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2023 13:39:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-fields-containing-numbers-with-leading-zeros-are-imported/m-p/2085824#M1224071</guid>
      <dc:creator>QGTFS</dc:creator>
      <dc:date>2023-06-20T13:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: Text fields containing numbers with leading zeros are imported as numeric though in Excel they are declared text</title>
      <link>https://community.qlik.com/t5/QlikView/Text-fields-containing-numbers-with-leading-zeros-are-imported/m-p/2085866#M1224072</link>
      <description>&lt;P&gt;I find that it would be better to have all fields imported as text, and thus there is no loss of data, no? I find that some fields are imported as text, as the cell type indicates, and some are converted to numeric , thus loosing the leading zeros. In geographical applications, indicators are in text format and have leading 0s. For instance the County FIPS are a chain of 5 characters, and it is important that they stay like that, i.e. text (chain of characters).&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2023 14:42:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-fields-containing-numbers-with-leading-zeros-are-imported/m-p/2085866#M1224072</guid>
      <dc:creator>bmarin</dc:creator>
      <dc:date>2023-06-20T14:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: Text fields containing numbers with leading zeros are imported as numeric though in Excel they are declared text</title>
      <link>https://community.qlik.com/t5/QlikView/Text-fields-containing-numbers-with-leading-zeros-are-imported/m-p/2085882#M1224073</link>
      <description>&lt;P&gt;Unfortunately, I haven't found much more than this :&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-App-Dev/Loading-text-data-but-converted-to-numbers-from-excel/m-p/524067" target="_blank"&gt;https://community.qlik.com/t5/QlikView-App-Dev/Loading-text-data-but-converted-to-numbers-from-excel/m-p/524067&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;It seems there's no real way around it. You can check the format qlikview use to load your field also.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-App-Dev/Checking-to-see-if-the-data-is-text-or-a-number-in-peek/m-p/735932/highlight/true" target="_blank"&gt;https://community.qlik.com/t5/QlikView-App-Dev/Checking-to-see-if-the-data-is-text-or-a-number-in-peek/m-p/735932/highlight/true&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Other than the previously mentioned I don't know other solutions that may work.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2023 15:24:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-fields-containing-numbers-with-leading-zeros-are-imported/m-p/2085882#M1224073</guid>
      <dc:creator>QGTFS</dc:creator>
      <dc:date>2023-06-20T15:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: Text fields containing numbers with leading zeros are imported as numeric though in Excel they are declared text</title>
      <link>https://community.qlik.com/t5/QlikView/Text-fields-containing-numbers-with-leading-zeros-are-imported/m-p/2085893#M1224074</link>
      <description>&lt;P&gt;Thank you very much.&lt;/P&gt;
&lt;P&gt;I will check those links and let you know how they work for me, OK?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2023 16:14:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-fields-containing-numbers-with-leading-zeros-are-imported/m-p/2085893#M1224074</guid>
      <dc:creator>bmarin</dc:creator>
      <dc:date>2023-06-20T16:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: Text fields containing numbers with leading zeros are imported as numeric though in Excel they are declared text</title>
      <link>https://community.qlik.com/t5/QlikView/Text-fields-containing-numbers-with-leading-zeros-are-imported/m-p/2085986#M1224076</link>
      <description>&lt;P&gt;If you wish to retain the leading zeros, you should use the Text() function in the Qlik Load statement. For example&lt;/P&gt;
&lt;P&gt;Load&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Name,&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Text(FIPS) as FIPS,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; ...&lt;/P&gt;
&lt;P&gt;When loading excel, all data is converted to numeric, when possible, regardless of the excel formatting.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For numeric values, Qlik uses the first string representation loaded as the display value for a given numeric value. This behavior can make it appear that "some are getting converted and some are not". Kinda of crazy making if you don't understand the rule.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To demonstrate, try this script:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;LOAD *, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; Text(F1) as TextF1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Inline [&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ID, F1, F2&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;a, 001, 99&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;b, 1, 0099&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;c, 2, 098&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;d, 002, 98&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;];&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;And the result is:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rwunderlich_0-1687291553826.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/110579iE1238021E09A5230/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rwunderlich_0-1687291553826.png" alt="rwunderlich_0-1687291553826.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Rob&lt;BR /&gt;&lt;A href="http://www.easyqlik.com" target="_blank"&gt;http://www.easyqlik.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://masterssummit.com" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://qlikviewcookbook.com" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2023 20:07:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-fields-containing-numbers-with-leading-zeros-are-imported/m-p/2085986#M1224076</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2023-06-20T20:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: Text fields containing numbers with leading zeros are imported as numeric though in Excel they are declared text</title>
      <link>https://community.qlik.com/t5/QlikView/Text-fields-containing-numbers-with-leading-zeros-are-imported/m-p/2085990#M1224077</link>
      <description>&lt;P&gt;Thank you for your reply.&lt;/P&gt;
&lt;P&gt;I will try approach when loading the Excel spreadsheet, and see what happens.&lt;/P&gt;
&lt;P&gt;I would be happier though if Qlik would not convert all data as it sees fit, and ask me how the importation should be done. It would be more user friendly.&lt;/P&gt;
&lt;P&gt;Having to use scripts in order to load a spreadsheet that is already formatted as it should in order to have the importation done without any headaches is a bit of a disappointment for someone that just started to use Qlik, in terms of user friendliness and ease of use of the tool.&lt;/P&gt;
&lt;P&gt;Thank you again, and I will let you know how it goes.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2023 20:23:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-fields-containing-numbers-with-leading-zeros-are-imported/m-p/2085990#M1224077</guid>
      <dc:creator>bmarin</dc:creator>
      <dc:date>2023-06-20T20:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: Text fields containing numbers with leading zeros are imported as numeric though in Excel they are declared text</title>
      <link>https://community.qlik.com/t5/QlikView/Text-fields-containing-numbers-with-leading-zeros-are-imported/m-p/2086011#M1224080</link>
      <description>&lt;P&gt;Qlik's interpretation decisions can seem unexpected at first. They do have a dark side and a light side. For example, Qlik is excellent at automatically interpreting dates and storing data efficiently.&amp;nbsp; Qlik only considers databases to have useful "type" information. Excel is treated like any old text file. The excel formatting is not considered to be type information. Here's the doc on the rules.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense/May2023/Subsystems/Hub/Content/Sense_Hub/Scripting/number-interpretation.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense/May2023/Subsystems/Hub/Content/Sense_Hub/Scripting/number-interpretation.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2023 22:04:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-fields-containing-numbers-with-leading-zeros-are-imported/m-p/2086011#M1224080</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2023-06-20T22:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: Text fields containing numbers with leading zeros are imported as numeric though in Excel they are declared text</title>
      <link>https://community.qlik.com/t5/QlikView/Text-fields-containing-numbers-with-leading-zeros-are-imported/m-p/2087215#M1224099</link>
      <description>&lt;P&gt;Your solution works great for files of text type (e.g. CSV), and also in Excel, if the type of cells was not declared properly.&lt;/P&gt;
&lt;P&gt;For Excel on the other hand, I found another solution that is more proper to Excel which is to click the whole column to mark it, and right click on the header. Click on "Format cells ...", and select Text. I found out that Excel, for some reason, though the cells were obtained using the function TEXT, they are not completely text.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 13:19:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-fields-containing-numbers-with-leading-zeros-are-imported/m-p/2087215#M1224099</guid>
      <dc:creator>bmarin</dc:creator>
      <dc:date>2023-06-23T13:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: Text fields containing numbers with leading zeros are imported as numeric though in Excel they are declared text</title>
      <link>https://community.qlik.com/t5/QlikView/Text-fields-containing-numbers-with-leading-zeros-are-imported/m-p/2109784#M1224470</link>
      <description>&lt;P&gt;Hi Rob&lt;/P&gt;
&lt;P&gt;I have an Account Number that is mostly numeric, but does also contain leading zeros in other instances. Is there a way I can specify the data type to be text, once at the beginning of the script, or do I have to make it text(AccountNumber) each time I bring in a new piece of data?&lt;/P&gt;
&lt;P&gt;Then my second question - I now have text saved as a very small number, so it's showing&amp;nbsp; something like 1.1798759475, for example. Is there anyway I can get back to the original number or at least part of it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 06:49:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-fields-containing-numbers-with-leading-zeros-are-imported/m-p/2109784#M1224470</guid>
      <dc:creator>LynLuyt</dc:creator>
      <dc:date>2023-08-25T06:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Text fields containing numbers with leading zeros are imported as numeric though in Excel they are declared text</title>
      <link>https://community.qlik.com/t5/QlikView/Text-fields-containing-numbers-with-leading-zeros-are-imported/m-p/2112933#M1224490</link>
      <description>&lt;P&gt;I believe you have to use text(AccountNumber) each time you load a new value.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not following the small number question.&amp;nbsp; Can you post what you think the 1.1798759475 value would look like as the original number?&lt;/P&gt;
&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Mon, 04 Sep 2023 15:06:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-fields-containing-numbers-with-leading-zeros-are-imported/m-p/2112933#M1224490</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2023-09-04T15:06:23Z</dc:date>
    </item>
  </channel>
</rss>

