<?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: Replace with String Contains in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Replace-with-String-Contains/m-p/901986#M313696</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jagan.&lt;/P&gt;&lt;P&gt;I want to do this in front end.&amp;nbsp; The given expression is fine.&lt;/P&gt;&lt;P&gt;But if I have Large String,&amp;nbsp; is any other function is available?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sethu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 May 2015 04:50:51 GMT</pubDate>
    <dc:creator>settu_periasamy</dc:creator>
    <dc:date>2015-05-21T04:50:51Z</dc:date>
    <item>
      <title>Replace with String Contains</title>
      <link>https://community.qlik.com/t5/QlikView/Replace-with-String-Contains/m-p/901981#M313691</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;I need to replace the string based on between the values(like textbetween). see the example below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need to replace the String &lt;SPAN style="color: #ff0000; font-size: 12pt;"&gt;'&lt;STRONG&gt;: * |&lt;/STRONG&gt;'&lt;/SPAN&gt; as blank. &lt;SPAN style="text-decoration: underline;"&gt;(note :&lt;/SPAN&gt;&amp;nbsp; '*' contains any length)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 374px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="374"&gt;FieldOne&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;: raja |&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="font0"&gt;&lt;SPAN style="color: #ff0000;"&gt; &lt;/SPAN&gt;FieldTwo&lt;/SPAN&gt;&lt;SPAN class="font5"&gt;&lt;STRONG style="color: #ff0000;"&gt;: India |&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="font0"&gt;&lt;STRONG style="color: #ff0000;"&gt; &lt;/STRONG&gt;FieldThree&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;: Calculated |&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;result should be :&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 374px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="374"&gt;&lt;STRONG&gt;FieldOne &lt;SPAN class="font0"&gt;FieldTwo &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN class="font0"&gt;&lt;STRONG&gt;FieldThree&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried the below expression&lt;/P&gt;&lt;P&gt;'=replace(&lt;STRONG&gt;'FieldOne: raja | FieldTwo: India | FieldThree: Calculated |'&lt;/STRONG&gt;,':'&amp;amp;chr(42)&amp;amp;'|',' ')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2015 03:57:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replace-with-String-Contains/m-p/901981#M313691</guid>
      <dc:creator>settu_periasamy</dc:creator>
      <dc:date>2015-05-21T03:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: Replace with String Contains</title>
      <link>https://community.qlik.com/t5/QlikView/Replace-with-String-Contains/m-p/901982#M313692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's gonna be hard in a sheet object. I would suggest doing it in the script, so your data is pre-formatted for presentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="xml" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14321819170343113 jive_text_macro" jivemacro_uid="_14321819170343113"&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;LOAD&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp; SubField(F1, ':', 1) AS F1&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;;&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;LOAD &lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp; SubField(F1, ' | ')&amp;nbsp; AS F1&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;Inline [&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;F1&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;FieldOne: raja | FieldTwo: India | FieldThree: Calculated |&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;];&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2015 04:18:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replace-with-String-Contains/m-p/901982#M313692</guid>
      <dc:creator>ToniKautto</dc:creator>
      <dc:date>2015-05-21T04:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: Replace with String Contains</title>
      <link>https://community.qlik.com/t5/QlikView/Replace-with-String-Contains/m-p/901983#M313693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with &lt;/P&gt;&lt;P&gt;=PurgeChar('FieldOne: raja | FieldTwo: India | FieldThree: Calculated |', ':|')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2015 04:20:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replace-with-String-Contains/m-p/901983#M313693</guid>
      <dc:creator>senpradip007</dc:creator>
      <dc:date>2015-05-21T04:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: Replace with String Contains</title>
      <link>https://community.qlik.com/t5/QlikView/Replace-with-String-Contains/m-p/901984#M313694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;left(F1, Index(F1,':',1)-1) &amp;amp;' '&amp;amp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mid(F1,Index(F1,'|',1)+1,Index(F1,':',2)-Index(F1,'|',1)-1 ) &amp;amp;' '&amp;amp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mid(F1,Index(F1,'|',2)+1,Index(F1,':',3)-Index(F1,'|',2)-1 ) as Result&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; F1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FieldOne: raja | FieldTwo: India | FieldThree: Calculated |&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2015 04:23:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replace-with-String-Contains/m-p/901984#M313694</guid>
      <dc:creator>danieloberbilli</dc:creator>
      <dc:date>2015-05-21T04:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: Replace with String Contains</title>
      <link>https://community.qlik.com/t5/QlikView/Replace-with-String-Contains/m-p/901985#M313695</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;Try like this in script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; RecordNum,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; RowNo() AS Num,&lt;/P&gt;&lt;P&gt;&amp;nbsp; SubField(F1, ':', 1) AS F1&amp;nbsp; &lt;/P&gt;&lt;P&gt;;&amp;nbsp; &lt;/P&gt;&lt;P&gt;LOAD RecNo() AS RecordNum,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; SubField(F1, ' | ')&amp;nbsp; AS F1&amp;nbsp; &lt;/P&gt;&lt;P&gt;Inline [&amp;nbsp; &lt;/P&gt;&lt;P&gt;F1&amp;nbsp; &lt;/P&gt;&lt;P&gt;FieldOne: raja | FieldTwo: India | FieldThree: Calculated |&amp;nbsp; &lt;/P&gt;&lt;P&gt;]; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;RecordNum,&lt;/P&gt;&lt;P&gt;CONCAT(F1, ' ', Num) AS Value&lt;/P&gt;&lt;P&gt;RESIDENT Temp&lt;/P&gt;&lt;P&gt;GROUP BY RecordNum&lt;/P&gt;&lt;P&gt;ORDER BY Num;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE Temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR if you want to do it in front end try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=SubField(SubField('FieldOne: raja | FieldTwo: India | FieldThree: Calculated |', ' |', 1), ':', 1) &amp;amp; ' ' &amp;amp; SubField(SubField('FieldOne: raja | FieldTwo: India | FieldThree: Calculated |', ' |', 2), ':', 1) &amp;amp;&lt;/P&gt;&lt;P&gt;SubField(SubField('FieldOne: raja | FieldTwo: India | FieldThree: Calculated |', ' |', 3), ':', 1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2015 04:29:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replace-with-String-Contains/m-p/901985#M313695</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-05-21T04:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: Replace with String Contains</title>
      <link>https://community.qlik.com/t5/QlikView/Replace-with-String-Contains/m-p/901986#M313696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jagan.&lt;/P&gt;&lt;P&gt;I want to do this in front end.&amp;nbsp; The given expression is fine.&lt;/P&gt;&lt;P&gt;But if I have Large String,&amp;nbsp; is any other function is available?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sethu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2015 04:50:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replace-with-String-Contains/m-p/901986#M313696</guid>
      <dc:creator>settu_periasamy</dc:creator>
      <dc:date>2015-05-21T04:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: Replace with String Contains</title>
      <link>https://community.qlik.com/t5/QlikView/Replace-with-String-Contains/m-p/901987#M313697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I tried this. But not getting the expected result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2015 04:51:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replace-with-String-Contains/m-p/901987#M313697</guid>
      <dc:creator>settu_periasamy</dc:creator>
      <dc:date>2015-05-21T04:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: Replace with String Contains</title>
      <link>https://community.qlik.com/t5/QlikView/Replace-with-String-Contains/m-p/901988#M313698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assume the long string comes from the loaded data, so why do you want to process it in run-time instead of pre-processing it during reload?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I realized I forgot to add the concat in my example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="xml" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14321845042231676" jivemacro_uid="_14321845042231676"&gt;
