<?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 function num() for the string in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/function-num-for-the-string/m-p/259508#M97965</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; it works, thanks you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but now I will try to solve my last problem : I think it's a problem with a proportionnal font.&lt;/P&gt;&lt;P&gt;because I have now :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 5000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5000&lt;/P&gt;&lt;P&gt;&amp;nbsp; 5000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 5000&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Nov 2011 13:03:32 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-11-28T13:03:32Z</dc:date>
    <item>
      <title>function num() for the string</title>
      <link>https://community.qlik.com/t5/QlikView/function-num-for-the-string/m-p/259506#M97963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my script, I would like to do like the num() function, but for the string.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;for example : &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Y = 50&lt;/P&gt;&lt;P&gt;X = num(Y,0000);&lt;/P&gt;&lt;P&gt;==&amp;gt; then X = 0050.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to do the same but with the blank character (before or after). if Y = 50, I need to have X = '&amp;nbsp; 50' or X = '50&amp;nbsp; '&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A function is available for this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2011 10:35:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/function-num-for-the-string/m-p/259506#M97963</guid>
      <dc:creator />
      <dc:date>2011-11-28T10:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: function num() for the string</title>
      <link>https://community.qlik.com/t5/QlikView/function-num-for-the-string/m-p/259507#M97964</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;Do you mean this?&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;=&lt;SPAN class="s1"&gt;Text&lt;/SPAN&gt;(&lt;SPAN class="s1"&gt;Repeat&lt;/SPAN&gt;(' ', 4 - &lt;SPAN class="s1"&gt;Len&lt;/SPAN&gt;(Y)) &amp;amp; Y)&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4 is the fixed length of the maximum number of chars that your string should have. If Y = 50, then it will add two spaces before the value of Y. Similarly, you can do it to put the spaces after the value of Y:&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;&lt;SPAN class="s1" style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; white-space: pre; background-color: #ffffff;"&gt;=Text&lt;/SPAN&gt;(Y &amp;amp; &lt;SPAN class="s1" style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; white-space: pre; background-color: #ffffff;"&gt;Repeat&lt;/SPAN&gt;(' ', 4 - &lt;SPAN class="s1" style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; white-space: pre; background-color: #ffffff;"&gt;Len&lt;/SPAN&gt;(Y)))&lt;/P&gt;&lt;/PRE&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;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2011 10:43:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/function-num-for-the-string/m-p/259507#M97964</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-11-28T10:43:46Z</dc:date>
    </item>
    <item>
      <title>function num() for the string</title>
      <link>https://community.qlik.com/t5/QlikView/function-num-for-the-string/m-p/259508#M97965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; it works, thanks you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but now I will try to solve my last problem : I think it's a problem with a proportionnal font.&lt;/P&gt;&lt;P&gt;because I have now :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 5000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5000&lt;/P&gt;&lt;P&gt;&amp;nbsp; 5000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 5000&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2011 13:03:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/function-num-for-the-string/m-p/259508#M97965</guid>
      <dc:creator />
      <dc:date>2011-11-28T13:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: function num() for the string</title>
      <link>https://community.qlik.com/t5/QlikView/function-num-for-the-string/m-p/259509#M97966</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 seems you need some trimming in your results, or better in your input code:&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;&lt;SPAN class="s1" style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; white-space: pre; background-color: #ffffff;"&gt;Text&lt;/SPAN&gt;(&lt;SPAN class="s1" style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; white-space: pre; background-color: #ffffff;"&gt;Repeat&lt;/SPAN&gt;(' ', 4 - &lt;SPAN class="s1" style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; white-space: pre; background-color: #ffffff;"&gt;Len&lt;/SPAN&gt;(Trim(Y))) &amp;amp; Trim(Y))&lt;/P&gt;&lt;/PRE&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;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2011 13:12:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/function-num-for-the-string/m-p/259509#M97966</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-11-28T13:12:33Z</dc:date>
    </item>
  </channel>
</rss>

