<?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: 0 in front of data when loading from SQL in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/0-in-front-of-data-when-loading-from-SQL/m-p/642285#M235284</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;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load text(CODEFAM) as CODEFAM, LIBFAMFR, LIBFAMNL;&lt;/P&gt;&lt;P&gt;Sql Select * from Txt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Jun 2014 09:47:19 GMT</pubDate>
    <dc:creator>MayilVahanan</dc:creator>
    <dc:date>2014-06-06T09:47:19Z</dc:date>
    <item>
      <title>0 in front of data when loading from SQL</title>
      <link>https://community.qlik.com/t5/QlikView/0-in-front-of-data-when-loading-from-SQL/m-p/642282#M235281</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 have a strange result when loading date from a SQL database into qlikview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my database i have a field containing numbers and letters. It's a nvarchar column. When i import the data in qlikview, qlikview is adding somethimes '0' to that column in front of my data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="codefam.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/60236_codefam.png" style="width: 620px; height: 563px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody know how to resolve that problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 09:38:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/0-in-front-of-data-when-loading-from-SQL/m-p/642282#M235281</guid>
      <dc:creator />
      <dc:date>2014-06-06T09:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: 0 in front of data when loading from SQL</title>
      <link>https://community.qlik.com/t5/QlikView/0-in-front-of-data-when-loading-from-SQL/m-p/642283#M235282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Michael&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would formatting it with the num() function help ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = num ( '01' , '#0')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Bill&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 09:43:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/0-in-front-of-data-when-loading-from-SQL/m-p/642283#M235282</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-06T09:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: 0 in front of data when loading from SQL</title>
      <link>https://community.qlik.com/t5/QlikView/0-in-front-of-data-when-loading-from-SQL/m-p/642284#M235283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bill,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No because we have data that are 'L52' or 'P9999'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 09:47:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/0-in-front-of-data-when-loading-from-SQL/m-p/642284#M235283</guid>
      <dc:creator />
      <dc:date>2014-06-06T09:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: 0 in front of data when loading from SQL</title>
      <link>https://community.qlik.com/t5/QlikView/0-in-front-of-data-when-loading-from-SQL/m-p/642285#M235284</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;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load text(CODEFAM) as CODEFAM, LIBFAMFR, LIBFAMNL;&lt;/P&gt;&lt;P&gt;Sql Select * from Txt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 09:47:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/0-in-front-of-data-when-loading-from-SQL/m-p/642285#M235284</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2014-06-06T09:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: 0 in front of data when loading from SQL</title>
      <link>https://community.qlik.com/t5/QlikView/0-in-front-of-data-when-loading-from-SQL/m-p/642286#M235285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your field CODEFAM is string field thats why you get 0 in front some values also this field has character and the numbers also so you are nor able to convert this into the number also. Try to make it text string like Text(CODEFAM).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Text(CODEFAM) as CODEFAM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From Location;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 09:50:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/0-in-front-of-data-when-loading-from-SQL/m-p/642286#M235285</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-06-06T09:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: 0 in front of data when loading from SQL</title>
      <link>https://community.qlik.com/t5/QlikView/0-in-front-of-data-when-loading-from-SQL/m-p/642287#M235286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Michael&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How about using the&lt;EM&gt; isnum()&lt;/EM&gt; function ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can test by putting these expression in a text box :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = if ( isnum( '01' ) , num ( '01' , '#0') , text ('01' ) )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = if ( isnum( 'L52' ) , num ( 'L52' , '#0') , text ('L52' ) )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 09:56:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/0-in-front-of-data-when-loading-from-SQL/m-p/642287#M235286</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-06T09:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: 0 in front of data when loading from SQL</title>
      <link>https://community.qlik.com/t5/QlikView/0-in-front-of-data-when-loading-from-SQL/m-p/642288#M235287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tested by putting text but i have still the same problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code : &lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Text(CODEFAM) as CODE,&lt;/P&gt;&lt;P&gt;LIBFAMFR as LIBFAM&lt;/P&gt;&lt;P&gt;RESIDENT TMP;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 10:01:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/0-in-front-of-data-when-loading-from-SQL/m-p/642288#M235287</guid>
      <dc:creator />
      <dc:date>2014-06-06T10:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: 0 in front of data when loading from SQL</title>
      <link>https://community.qlik.com/t5/QlikView/0-in-front-of-data-when-loading-from-SQL/m-p/642289#M235288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is working but it's not de result i want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to keep some data like 01,02,03.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 10:07:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/0-in-front-of-data-when-loading-from-SQL/m-p/642289#M235288</guid>
      <dc:creator />
      <dc:date>2014-06-06T10:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: 0 in front of data when loading from SQL</title>
      <link>https://community.qlik.com/t5/QlikView/0-in-front-of-data-when-loading-from-SQL/m-p/642290#M235289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Michael&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you identify which 01 's you want as 01 and which as just 1 ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 10:12:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/0-in-front-of-data-when-loading-from-SQL/m-p/642290#M235289</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-06T10:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: 0 in front of data when loading from SQL</title>
      <link>https://community.qlik.com/t5/QlikView/0-in-front-of-data-when-loading-from-SQL/m-p/642291#M235290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bill,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No i can't. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 10:57:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/0-in-front-of-data-when-loading-from-SQL/m-p/642291#M235290</guid>
      <dc:creator />
      <dc:date>2014-06-10T10:57:01Z</dc:date>
    </item>
  </channel>
</rss>