&lt;P&gt;LOAD Concat(F1) AS F1;&lt;/P&gt;
&lt;P&gt;LOAD SubField(F1, ':', 1) AS F1;&lt;/P&gt;
&lt;P&gt;LOAD SubField(F1, ' | ')&amp;nbsp; AS F1&lt;/P&gt;
&lt;P&gt;Inline [&lt;/P&gt;
&lt;P&gt;F1&lt;/P&gt;
&lt;P&gt;FieldOne: raja | FieldTwo: India | FieldThree: Calculated |&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2015 05:01:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replace-with-String-Contains/m-p/901988#M313698</guid>
      <dc:creator>ToniKautto</dc:creator>
      <dc:date>2015-05-21T05:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: Replace with String Contains</title>
      <link>https://community.qlik.com/t5/QlikView/Replace-with-String-Contains/m-p/901989#M313699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My example from above also works in the frontend...just type the following expression in a textbox or chart and replace the field name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left(F1, Index(F1,':',1)-1) &amp;amp;' '&amp;amp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mid(F1,Index(F1,'|',1)+1,Index(F1,':',2)-Index(F1,'|',1)-1 ) &amp;amp;' '&amp;amp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mid(F1,Index(F1,'|',2)+1,Index(F1,':',3)-Index(F1,'|',2)-1 )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2015 05:03:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replace-with-String-Contains/m-p/901989#M313699</guid>
      <dc:creator>danieloberbilli</dc:creator>
      <dc:date>2015-05-21T05:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: Replace with String Contains</title>
      <link>https://community.qlik.com/t5/QlikView/Replace-with-String-Contains/m-p/901990#M313700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Toni. I will try to implement this in the script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2015 05:11:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replace-with-String-Contains/m-p/901990#M313700</guid>
      <dc:creator>settu_periasamy</dc:creator>
      <dc:date>2015-05-21T05:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: Replace with String Contains</title>
      <link>https://community.qlik.com/t5/QlikView/Replace-with-String-Contains/m-p/901991#M313701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is working fine Daniel. But the problem is , Only three strings displayed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you. I'm closing this Discussion&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2015 05:14:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replace-with-String-Contains/m-p/901991#M313701</guid>
      <dc:creator>settu_periasamy</dc:creator>
      <dc:date>2015-05-21T05:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: Replace with String Contains</title>
      <link>https://community.qlik.com/t5/QlikView/Replace-with-String-Contains/m-p/901992#M313702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sethu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Copy the string into a variable and use that variable in the expression.&amp;nbsp; If your string is dynamic like 4, 5 , 6 values then trying this in script is the best option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2015 05:19:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replace-with-String-Contains/m-p/901992#M313702</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-05-21T05:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: Replace with String Contains</title>
      <link>https://community.qlik.com/t5/QlikView/Replace-with-String-Contains/m-p/901993#M313703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok Jagan. I will do like that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2015 05:21:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replace-with-String-Contains/m-p/901993#M313703</guid>
      <dc:creator>settu_periasamy</dc:creator>
      <dc:date>2015-05-21T05:21:39Z</dc:date>
    </item>
  </channel>
</rss>

