<?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 Find the string between two fields in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Find-the-string-between-two-fields/m-p/2076927#M88332</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I have two fields - description and search fields, we have to find the value from Search String column&lt;/P&gt;
&lt;P&gt;Example&amp;nbsp; first records &lt;STRONG&gt;100_QV_BCA_Test &lt;/STRONG&gt;and if it is any word available in search string field I have to display (3rd column is my output column)&lt;/P&gt;
&lt;TABLE width="318"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="138"&gt;&lt;STRONG&gt;Description&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="116"&gt;&lt;STRONG&gt;Search String&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="64"&gt;&lt;STRONG&gt;OutPut&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="138"&gt;100_QV_BCA_Test&lt;/TD&gt;
&lt;TD&gt;ABC,BCA,BCC&lt;/TD&gt;
&lt;TD&gt;BCA&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="138"&gt;101_QS_BCC_Test2&lt;/TD&gt;
&lt;TD&gt;ABC,BCA,BCC&lt;/TD&gt;
&lt;TD&gt;BCC&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="138"&gt;102_QSD_CCC_Test3&lt;/TD&gt;
&lt;TD&gt;ABC,BCA,BCC&lt;/TD&gt;
&lt;TD&gt;-&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in Advance&lt;/P&gt;</description>
    <pubDate>Fri, 26 May 2023 19:41:44 GMT</pubDate>
    <dc:creator>Nagaraju_KCS</dc:creator>
    <dc:date>2023-05-26T19:41:44Z</dc:date>
    <item>
      <title>Find the string between two fields</title>
      <link>https://community.qlik.com/t5/App-Development/Find-the-string-between-two-fields/m-p/2076927#M88332</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I have two fields - description and search fields, we have to find the value from Search String column&lt;/P&gt;
&lt;P&gt;Example&amp;nbsp; first records &lt;STRONG&gt;100_QV_BCA_Test &lt;/STRONG&gt;and if it is any word available in search string field I have to display (3rd column is my output column)&lt;/P&gt;
&lt;TABLE width="318"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="138"&gt;&lt;STRONG&gt;Description&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="116"&gt;&lt;STRONG&gt;Search String&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="64"&gt;&lt;STRONG&gt;OutPut&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="138"&gt;100_QV_BCA_Test&lt;/TD&gt;
&lt;TD&gt;ABC,BCA,BCC&lt;/TD&gt;
&lt;TD&gt;BCA&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="138"&gt;101_QS_BCC_Test2&lt;/TD&gt;
&lt;TD&gt;ABC,BCA,BCC&lt;/TD&gt;
&lt;TD&gt;BCC&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="138"&gt;102_QSD_CCC_Test3&lt;/TD&gt;
&lt;TD&gt;ABC,BCA,BCC&lt;/TD&gt;
&lt;TD&gt;-&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in Advance&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2023 19:41:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Find-the-string-between-two-fields/m-p/2076927#M88332</guid>
      <dc:creator>Nagaraju_KCS</dc:creator>
      <dc:date>2023-05-26T19:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: Find the string between two fields</title>
      <link>https://community.qlik.com/t5/App-Development/Find-the-string-between-two-fields/m-p/2076945#M88334</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28038"&gt;@marcus_sommer&lt;/a&gt;,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/336"&gt;@Kushal_Chawda&lt;/a&gt;&amp;nbsp;- can you please take a look&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 27 May 2023 00:31:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Find-the-string-between-two-fields/m-p/2076945#M88334</guid>
      <dc:creator>Nagaraju_KCS</dc:creator>
      <dc:date>2023-05-27T00:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: Find the string between two fields</title>
      <link>https://community.qlik.com/t5/App-Development/Find-the-string-between-two-fields/m-p/2076984#M88338</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28943"&gt;@Nagaraju_KCS&lt;/a&gt;, You could do this.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BrunPierre_0-1685292913643.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/108487iDE69BF4B33A2B580/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BrunPierre_0-1685292913643.png" alt="BrunPierre_0-1685292913643.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Tmp:
LOAD * ,
SubField(Description,'_') as TmpD,
SubField("Search String",',') as TmpSS
Inline [
Description,Search String,
100_QV_BCA_Test,"ABC,BCA,BCC" 	
101_QS_BCC_Test2,"ABC,BCA,BCC" 	
102_QSD_CCC_Test3,"ABC,BCA,BCC"
];

MapOutput:
Mapping LOAD *
Where not IsNull(OutPut);

