<?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: Loading text data but converted to numbers from excel in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loading-text-data-but-converted-to-numbers-from-excel/m-p/524069#M1135023</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Jagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, it appears to be like that, but I am wondering why is that the product id field that I loaded from the QVD file still has the leading 0s at the front, shouldn't technically they don't have the leading 0s as well?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Oct 2013 04:52:59 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-10-25T04:52:59Z</dc:date>
    <item>
      <title>Loading text data but converted to numbers from excel</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-text-data-but-converted-to-numbers-from-excel/m-p/524067#M1135021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, how are you?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just a quick question&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am loading a data from excel file (really simple, only 2 columns, product ID and description) as an exercise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Product.xlsx&lt;/P&gt;&lt;P&gt;ID, // note that for this exercise, this ID label is purposedly made different than the ID label in the database&lt;/P&gt;&lt;P&gt;Product Description&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The product ID has a format of "000XXX", meaning that if the product ID is 1, it will be represented as "000001", up to 100. This is only exercise, so the data is not big.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I also have a ready QVD data, in which it contains Product ID, and the price.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ProductDatabase.qvd&lt;/P&gt;&lt;P&gt;Product ID, // this product ID has the same format such as "000001"&lt;/P&gt;&lt;P&gt;Price&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The objective is really straight forward, that I have to find the price of each product ID that I load from excel, which I have done by using the where exists clause when loading.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, to my surprise, when I display the ID field in Qlikview, all of the IDs no longer have the leading 0s.&lt;/P&gt;&lt;P&gt;However, if I display the Product ID field, all the IDs still have the leading 0s.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems that QV thinks that the IDs loaded from excel as number and therefore removed all the leading 0s whereas it did not do the same thing to the Product IDs loaded from the qvd file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is, is this a bug or the correct behaviour? It seems not consistent? It did however still find the match though, which I am happy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 00:22:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-text-data-but-converted-to-numbers-from-excel/m-p/524067#M1135021</guid>
      <dc:creator />
      <dc:date>2013-10-25T00:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: Loading text data but converted to numbers from excel</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-text-data-but-converted-to-numbers-from-excel/m-p/524068#M1135022</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;It is not a bug.&amp;nbsp; Whenever there are leading 0s qlikview considers it as number and change to normal format by default.&amp;nbsp; If want the numbers as such then you can override this by using Text() to retain 0s like this&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(ProductID AS ProductID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '&lt;/P&gt;&lt;P&gt;'&lt;/P&gt;&lt;P&gt;'&lt;/P&gt;&lt;P&gt;'&lt;/P&gt;&lt;P&gt;FROM DataSource;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 02:07:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-text-data-but-converted-to-numbers-from-excel/m-p/524068#M1135022</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-10-25T02:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: Loading text data but converted to numbers from excel</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-text-data-but-converted-to-numbers-from-excel/m-p/524069#M1135023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Jagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, it appears to be like that, but I am wondering why is that the product id field that I loaded from the QVD file still has the leading 0s at the front, shouldn't technically they don't have the leading 0s as well?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 04:52:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-text-data-but-converted-to-numbers-from-excel/m-p/524069#M1135023</guid>
      <dc:creator />
      <dc:date>2013-10-25T04:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: Loading text data but converted to numbers from excel</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-text-data-but-converted-to-numbers-from-excel/m-p/524070#M1135024</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;May be the qvd has values like that, before saving in qvd you need to convert that to text.&amp;nbsp; Regenerate the QVD again and check.&amp;nbsp; Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 05:36:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-text-data-but-converted-to-numbers-from-excel/m-p/524070#M1135024</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-10-25T05:36:26Z</dc:date>
    </item>
  </channel>
</rss>

