<?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: String function in Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/String-function-in-Script/m-p/682939#M673959</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use it in script like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;[DM Name],&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;left([DM Name], 1) &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;amp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;left(subfield([DM Name], ' ', 2), 1) as [DM Name Initial],&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;....&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;FROM ....;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Hope this helps!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Aug 2014 13:50:10 GMT</pubDate>
    <dc:creator>jerem1234</dc:creator>
    <dc:date>2014-08-14T13:50:10Z</dc:date>
    <item>
      <title>String function in Script</title>
      <link>https://community.qlik.com/t5/QlikView/String-function-in-Script/m-p/682937#M673957</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;I want to apply a string function to the field [DM Name] to extract initials. For example, if the name is John Smith, I want JS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following string function but how do I use this to create a new field with initials?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left([DM Name], 1)&lt;/P&gt;&lt;P&gt;&amp;amp;&lt;/P&gt;&lt;P&gt;left(subfield([DM Name], ' ', 2), 1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;Isabel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 13:46:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-function-in-Script/m-p/682937#M673957</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-08-14T13:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: String function in Script</title>
      <link>https://community.qlik.com/t5/QlikView/String-function-in-Script/m-p/682938#M673958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;,left([DM Name], 1) &amp;amp; left(subfield([DM Name], ' ', 2), 1) as [NewFieldName]&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;from&lt;/P&gt;&lt;P&gt;&lt;TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;/TABLE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 13:50:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-function-in-Script/m-p/682938#M673958</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2014-08-14T13:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: String function in Script</title>
      <link>https://community.qlik.com/t5/QlikView/String-function-in-Script/m-p/682939#M673959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use it in script like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;[DM Name],&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;left([DM Name], 1) &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;amp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;left(subfield([DM Name], ' ', 2), 1) as [DM Name Initial],&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;....&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;FROM ....;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Hope this helps!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 13:50:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-function-in-Script/m-p/682939#M673959</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2014-08-14T13:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: String function in Script</title>
      <link>https://community.qlik.com/t5/QlikView/String-function-in-Script/m-p/682940#M673960</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;maybe a more generic approach in case there are also middle names:&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 _jivemacro_uid_14080299856274126" jivemacro_uid="_14080299856274126"&gt;
&lt;P&gt;LOAD [DM Name],&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Concat(Left(Names,1),'',RecNo()) as Initials&lt;/P&gt;
&lt;P&gt;Group By [DM Name], RecNo;&lt;/P&gt;
&lt;P&gt;LOAD [DM Name],&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SubField([DM Name], ' ') as Names,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RecNo() as RecNo&lt;/P&gt;
&lt;P&gt;Inline [&lt;/P&gt;
&lt;P&gt;DM Name&lt;/P&gt;
&lt;P&gt;John Smith&lt;/P&gt;
&lt;P&gt;Jane Smith&lt;/P&gt;
&lt;P&gt;Jane Smith&lt;/P&gt;
&lt;P&gt;Bob Smith&lt;/P&gt;
&lt;P&gt;John William Smith&lt;/P&gt;
&lt;P&gt;Jane Mary Smith&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;IMG __jive_id="64438" alt="QlikCommunity_Thread_129543_Pic1.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/64438_QlikCommunity_Thread_129543_Pic1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 14:35:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-function-in-Script/m-p/682940#M673960</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-08-14T14:35:19Z</dc:date>
    </item>
  </channel>
</rss>