LOAD Description,
If(WildMatch(TmpD, '*'&amp;amp;TmpSS&amp;amp;'*'),TmpD,Null()) AS OutPut
Resident Tmp;

Data:
LOAD * ,
ApplyMap('MapOutput',Description,'-') as Output
Resident Tmp;

DROP Table Tmp;

DROP Fields TmpD, TmpSS;

EXIT SCRIPT;&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 28 May 2023 17:02:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Find-the-string-between-two-fields/m-p/2076984#M88338</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2023-05-28T17:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: Find the string between two fields</title>
      <link>https://community.qlik.com/t5/App-Development/Find-the-string-between-two-fields/m-p/2077002#M88341</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28943"&gt;@Nagaraju_KCS&lt;/a&gt;&amp;nbsp; try below&lt;/P&gt;
&lt;P&gt;map_search_string:&lt;BR /&gt;mapping LOAD map_from,&lt;BR /&gt;'@from'&amp;amp;map_from&amp;amp;'@to' as map_to;&lt;BR /&gt;load Distinct trim(SubField(&lt;STRONG&gt;&lt;FONT color="#339966"&gt;SearchString&lt;/FONT&gt;&lt;/STRONG&gt;,',')) as map_from&lt;BR /&gt;FROM &lt;FONT color="#FF0000"&gt;Table&lt;/FONT&gt;;&lt;/P&gt;
&lt;P&gt;Data:&lt;BR /&gt;LOAD *,&lt;BR /&gt;TextBetween(MapSubString('map_search_string',&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Description&lt;/FONT&gt;&lt;/STRONG&gt;),'@from','@to') as Output&lt;BR /&gt;FROM &lt;FONT color="#FF0000"&gt;Table&lt;/FONT&gt;;&lt;/P&gt;</description>
      <pubDate>Sat, 27 May 2023 21:48:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Find-the-string-between-two-fields/m-p/2077002#M88341</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2023-05-27T21:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: Find the string between two fields</title>
      <link>https://community.qlik.com/t5/App-Development/Find-the-string-between-two-fields/m-p/2077031#M88342</link>
      <description>&lt;P&gt;If there can only ever be one search string present in description, then this approach might work for you as well:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MarcoWedel_0-1685272798265.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/108482i1F7603CAB4934E73/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MarcoWedel_0-1685272798265.png" alt="MarcoWedel_0-1685272798265.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;table1:
LOAD *,
     Evaluate('Pick(WildMatch('''&amp;amp;Description&amp;amp;Chr(39)&amp;amp;','&amp;amp;Chr(39)&amp;amp;'*'&amp;amp;Replace([Search String],',','*'&amp;amp;Chr(39)&amp;amp;','&amp;amp;Chr(39)&amp;amp;'*')&amp;amp;'*'&amp;amp;Chr(39)&amp;amp;')'&amp;amp;','&amp;amp;Chr(39)&amp;amp;Replace([Search String],',',Chr(39)&amp;amp;','&amp;amp;Chr(39))&amp;amp;Chr(39)&amp;amp;')') as OutPut 
Inline [
Description	Search String
100_QV_BCA_Test	ABC,BCA,BCC
101_QS_BCC_Test2	ABC,BCA,BCC
102_QSD_CCC_Test3	ABC,BCA,BCC
103_QSD_ABC_Test4	ABC,BCA,BCC
104_QSD_ABC_BCA_Test5	ABC,BCA,BCC
105_QSD_ABCD_Test6	ABC,BCA,BCC
] (delimiter is '\t');&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 28 May 2023 11:20:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Find-the-string-between-two-fields/m-p/2077031#M88342</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2023-05-28T11:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: Find the string between two fields</title>
      <link>https://community.qlik.com/t5/App-Development/Find-the-string-between-two-fields/m-p/2077033#M88343</link>
      <description>&lt;P&gt;or slightly shorter:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Evaluate('Pick(WildMatch('''&amp;amp;Description&amp;amp;Chr(39)&amp;amp;',''*'&amp;amp;Replace([Search String],',','*'',''*')&amp;amp;'*''),'''&amp;amp;Replace([Search String],',',Chr(39)&amp;amp;',''')&amp;amp;Chr(39)&amp;amp;')') as OutPut&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 28 May 2023 13:22:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Find-the-string-between-two-fields/m-p/2077033#M88343</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2023-05-28T13:22:02Z</dc:date>
    </item>
  </channel>
</rss>

