<?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 zeros in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Leading-zeros/m-p/442835#M165060</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;if u want to bring 1 as number and other as text then,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(item=14801,'14801',item)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;result: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;14801&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 014801&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sudeep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Sep 2012 09:20:17 GMT</pubDate>
    <dc:creator>sudeep_d</dc:creator>
    <dc:date>2012-09-26T09:20:17Z</dc:date>
    <item>
      <title>Leading zeros</title>
      <link>https://community.qlik.com/t5/QlikView/Leading-zeros/m-p/442826#M165051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys.&lt;/P&gt;&lt;P&gt;I need help on an issue. I have a view in sql server that brings two records 014801 and 14801.&lt;/P&gt;&lt;P&gt;These are two different items.When i&amp;nbsp; make a select from that view on a qvw the result is that it brings only one of the records.&lt;/P&gt;&lt;P&gt;I have tried convert(varchar,item) but it didnt work. Can anyone help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2012 08:33:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Leading-zeros/m-p/442826#M165051</guid>
      <dc:creator />
      <dc:date>2012-09-26T08:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: Leading zeros</title>
      <link>https://community.qlik.com/t5/QlikView/Leading-zeros/m-p/442827#M165052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try to convert it into text by using text(records) then it would treat both values differently&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2012 08:35:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Leading-zeros/m-p/442827#M165052</guid>
      <dc:creator>rajni_batra</dc:creator>
      <dc:date>2012-09-26T08:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: Leading zeros</title>
      <link>https://community.qlik.com/t5/QlikView/Leading-zeros/m-p/442828#M165053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;replace(ltrim(replace([FIELD], '0', ' ')), ' ', 0) as FIELD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2012 08:51:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Leading-zeros/m-p/442828#M165053</guid>
      <dc:creator />
      <dc:date>2012-09-26T08:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: Leading zeros</title>
      <link>https://community.qlik.com/t5/QlikView/Leading-zeros/m-p/442829#M165054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;if 014801 is in field name 'item',then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;replace(ltrim(replace(item,'0',' ')),' ','0') as item&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sudeep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2012 08:51:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Leading-zeros/m-p/442829#M165054</guid>
      <dc:creator>sudeep_d</dc:creator>
      <dc:date>2012-09-26T08:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: Leading zeros</title>
      <link>https://community.qlik.com/t5/QlikView/Leading-zeros/m-p/442830#M165055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What i do is that I store the result of the select into a qvd and then I load the qvd using the text(item) but it doesnt work correctly. It brings only the 014801.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2012 09:00:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Leading-zeros/m-p/442830#M165055</guid>
      <dc:creator />
      <dc:date>2012-09-26T09:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: Leading zeros</title>
      <link>https://community.qlik.com/t5/QlikView/Leading-zeros/m-p/442831#M165056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do not use the text function - use the following formula to get rid of leading zeros&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;replace(ltrim(replace([FIELD], '0', ' ')), ' ', 0) as FIELD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2012 09:03:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Leading-zeros/m-p/442831#M165056</guid>
      <dc:creator />
      <dc:date>2012-09-26T09:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: Leading zeros</title>
      <link>https://community.qlik.com/t5/QlikView/Leading-zeros/m-p/442832#M165057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is that I want to show both values 014801 and 14801.&lt;/P&gt;&lt;P&gt;If I use the replace function , it will give me only the 14801.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2012 09:11:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Leading-zeros/m-p/442832#M165057</guid>
      <dc:creator />
      <dc:date>2012-09-26T09:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: Leading zeros</title>
      <link>https://community.qlik.com/t5/QlikView/Leading-zeros/m-p/442833#M165058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Im not too sure why you would want to use both fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But you can use the replace function and the other way and have them named differently&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2012 09:13:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Leading-zeros/m-p/442833#M165058</guid>
      <dc:creator />
      <dc:date>2012-09-26T09:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: Leading zeros</title>
      <link>https://community.qlik.com/t5/QlikView/Leading-zeros/m-p/442834#M165059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;014801 and 14801 are two different records. I want to show them both along with quantities. What happens is that the sql result is 014801 with quantity 100 and 14801 with quantity 200. QV shows 014801 with quantity 300.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2012 09:17:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Leading-zeros/m-p/442834#M165059</guid>
      <dc:creator />
      <dc:date>2012-09-26T09:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: Leading zeros</title>
      <link>https://community.qlik.com/t5/QlikView/Leading-zeros/m-p/442835#M165060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;if u want to bring 1 as number and other as text then,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(item=14801,'14801',item)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;result: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;14801&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 014801&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sudeep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2012 09:20:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Leading-zeros/m-p/442835#M165060</guid>
      <dc:creator>sudeep_d</dc:creator>
      <dc:date>2012-09-26T09:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: Leading zeros</title>
      <link>https://community.qlik.com/t5/QlikView/Leading-zeros/m-p/442836#M165061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The thing is that I have hundreds of this case, 014802 and 14802,014803 and 14803 and so on...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2012 09:30:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Leading-zeros/m-p/442836#M165061</guid>
      <dc:creator />
      <dc:date>2012-09-26T09:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: Leading zeros</title>
      <link>https://community.qlik.com/t5/QlikView/Leading-zeros/m-p/442837#M165062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This might be you are looking for&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2012 09:51:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Leading-zeros/m-p/442837#M165062</guid>
      <dc:creator>sivarajs</dc:creator>
      <dc:date>2012-09-26T09:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: Leading zeros</title>
      <link>https://community.qlik.com/t5/QlikView/Leading-zeros/m-p/442838#M165063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;I added a load statement before the select and it worked!&lt;/P&gt;&lt;P&gt;Thank you all guys!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2012 09:53:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Leading-zeros/m-p/442838#M165063</guid>
      <dc:creator />
      <dc:date>2012-09-26T09:53:57Z</dc:date>
    </item>
  </channel>
</rss>

