<?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: Part number as text, leading zero issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Part-number-as-text-leading-zero-issue/m-p/646895#M236983</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Colin,&lt;/P&gt;&lt;P&gt;I would concur with this analysis.&amp;nbsp; We just had a similar issue where a value from a log file was read in as 1%, subsequent values of '1' also stored as '1%' &lt;/P&gt;&lt;P&gt;Richard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Sep 2014 08:13:34 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-09-09T08:13:34Z</dc:date>
    <item>
      <title>Part number as text, leading zero issue</title>
      <link>https://community.qlik.com/t5/QlikView/Part-number-as-text-leading-zero-issue/m-p/646887#M236975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a table of part numbers (Parts Master)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Within this table I have two part numbers:&lt;/P&gt;&lt;P&gt;00119916, description "Oil Seal"&lt;/P&gt;&lt;P&gt;0119916, description "Seal"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I output the parts master to a QVD file in a ETL script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem occurs when I read this file in my application, and join it to sales (or anything)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QV treats both parts as 0119916 &lt;IMG alt="Community.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/66257_Community.JPG.jpg" style="width: 620px; height: 179px;" /&gt;&lt;/P&gt;&lt;P&gt;I would understand if it treated both parts as 119916, but why is it droping one of the leading zeros?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2014 15:24:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Part-number-as-text-leading-zero-issue/m-p/646887#M236975</guid>
      <dc:creator>martynlloyd</dc:creator>
      <dc:date>2014-09-08T15:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: Part number as text, leading zero issue</title>
      <link>https://community.qlik.com/t5/QlikView/Part-number-as-text-leading-zero-issue/m-p/646888#M236976</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;On your load script use the text function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load&amp;nbsp; text(UPN) as UPN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Richard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2014 15:27:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Part-number-as-text-leading-zero-issue/m-p/646888#M236976</guid>
      <dc:creator />
      <dc:date>2014-09-08T15:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: Part number as text, leading zero issue</title>
      <link>https://community.qlik.com/t5/QlikView/Part-number-as-text-leading-zero-issue/m-p/646889#M236977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, that shoudl force it to accept the string, as a string, and stop trying to parse it as a number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as in&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;load&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TEXT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;F1&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;UPN&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;F2&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;INLINE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt;F1, F2&lt;BR /&gt;0123, part 1&lt;BR /&gt;123, part 2&lt;BR /&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Richard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2014 15:28:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Part-number-as-text-leading-zero-issue/m-p/646889#M236977</guid>
      <dc:creator />
      <dc:date>2014-09-08T15:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: Part number as text, leading zero issue</title>
      <link>https://community.qlik.com/t5/QlikView/Part-number-as-text-leading-zero-issue/m-p/646890#M236978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, yes I know, but my questionis why it still shows one of the leading zeros?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2014 16:30:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Part-number-as-text-leading-zero-issue/m-p/646890#M236978</guid>
      <dc:creator>martynlloyd</dc:creator>
      <dc:date>2014-09-08T16:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: Part number as text, leading zero issue</title>
      <link>https://community.qlik.com/t5/QlikView/Part-number-as-text-leading-zero-issue/m-p/646891#M236979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To clarify futher:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is my SQL table&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Community2.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/66259_Community2.JPG.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is the QVD file, stand alone&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Community3.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/66272_Community3.JPG.jpg" style="width: 620px; height: 475px;" /&gt;&lt;/P&gt;&lt;P&gt;As you can see, it has interpreted 00119916 as (0)119916, numeric, but why is it showing a leading zero?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it somehow due to the order in which the fields are loaded, and QV's dual type fields?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;ML.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2014 16:50:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Part-number-as-text-leading-zero-issue/m-p/646891#M236979</guid>
      <dc:creator>martynlloyd</dc:creator>
      <dc:date>2014-09-08T16:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: Part number as text, leading zero issue</title>
      <link>https://community.qlik.com/t5/QlikView/Part-number-as-text-leading-zero-issue/m-p/646892#M236980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;does seem strange. Is the script that specifically generates the qvd wrapping the field in text() as well? or just the script that loads from the qvd? In the qvd creating script is the text() transformation done on the primary load and not say in a preceding load or subsequent resident load? Just looking for some of the details. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2014 19:38:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Part-number-as-text-leading-zero-issue/m-p/646892#M236980</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-09-08T19:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: Part number as text, leading zero issue</title>
      <link>https://community.qlik.com/t5/QlikView/Part-number-as-text-leading-zero-issue/m-p/646893#M236981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you get the same number &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.7272720336914px;"&gt;119916 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.7272720336914px;"&gt;with the format of the first you load, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.7272720336914px;"&gt;0119916 &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12.7272720336914px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;to check try to change the order in sql and see if the format is 0&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.7272720336914px;"&gt;0119916 &lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;add text as already suggested&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2014 19:49:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Part-number-as-text-leading-zero-issue/m-p/646893#M236981</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-09-08T19:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: Part number as text, leading zero issue</title>
      <link>https://community.qlik.com/t5/QlikView/Part-number-as-text-leading-zero-issue/m-p/646894#M236982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;QlikView holds all data as dual values. This means each field value has a text and number equivalent Your data load encounters 0119916 first so stores this as the number 119916 with the equivalent text 0119916. When the value 00119916 is encountered, QlikView already has a value for the number 119916 in the data array for that field, so a pointer is added for the new row linking to the existing dual value (0119916, 119916). The actual value 00119916 is in effect ignored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To force QlikView time correctly recognise the leading zeros you can force the data to be recognised as text by using the text() function. This will then store 119916, 0119916 and 00119916 as separate values in the same field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2014 19:49:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Part-number-as-text-leading-zero-issue/m-p/646894#M236982</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2014-09-08T19:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: Part number as text, leading zero issue</title>
      <link>https://community.qlik.com/t5/QlikView/Part-number-as-text-leading-zero-issue/m-p/646895#M236983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Colin,&lt;/P&gt;&lt;P&gt;I would concur with this analysis.&amp;nbsp; We just had a similar issue where a value from a log file was read in as 1%, subsequent values of '1' also stored as '1%' &lt;/P&gt;&lt;P&gt;Richard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2014 08:13:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Part-number-as-text-leading-zero-issue/m-p/646895#M236983</guid>
      <dc:creator />
      <dc:date>2014-09-09T08:13:34Z</dc:date>
    </item>
  </channel>
</rss>

