<?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 functions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/String-functions/m-p/619421#M681811</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;if(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;index&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ddd&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,'-')&amp;gt;0, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;subfield&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ddd&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,'-',1)&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;right&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;subfield&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ddd&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,'-',2),1)&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;left&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;subfield&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ddd&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,'-',2),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;len&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;subfield&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ddd&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,'-',2))-1),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ddd&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) as &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;d2 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;in your load statement in the example qvw above.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;IMG alt="test-string.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/55816_test-string.png" style="width: 620px; height: 470px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Mar 2014 15:23:30 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-03-25T15:23:30Z</dc:date>
    <item>
      <title>String functions</title>
      <link>https://community.qlik.com/t5/QlikView/String-functions/m-p/619414#M681804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm having data in this format &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VC4&lt;/P&gt;&lt;P&gt;VC4-4c&lt;/P&gt;&lt;P&gt;VC4-16c&lt;/P&gt;&lt;P&gt;VC4-64c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i want in this format&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VC4c4&lt;/P&gt;&lt;P&gt;VC4c16&lt;/P&gt;&lt;P&gt;VC4c64&lt;/P&gt;&lt;P&gt;VC4c256&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 11:51:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-functions/m-p/619414#M681804</guid>
      <dc:creator />
      <dc:date>2014-03-25T11:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: String functions</title>
      <link>https://community.qlik.com/t5/QlikView/String-functions/m-p/619415#M681805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please take a look at the attachment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 11:56:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-functions/m-p/619415#M681805</guid>
      <dc:creator>sudeepkm</dc:creator>
      <dc:date>2014-03-25T11:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: String functions</title>
      <link>https://community.qlik.com/t5/QlikView/String-functions/m-p/619416#M681806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use Replace Function in your script..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Replace(YourFieldName,'-','') as YourFieldName&lt;/P&gt;&lt;P&gt;From TableName;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 11:58:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-functions/m-p/619416#M681806</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-03-25T11:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: String functions</title>
      <link>https://community.qlik.com/t5/QlikView/String-functions/m-p/619417#M681807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;replace (Field,'-','') as NewField&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;MT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 12:00:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-functions/m-p/619417#M681807</guid>
      <dc:creator />
      <dc:date>2014-03-25T12:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: String functions</title>
      <link>https://community.qlik.com/t5/QlikView/String-functions/m-p/619418#M681808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;Hi Shehal,&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;You can use Purgechar function anything that has to be take it off in your script '-'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;so try like these &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;=purgechar ( Youfieldname,'-' )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;For replace function works like below it good to use purgechar for best&amp;nbsp; optimization &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;&lt;SPAN class="Code"&gt;replace('abccde','cc','xyz')&lt;/SPAN&gt; returns '&lt;SPAN class="Italic"&gt;abxyzde&lt;/SPAN&gt;'&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 12:02:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-functions/m-p/619418#M681808</guid>
      <dc:creator>sunilkumarqv</dc:creator>
      <dc:date>2014-03-25T12:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: String functions</title>
      <link>https://community.qlik.com/t5/QlikView/String-functions/m-p/619419#M681809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;but i dnt Vc44c i want Vc4c4 in this way others also&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 12:23:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-functions/m-p/619419#M681809</guid>
      <dc:creator />
      <dc:date>2014-03-25T12:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: String functions</title>
      <link>https://community.qlik.com/t5/QlikView/String-functions/m-p/619420#M681810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please elaborate a little bit more. The above example is different from your original example.&lt;/P&gt;&lt;P&gt;Can you create a table and put the two fields side by side with like 5,6 records as to how you want the result to be.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 15:12:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-functions/m-p/619420#M681810</guid>
      <dc:creator />
      <dc:date>2014-03-25T15:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: String functions</title>
      <link>https://community.qlik.com/t5/QlikView/String-functions/m-p/619421#M681811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;if(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;index&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ddd&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,'-')&amp;gt;0, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;subfield&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ddd&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,'-',1)&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;right&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;subfield&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ddd&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,'-',2),1)&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;left&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;subfield&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ddd&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,'-',2),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;len&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;subfield&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ddd&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,'-',2))-1),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ddd&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) as &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;d2 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;in your load statement in the example qvw above.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;IMG alt="test-string.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/55816_test-string.png" style="width: 620px; height: 470px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 15:23:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-functions/m-p/619421#M681811</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-25T15:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: String functions</title>
      <link>https://community.qlik.com/t5/QlikView/String-functions/m-p/619422#M681812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Snehal Mejari,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have write following expression in your script,&lt;/P&gt;&lt;P&gt;Subfield(Data,'-',1)&amp;amp;''&amp;amp;PurgeChar(SubField(Data,'-',2),'1234567890')&amp;amp;''&amp;amp;KeepChar(SubField(Data,'-',2),'1234567890')*4 as newData&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which give you required as you want .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For better understanding i am attaching sample QVW&lt;/P&gt;&lt;P&gt;Check this It will help you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 15:38:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-functions/m-p/619422#M681812</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2014-03-25T15:38:09Z</dc:date>
    </item>
  </channel>
</rss>

