<?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 '0' as prefix in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/0-as-prefix/m-p/270883#M101582</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your suggestion&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Jun 2011 21:15:08 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-06-07T21:15:08Z</dc:date>
    <item>
      <title>'0' as prefix</title>
      <link>https://community.qlik.com/t5/QlikView/0-as-prefix/m-p/270881#M101580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;I have any code in the table in this format:&lt;/P&gt;&lt;P&gt;FieldA&lt;/P&gt;&lt;P&gt;00138081&lt;/P&gt;&lt;P&gt;00048002&lt;/P&gt;&lt;P&gt;09004222&lt;/P&gt;&lt;P&gt;000111&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I want to have the same numbers but without '0' as prefix&lt;/P&gt;&lt;P&gt;FieldA&lt;/P&gt;&lt;P&gt;138081&lt;/P&gt;&lt;P&gt;48002&lt;/P&gt;&lt;P&gt;9004222&lt;/P&gt;&lt;P&gt;111&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you hel me??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my solution is num(FieldA) as FieldX&lt;/P&gt;&lt;P&gt;but there isn't another way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;g&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2011 19:48:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/0-as-prefix/m-p/270881#M101580</guid>
      <dc:creator />
      <dc:date>2011-06-07T19:48:51Z</dc:date>
    </item>
    <item>
      <title>'0' as prefix</title>
      <link>https://community.qlik.com/t5/QlikView/0-as-prefix/m-p/270882#M101581</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;here is a link to a thread covering this point:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/message/63300#63300"&gt;http://community.qlik.com/message/63300#63300&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the answer could be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;replace(ltrim(replace(FieldA, '0', ' ')), ' ', 0)&amp;nbsp; as newField&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it replaces zeroes with space, then removes leading space, thne replaces space with zeroes. Will work if your field does not contain a space to start with - unlikely in a numeric field with leading zeroes. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2011 20:07:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/0-as-prefix/m-p/270882#M101581</guid>
      <dc:creator>pat_agen</dc:creator>
      <dc:date>2011-06-07T20:07:51Z</dc:date>
    </item>
    <item>
      <title>'0' as prefix</title>
      <link>https://community.qlik.com/t5/QlikView/0-as-prefix/m-p/270883#M101582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your suggestion&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2011 21:15:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/0-as-prefix/m-p/270883#M101582</guid>
      <dc:creator />
      <dc:date>2011-06-07T21:15:08Z</dc:date>
    </item>
    <item>
      <title>'0' as prefix</title>
      <link>https://community.qlik.com/t5/QlikView/0-as-prefix/m-p/270884#M101583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are several solutions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;replace(ltrim(replace(NumberText, '0', ' ')), ' ', 0)&amp;nbsp; as Number1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;num(NumberText) as Number2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NumberText * 1 as Number3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2011 07:11:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/0-as-prefix/m-p/270884#M101583</guid>
      <dc:creator />
      <dc:date>2011-06-08T07:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: '0' as prefix</title>
      <link>https://community.qlik.com/t5/QlikView/0-as-prefix/m-p/270885#M101584</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;At least in version 10 there's usually no such need of get rid of blanks, since the Num() function will work them around and will represent the value as numeric. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A couple of examples:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;Num('&amp;nbsp;&amp;nbsp; 000345 ') + 3&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;will return 348&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;Num(&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 345&amp;nbsp;&amp;nbsp; ) + 5&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;will work as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;Num(&amp;nbsp;&amp;nbsp; 345.4 ) + .6&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I'd leave the Num() function instead of using more complex functions that can affect performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2011 07:42:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/0-as-prefix/m-p/270885#M101584</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-06-08T07:42:21Z</dc:date>
    </item>
  </channel>
</rss>

