<?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 Qlikview load appending zero to front in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Qlikview-load-appending-zero-to-front/m-p/61605#M10311</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'm running a really simple script that imports items numbers and descriptions. There is a chance that some of the item numbers have a leading zero and some don't e.g. 12345 and 012345&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that QV is adding a leading zero to 12345, turning it into item number 012345 which is a different part number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Item:&lt;/P&gt;&lt;P&gt;SQL SELECT&lt;/P&gt;&lt;P&gt;"In-entity",&lt;/P&gt;&lt;P&gt;"Item-no",&lt;/P&gt;&lt;P&gt;"Uom-code",&lt;/P&gt;&lt;P&gt;"Description",&lt;/P&gt;&lt;P&gt;"Active",&lt;/P&gt;&lt;P&gt;"res-str",&lt;/P&gt;&lt;P&gt;"stock-item"&lt;/P&gt;&lt;P&gt;FROM MYTABLE.PUB."item" ';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;store Item into D:\MyFile\Item.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've also tried adding cast which didn't work either:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Item:&lt;/P&gt;&lt;P&gt;SQL SELECT&lt;/P&gt;&lt;P&gt;"In-entity",&lt;/P&gt;&lt;P&gt;CAST("Item-no" as varchar(20)) as "Item-no",&lt;/P&gt;&lt;P&gt;"Item-no",&lt;/P&gt;&lt;P&gt;"Uom-code",&lt;/P&gt;&lt;P&gt;"Description",&lt;/P&gt;&lt;P&gt;"Active",&lt;/P&gt;&lt;P&gt;"res-str",&lt;/P&gt;&lt;P&gt;"stock-item"&lt;/P&gt;&lt;P&gt;FROM MYTABLE.PUB."item" ';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;store Item into D:\MyFile\Item.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please can anyone advise is they have seen this before? We've just upgraded to v12.2 and I can't remember experiencing it on an older version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Mar 2018 23:22:36 GMT</pubDate>
    <dc:creator>chris1987</dc:creator>
    <dc:date>2018-03-20T23:22:36Z</dc:date>
    <item>
      <title>Qlikview load appending zero to front</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-load-appending-zero-to-front/m-p/61605#M10311</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'm running a really simple script that imports items numbers and descriptions. There is a chance that some of the item numbers have a leading zero and some don't e.g. 12345 and 012345&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that QV is adding a leading zero to 12345, turning it into item number 012345 which is a different part number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Item:&lt;/P&gt;&lt;P&gt;SQL SELECT&lt;/P&gt;&lt;P&gt;"In-entity",&lt;/P&gt;&lt;P&gt;"Item-no",&lt;/P&gt;&lt;P&gt;"Uom-code",&lt;/P&gt;&lt;P&gt;"Description",&lt;/P&gt;&lt;P&gt;"Active",&lt;/P&gt;&lt;P&gt;"res-str",&lt;/P&gt;&lt;P&gt;"stock-item"&lt;/P&gt;&lt;P&gt;FROM MYTABLE.PUB."item" ';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;store Item into D:\MyFile\Item.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've also tried adding cast which didn't work either:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Item:&lt;/P&gt;&lt;P&gt;SQL SELECT&lt;/P&gt;&lt;P&gt;"In-entity",&lt;/P&gt;&lt;P&gt;CAST("Item-no" as varchar(20)) as "Item-no",&lt;/P&gt;&lt;P&gt;"Item-no",&lt;/P&gt;&lt;P&gt;"Uom-code",&lt;/P&gt;&lt;P&gt;"Description",&lt;/P&gt;&lt;P&gt;"Active",&lt;/P&gt;&lt;P&gt;"res-str",&lt;/P&gt;&lt;P&gt;"stock-item"&lt;/P&gt;&lt;P&gt;FROM MYTABLE.PUB."item" ';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;store Item into D:\MyFile\Item.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please can anyone advise is they have seen this before? We've just upgraded to v12.2 and I can't remember experiencing it on an older version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2018 23:22:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-load-appending-zero-to-front/m-p/61605#M10311</guid>
      <dc:creator>chris1987</dc:creator>
      <dc:date>2018-03-20T23:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview load appending zero to front</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-load-appending-zero-to-front/m-p/61606#M10312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Load them as Text then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Item:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;In-entity,&lt;/P&gt;&lt;P&gt;TEXT(Item-no) as ItenNo,&lt;/P&gt;&lt;P&gt;Uom-code,&lt;/P&gt;&lt;P&gt;Description,&lt;/P&gt;&lt;P&gt;Active,&lt;/P&gt;&lt;P&gt;res-str,&lt;/P&gt;&lt;P&gt;stock-item;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT&lt;/P&gt;&lt;P&gt;"In-entity",&lt;/P&gt;&lt;P&gt;"Item-no",&lt;/P&gt;&lt;P&gt;"Uom-code",&lt;/P&gt;&lt;P&gt;"Description",&lt;/P&gt;&lt;P&gt;"Active",&lt;/P&gt;&lt;P&gt;"res-str",&lt;/P&gt;&lt;P&gt;"stock-item"&lt;/P&gt;&lt;P&gt;FROM MYTABLE.PUB."item" ';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2018 02:25:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-load-appending-zero-to-front/m-p/61606#M10312</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2018-03-21T02:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview load appending zero to front</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-load-appending-zero-to-front/m-p/61607#M10313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;if your field is in proper number format then use &lt;STRONG&gt;NUM() &lt;/STRONG&gt;function around that should resolve the issue &lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2018 06:40:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-load-appending-zero-to-front/m-p/61607#M10313</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2018-03-21T06:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview load appending zero to front</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-load-appending-zero-to-front/m-p/61608#M10314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;or may be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;REPLACE(LTRIM(REPLACE(Field, '0', ' ')), ' ', '0')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2018 06:44:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-load-appending-zero-to-front/m-p/61608#M10314</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2018-03-21T06:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview load appending zero to front</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-load-appending-zero-to-front/m-p/61609#M10315</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;Unfortunately this doesn't work - the value already has the "0" appended on the SQL Select&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2018 10:06:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-load-appending-zero-to-front/m-p/61609#M10315</guid>
      <dc:creator>chris1987</dc:creator>
      <dc:date>2018-03-21T10:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview load appending zero to front</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-load-appending-zero-to-front/m-p/61610#M10316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Unfortunately the field is alphanumeric (part numbers like R12345 also exist)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2018 10:06:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-load-appending-zero-to-front/m-p/61610#M10316</guid>
      <dc:creator>chris1987</dc:creator>
      <dc:date>2018-03-21T10:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview load appending zero to front</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-load-appending-zero-to-front/m-p/61611#M10317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Some part numbers genuinely need the "0" at the beginning.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2018 10:07:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-load-appending-zero-to-front/m-p/61611#M10317</guid>
      <dc:creator>chris1987</dc:creator>
      <dc:date>2018-03-21T10:07:26Z</dc:date>
    </item>
  </channel>
</rss>

