<?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: Cutting off leading zeros in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Cutting-off-leading-zeros/m-p/465567#M695413</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try using num(fieldname)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 May 2013 09:02:33 GMT</pubDate>
    <dc:creator>sivarajs</dc:creator>
    <dc:date>2013-05-16T09:02:33Z</dc:date>
    <item>
      <title>Cutting off leading zeros</title>
      <link>https://community.qlik.com/t5/QlikView/Cutting-off-leading-zeros/m-p/465565#M695411</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 problem with some fields, having leading zeros.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example a field like OrderNo.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In source 1 the OrderNo. looks like: 00001234567, 00012345678&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In source 2 the OrderNo. looks like: 1234567, 12345678&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qlikview don't seem to have a problem with that, but is there a solution to cut off the leading zeroes or to define a lenght e.g. of 14 and fill with zeros?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or is it unnecessary to care about this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any advice. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- PS -&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 08:40:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cutting-off-leading-zeros/m-p/465565#M695411</guid>
      <dc:creator>peschu123</dc:creator>
      <dc:date>2013-05-16T08:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: Cutting off leading zeros</title>
      <link>https://community.qlik.com/t5/QlikView/Cutting-off-leading-zeros/m-p/465566#M695412</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;if you want to make the orderno in same format then try Repeat function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the sample scirpt:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T1:&lt;/P&gt;&lt;P&gt;load * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;value&lt;/P&gt;&lt;P&gt;1234567&lt;/P&gt;&lt;P&gt;12365547&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T2:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;Repeat(0,14-len(value))&amp;amp;value as testvalue&lt;/P&gt;&lt;P&gt;Resident T1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and other way is using NUM(value): it will remove the zero's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Sushil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 09:02:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cutting-off-leading-zeros/m-p/465566#M695412</guid>
      <dc:creator>sushil353</dc:creator>
      <dc:date>2013-05-16T09:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: Cutting off leading zeros</title>
      <link>https://community.qlik.com/t5/QlikView/Cutting-off-leading-zeros/m-p/465567#M695413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try using num(fieldname)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 09:02:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cutting-off-leading-zeros/m-p/465567#M695413</guid>
      <dc:creator>sivarajs</dc:creator>
      <dc:date>2013-05-16T09:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: Cutting off leading zeros</title>
      <link>https://community.qlik.com/t5/QlikView/Cutting-off-leading-zeros/m-p/465568#M695414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;num(num#(&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt; OrderNo&lt;/SPAN&gt;))&lt;/P&gt;&lt;P&gt;hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 09:07:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cutting-off-leading-zeros/m-p/465568#M695414</guid>
      <dc:creator>er_mohit</dc:creator>
      <dc:date>2013-05-16T09:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: Cutting off leading zeros</title>
      <link>https://community.qlik.com/t5/QlikView/Cutting-off-leading-zeros/m-p/465569#M695415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;pick(wildmatch(&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;OrderNo,'1*'&lt;/SPAN&gt;),'1*') as &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;OrderNo_new&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 09:21:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cutting-off-leading-zeros/m-p/465569#M695415</guid>
      <dc:creator />
      <dc:date>2013-05-16T09:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: Cutting off leading zeros</title>
      <link>https://community.qlik.com/t5/QlikView/Cutting-off-leading-zeros/m-p/465570#M695416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://community.qlik.com/people/vishwaranjan" id="jive-10046122080197148522927" style="background-color: #ffffff; font-size: 12px; color: #007fc0; text-decoration: initial; font-weight: bold; font-family: Arial; text-align: center;"&gt;vishwaranjan&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for your reply!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't had time to check the solutions, yet. But when I interpret your solution right, than this does not work with 00007654321? "12345678" was just an example the "orderno" can begin with any number...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, num(fieldname) did the trick.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for the fast replies. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- PS -&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 10:54:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cutting-off-leading-zeros/m-p/465570#M695416</guid>
      <dc:creator>peschu123</dc:creator>
      <dc:date>2013-05-16T10:54:10Z</dc:date>
    </item>
  </channel>
</rss>

