<?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: Convert Numeric value to  string in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/Convert-Numeric-value-to-string/m-p/2462905#M11550</link>
    <description>&lt;P&gt;Has anyone found a way to print a number variable in a string? Been trying to build a counter that can be used to display a number value for how much health or shields a player has, bur am struggling with the output.&lt;/P&gt;</description>
    <pubDate>Mon, 17 Jun 2024 06:57:55 GMT</pubDate>
    <dc:creator>sakatfu</dc:creator>
    <dc:date>2024-06-17T06:57:55Z</dc:date>
    <item>
      <title>Convert Numeric value to  string</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Convert-Numeric-value-to-string/m-p/2450397#M10997</link>
      <description>&lt;P&gt;We wanted to Convert a numeric value to String and then check the length of the string and if it exceeding 255 we need to get first 255 char or we need to load it as it is.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is the Code we are using , the case statement is working as the data is coming as numeric the code is failing&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;case when&lt;BR /&gt;length($code_value) &amp;gt; 255 then substr($code_value,1,instr($code_value, ";")+250)&lt;BR /&gt;else &lt;BR /&gt;$code_value &lt;BR /&gt;end&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way we convert numeric to string.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 15:11:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Convert-Numeric-value-to-string/m-p/2450397#M10997</guid>
      <dc:creator>AXK0121B</dc:creator>
      <dc:date>2024-05-08T15:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Numeric value to  string</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Convert-Numeric-value-to-string/m-p/2450423#M11001</link>
      <description>&lt;P&gt;A number 255 characters long? How can that be? Maybe we need to see some examples success/fail&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt;&amp;nbsp;&lt;SPAN&gt;Is there a way we convert numeric to string.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Just contatenate with an empty string:&amp;nbsp; &amp;nbsp; &amp;nbsp;'' || $var&lt;/P&gt;
&lt;P&gt;Similar to force to go from string to number :&amp;nbsp; 0 + $var&lt;/P&gt;
&lt;P&gt;Hein&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 15:35:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Convert-Numeric-value-to-string/m-p/2450423#M11001</guid>
      <dc:creator>Heinvandenheuvel</dc:creator>
      <dc:date>2024-05-08T15:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Numeric value to  string</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Convert-Numeric-value-to-string/m-p/2462905#M11550</link>
      <description>&lt;P&gt;Has anyone found a way to print a number variable in a string? Been trying to build a counter that can be used to display a number value for how much health or shields a player has, bur am struggling with the output.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 06:57:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Convert-Numeric-value-to-string/m-p/2462905#M11550</guid>
      <dc:creator>sakatfu</dc:creator>
      <dc:date>2024-06-17T06:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Numeric value to  string</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Convert-Numeric-value-to-string/m-p/2462907#M11551</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/302892"&gt;@sakatfu&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Welcome to Qlik Community forum and thanks for reaching out here!&lt;/P&gt;
&lt;P&gt;As&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/110970"&gt;@Heinvandenheuvel&lt;/a&gt;&amp;nbsp;pointed out the best approach is using the implicit data type conversion in previous comment. Would you please share a sample code if it does not work for you?&lt;/P&gt;
&lt;P&gt;thanks,&lt;/P&gt;
&lt;P&gt;John.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 07:05:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Convert-Numeric-value-to-string/m-p/2462907#M11551</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2024-06-17T07:05:30Z</dc:date>
    </item>
  </channel>
</rss>

