<?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: Leading 0 in Text field Qlikview transforms data incorrectly in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Leading-0-in-Text-field-Qlikview-transforms-data-incorrectly/m-p/331627#M122189</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;QV is interpreting the field as a number and once converted the leading zero is lost. This is the same as Excel. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the only way (that I know of) is to use text() in your initial load as well. Only fields which look like numbers but should be treated as text will require this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use *, but will need one extra field for text(partnum) and jump through a couple of extra hoops:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Text(partnum) As TPartNum&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;FROM ...;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Field PartNum;&lt;/P&gt;&lt;P&gt;RENAME Field TPartNum to PartNum;&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;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Aug 2012 10:55:47 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2012-08-01T10:55:47Z</dc:date>
    <item>
      <title>Leading 0 in Text field Qlikview transforms data incorrectly</title>
      <link>https://community.qlik.com/t5/QlikView/Leading-0-in-Text-field-Qlikview-transforms-data-incorrectly/m-p/331626#M122188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having an issue where Qlikview is acting oddly. I have a part number field from the data base that is a text field. Occasionally a number is entered here. Qlikview is then doing the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Part in Database:&lt;/P&gt;&lt;P&gt;08491710&lt;/P&gt;&lt;P&gt;8491710&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are two separate Part numbers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qlikview displays:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Part in Qlikview:&lt;/P&gt;&lt;P&gt;08491710&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is causing issues now. I have discovered that this happens soely in Qliview because loading the field like: text(partnum) as partnum will display the correct values. However, the first time I load this table, I store the entire table into a QVD using just:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select *,&lt;/P&gt;&lt;P&gt;From ......;&lt;/P&gt;&lt;P&gt;Store ... into ...;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is then converting it with qlikview so that I can no longer apply the text command to this field. I tried loading from the QVD using text(partnum) as partnum and it does not show correctly. Is this another situation where I will have to put the entire Select statement into a Load statement and apply text() to every field that should be a string?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This seems a bit ridiculous as this makes it so I can no longer user the * command, and now have to manually figure out what fields are text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: I tested verbatim and it has no effect on this issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2012 10:42:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Leading-0-in-Text-field-Qlikview-transforms-data-incorrectly/m-p/331626#M122188</guid>
      <dc:creator />
      <dc:date>2012-08-01T10:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: Leading 0 in Text field Qlikview transforms data incorrectly</title>
      <link>https://community.qlik.com/t5/QlikView/Leading-0-in-Text-field-Qlikview-transforms-data-incorrectly/m-p/331627#M122189</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;QV is interpreting the field as a number and once converted the leading zero is lost. This is the same as Excel. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the only way (that I know of) is to use text() in your initial load as well. Only fields which look like numbers but should be treated as text will require this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use *, but will need one extra field for text(partnum) and jump through a couple of extra hoops:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Text(partnum) As TPartNum&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;FROM ...;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Field PartNum;&lt;/P&gt;&lt;P&gt;RENAME Field TPartNum to PartNum;&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;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2012 10:55:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Leading-0-in-Text-field-Qlikview-transforms-data-incorrectly/m-p/331627#M122189</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-08-01T10:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: Leading 0 in Text field Qlikview transforms data incorrectly</title>
      <link>https://community.qlik.com/t5/QlikView/Leading-0-in-Text-field-Qlikview-transforms-data-incorrectly/m-p/331628#M122190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is actually the opposite of what you said. It is not dropping the leading 0, it is adding it to the part that does not have a leading 0. I am pretty sure it is the same thing however. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for this portion of your script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Field PartNum;&lt;/P&gt;&lt;P&gt;RENAME Field TPartNum to PartNum;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would place this after the SELECT statement and before the STORE statement correct? I have a lot of cases where all I do is &lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;Select *&lt;/P&gt;&lt;P&gt;From ....;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Store ... into ...;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Final:&lt;/P&gt;&lt;P&gt;Load abc,&lt;/P&gt;&lt;P&gt;bbc,&lt;/P&gt;&lt;P&gt;ddc &lt;/P&gt;&lt;P&gt;Resident Temp;&lt;/P&gt;&lt;P&gt;Drop Table Temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am assuming in these cases I will need to add a Load section to the Temp table to convert these fields to text, and then store it so that I do not lose the data during the store. Do you think Qlikview is smart enough to maintain this field whenever I load data from the QVD after this, or will I this still need to apply the Text() function any time I load from the QVD as well?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qlikview's handling of leading/trailing spaces and 0's is becoming a major pain...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2012 11:04:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Leading-0-in-Text-field-Qlikview-transforms-data-incorrectly/m-p/331628#M122190</guid>
      <dc:creator />
      <dc:date>2012-08-01T11:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: Leading 0 in Text field Qlikview transforms data incorrectly</title>
      <link>https://community.qlik.com/t5/QlikView/Leading-0-in-Text-field-Qlikview-transforms-data-incorrectly/m-p/331629#M122191</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;Actually it is dropping it - but the &lt;EM&gt;text representation&lt;/EM&gt; is keeping it on display. On loading QV is deciding that it should be displayed with a leading zero, based on the format of the input data. So you see a leading zero, but Qv is handling it as a number, in which the leading zero plays no part. &lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;08491710&lt;/SPAN&gt; is represented internally as the number &lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;8491710.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qlikview 'sniffs' the format of the input data and sets the field format based on the results. In your case, it has concluded that the field is numeric, but you want it displayed with a leading space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Essentially all numbers are 'duals' with a text format and an numerical value. The text format is what is displayed, the numerical value is used for comparisons, sorting, and in expressions. By default, most numbers are displayed just the way you expect, but this can be overridden, as is the case here. The text() function &lt;EM&gt;in an expression&lt;/EM&gt; retrieves the text version of the dual value, and num() function returns the numerical. Dates are simply numbers with a date format applied. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it may be unnecessary to apply text() when reading from the QVD as the QVD includes the QV data type and format, although you should test this to be sure. Of course this assumes that you used text() when you did the initial read to create the QVD. There is no data type when reading from a text file, so QV relies on its default behaviour. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps to explain what's happening here&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS:&lt;/P&gt;&lt;P&gt;Many people would consider it poor practice to have 2 IDs 08491710 and 8491710 representing different things. Your example illustrates why. Of course, I assume that this is input data that you just have to deal with... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2012 11:26:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Leading-0-in-Text-field-Qlikview-transforms-data-incorrectly/m-p/331629#M122191</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-08-01T11:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: Leading 0 in Text field Qlikview transforms data incorrectly</title>
      <link>https://community.qlik.com/t5/QlikView/Leading-0-in-Text-field-Qlikview-transforms-data-incorrectly/m-p/331630#M122192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes this helps explain what it is doing. It is still annoying though when I am storing entire tables and am not completely aware how a field is entered/ when it should be defined as a string. I just have a lot of research and typing ahead of me. This will be a good excuse to also apply rtrim() everywhere since I have been putting that off as well. (Our ERP software drops only trailing spaces, and keeps leading spaces)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as for the PS I totally agree that this is bad practice. I am assuming that it was entered as a mistake, however it was used so we can not remove it. This is also the case where someone accidentally hit space before entering a part so now we have 2 identical parts, one with a leading space one without that are causing issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more question, I asked this in another post, but are you aware if transforming index fields in the select statement will slow down load speeds, or is this only the case if I transform an index field in the where clause?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2012 11:41:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Leading-0-in-Text-field-Qlikview-transforms-data-incorrectly/m-p/331630#M122192</guid>
      <dc:creator />
      <dc:date>2012-08-01T11:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: Leading 0 in Text field Qlikview transforms data incorrectly</title>
      <link>https://community.qlik.com/t5/QlikView/Leading-0-in-Text-field-Qlikview-transforms-data-incorrectly/m-p/331631#M122193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont understand what you mean by 'transforming index fields'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2012 11:46:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Leading-0-in-Text-field-Qlikview-transforms-data-incorrectly/m-p/331631#M122193</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-08-01T11:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: Leading 0 in Text field Qlikview transforms data incorrectly</title>
      <link>https://community.qlik.com/t5/QlikView/Leading-0-in-Text-field-Qlikview-transforms-data-incorrectly/m-p/331632#M122194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I mean like applying rtrim() to an indexed field. I know indexed fields load much faster, just was not sure if adding a function to these fields will reduce the load time. I am doing several Incremental loads with the Add,Update,Delete method using Inner Join SQL SELECT PrimaryKey FROM DB_TABLE; Since I need to keep leading spaces and drop trailing I will need to change it to Inner Join SQL SELECT rtrim(PrimaryKey) asPrimaryKey&amp;nbsp; FROM DB_TABLE;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just want to make sure that I am not exponentially increasing load times by doing this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2012 11:50:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Leading-0-in-Text-field-Qlikview-transforms-data-incorrectly/m-p/331632#M122194</guid>
      <dc:creator />
      <dc:date>2012-08-01T11:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: Leading 0 in Text field Qlikview transforms data incorrectly</title>
      <link>https://community.qlik.com/t5/QlikView/Leading-0-in-Text-field-Qlikview-transforms-data-incorrectly/m-p/331633#M122195</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;Too many variables to answer this definitively. It is likely to slow it down, but I think only testing will tell how signifcantly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if I understand you correctly, try this script instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inner Join &lt;/P&gt;&lt;P&gt;LOAD rtrim(PrimaryKey) As PrimaryKey;&lt;/P&gt;&lt;P&gt;SQL SELECT PrimaryKey FROM DB_TABLE;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think the load is affected much by the rtrim.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2012 10:28:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Leading-0-in-Text-field-Qlikview-transforms-data-incorrectly/m-p/331633#M122195</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-08-03T10:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: Leading 0 in Text field Qlikview transforms data incorrectly</title>
      <link>https://community.qlik.com/t5/QlikView/Leading-0-in-Text-field-Qlikview-transforms-data-incorrectly/m-p/331634#M122196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is actually what I ended up doing for both of my issues with rtrim and text functions. Since text() must be used in the load section for it to work correctly, I just apply rtrim(text(field)) as field for every field. Since luckily our ERP software has a program that lists out all the fields in a table with what type of data they are, I was able to easily export it to excel and create the entire load script based on formulas. This does make my script extremly long, however it is a simple copy past, copy pase&amp;nbsp; to get the load section entered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only difficult part is that since I don't want to create completly new QVD's, I have to update all 15 of our documents scripts before updating the QVD's. Sometimes the reload button is a little too close for comfort.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2012 10:54:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Leading-0-in-Text-field-Qlikview-transforms-data-incorrectly/m-p/331634#M122196</guid>
      <dc:creator />
      <dc:date>2012-08-03T10:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: Leading 0 in Text field Qlikview transforms data incorrectly</title>
      <link>https://community.qlik.com/t5/QlikView/Leading-0-in-Text-field-Qlikview-transforms-data-incorrectly/m-p/331635#M122197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Didn't get it - how to force the initial load (SELECT FROM ....) result with TEXT field - the "TEXT" keyword is legal only when loading from QVD not while selecting data with SQL.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Sep 2013 12:34:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Leading-0-in-Text-field-Qlikview-transforms-data-incorrectly/m-p/331635#M122197</guid>
      <dc:creator />
      <dc:date>2013-09-22T12:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: Leading 0 in Text field Qlikview transforms data incorrectly</title>
      <link>https://community.qlik.com/t5/QlikView/Leading-0-in-Text-field-Qlikview-transforms-data-incorrectly/m-p/331636#M122198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does not work for me - version 10.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Sep 2013 10:52:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Leading-0-in-Text-field-Qlikview-transforms-data-incorrectly/m-p/331636#M122198</guid>
      <dc:creator />
      <dc:date>2013-09-23T10:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: Leading 0 in Text field Qlikview transforms data incorrectly</title>
      <link>https://community.qlik.com/t5/QlikView/Leading-0-in-Text-field-Qlikview-transforms-data-incorrectly/m-p/331637#M122199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to add the text function in a proceeding load statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Text(field) as field;&lt;/P&gt;&lt;P&gt;SQL Select&lt;/P&gt;&lt;P&gt;Field&lt;/P&gt;&lt;P&gt;From …;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Sep 2013 11:12:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Leading-0-in-Text-field-Qlikview-transforms-data-incorrectly/m-p/331637#M122199</guid>
      <dc:creator />
      <dc:date>2013-09-23T11:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: Leading 0 in Text field Qlikview transforms data incorrectly</title>
      <link>https://community.qlik.com/t5/QlikView/Leading-0-in-Text-field-Qlikview-transforms-data-incorrectly/m-p/331638#M122200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marc - please note that we are selecting data from DB2 with SQL, storing the selected rows in a QVD and loading the rows from the QVD into Qlikview - where exactly do i need to locate the Text() function?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Sep 2013 05:18:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Leading-0-in-Text-field-Qlikview-transforms-data-incorrectly/m-p/331638#M122200</guid>
      <dc:creator />
      <dc:date>2013-09-24T05:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: Leading 0 in Text field Qlikview transforms data incorrectly</title>
      <link>https://community.qlik.com/t5/QlikView/Leading-0-in-Text-field-Qlikview-transforms-data-incorrectly/m-p/331639#M122201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif'; color: #1f497d;"&gt;This would need to be done before you store the data into the QVD. As soon as Qlikview loads the data it converts it. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif'; color: #1f497d;"&gt;So you would need:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif'; color: #1f497d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Text(field) as field;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;SQL Select&lt;/P&gt;&lt;P&gt;Field&lt;/P&gt;&lt;P&gt;From …;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STORE Table into [\\........qvd(qvd)];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;even if you convert the field to text in the select statement Qlikview would still read it as a number if it contains all numbers. This needs to be done this way for QVD's because once it is saved the leading 0 would be lost.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Sep 2013 12:03:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Leading-0-in-Text-field-Qlikview-transforms-data-incorrectly/m-p/331639#M122201</guid>
      <dc:creator />
      <dc:date>2013-09-24T12:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: Leading 0 in Text field Qlikview transforms data incorrectly</title>
      <link>https://community.qlik.com/t5/QlikView/Leading-0-in-Text-field-Qlikview-transforms-data-incorrectly/m-p/331640#M122202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great - worked for me - many thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Sep 2013 12:36:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Leading-0-in-Text-field-Qlikview-transforms-data-incorrectly/m-p/331640#M122202</guid>
      <dc:creator />
      <dc:date>2013-09-24T12:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: Leading 0 in Text field Qlikview transforms data incorrectly</title>
      <link>https://community.qlik.com/t5/QlikView/Leading-0-in-Text-field-Qlikview-transforms-data-incorrectly/m-p/331641#M122203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi i'am with the same problem, used text() but doesnt seems to work, it's mandatory to drop and rename?&lt;/P&gt;&lt;P&gt;My thread with the same problem &lt;A href="https://community.qlik.com/thread/125925"&gt;Qlikview leading zeros&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2014 10:06:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Leading-0-in-Text-field-Qlikview-transforms-data-incorrectly/m-p/331641#M122203</guid>
      <dc:creator />
      <dc:date>2014-07-17T10:06:57Z</dc:date>
    </item>
  </channel>
</rss>

