<?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: Find and replace the Text in the IF condition in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Find-and-replace-the-Text-in-the-IF-condition/m-p/1874702#M72136</link>
    <description>&lt;P&gt;This hasn't clarified the issue at all, but if there are only six total values, I would just write a basic pick/match statement such as (for the three values you provided):&lt;/P&gt;
&lt;P&gt;Pick(Match(&lt;STRONG&gt;Countrycode&lt;/STRONG&gt; ,'Germany-capital349','Koria-capital682','Malaysia-capital22'),'Deutschland - capital349','Seoul - capital682','Coula - capital22') as FieldNameHere&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Dec 2021 13:50:26 GMT</pubDate>
    <dc:creator>Or</dc:creator>
    <dc:date>2021-12-23T13:50:26Z</dc:date>
    <item>
      <title>Find and replace the Text in the IF condition</title>
      <link>https://community.qlik.com/t5/App-Development/Find-and-replace-the-Text-in-the-IF-condition/m-p/1874677#M72130</link>
      <description>&lt;P&gt;Hi Guys,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need some assistance on minor code.&amp;nbsp; I have a field name called "&lt;STRONG&gt;CountryCode" &lt;/STRONG&gt;consists of list of values are 'Germany-capital349' , 'Koria-capital682' etc..&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm looking to write one if condition in the load statement.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;'Germany-capital349'&amp;nbsp; &amp;nbsp;--replace--&amp;gt; &lt;STRONG&gt;Deutschland -&lt;/STRONG&gt; capital349&lt;/P&gt;
&lt;P&gt;'Koria-capital682'&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; replace --&amp;gt;&amp;nbsp;&lt;STRONG&gt;Seoul -&lt;/STRONG&gt; capital682&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;basically the first few country charectors should be replace with&amp;nbsp; other text. Please help&lt;/P&gt;
&lt;TABLE width="315"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="134"&gt;CountryCode&lt;/TD&gt;
&lt;TD width="181"&gt;Expected Result&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;Germany-capital349&lt;/TD&gt;
&lt;TD&gt;Deutschland - capital349&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;Koria-capital682&lt;/TD&gt;
&lt;TD&gt;Seoul - capital682&amp;nbsp; &amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;Malaysia-capital22&lt;/TD&gt;
&lt;TD&gt;Coula - capital22&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P class="hcp7"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:22:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Find-and-replace-the-Text-in-the-IF-condition/m-p/1874677#M72130</guid>
      <dc:creator>PBITLATMHCC</dc:creator>
      <dc:date>2024-11-15T23:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: Find and replace the Text in the IF condition</title>
      <link>https://community.qlik.com/t5/App-Development/Find-and-replace-the-Text-in-the-IF-condition/m-p/1874686#M72131</link>
      <description>&lt;P&gt;How do you expect Qlik to make this replacement? There doesn't seem to be any particular logic to it (in the first line you've replaced the country with the local-language country name, but in the second you've replaced the country, which is not in English in the first place as that would be Korea, with its capital city). Do you have some sort of additional list to use for making this translation between values?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 12:55:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Find-and-replace-the-Text-in-the-IF-condition/m-p/1874686#M72131</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2021-12-23T12:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: Find and replace the Text in the IF condition</title>
      <link>https://community.qlik.com/t5/App-Development/Find-and-replace-the-Text-in-the-IF-condition/m-p/1874688#M72132</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;you can break&amp;nbsp;&lt;STRONG&gt;CountryCode &lt;/STRONG&gt;in two fields with the function subfield like this:&lt;/P&gt;
&lt;P&gt;subfield(CountryCode,'-',1) as&amp;nbsp;Country,&lt;/P&gt;
&lt;P&gt;subfiled(CountryCode,'-',2) as Code&lt;/P&gt;
&lt;P&gt;and now you can replace all values as you want.&lt;/P&gt;
&lt;P&gt;Finally with &amp;amp; you can concatenate it.&lt;/P&gt;
&lt;P&gt;More or less like this...&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;A:&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;load&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;CountryNew&amp;amp;'-'&amp;amp;Code as&amp;nbsp;CountryCodeNew;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;load&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;replace(replace(replace(Country,'Germany','Deutschland&amp;nbsp;'),'Koria','Seoul&amp;nbsp;'),'etc','etc') as&amp;nbsp;CountryNew;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;load&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;subfield(CountryCode,'-',1) as&amp;nbsp;Country,&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;subfiled(CountryCode,'-',2) as Code&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;from table;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 12:59:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Find-and-replace-the-Text-in-the-IF-condition/m-p/1874688#M72132</guid>
      <dc:creator>jmartineze</dc:creator>
      <dc:date>2021-12-23T12:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: Find and replace the Text in the IF condition</title>
      <link>https://community.qlik.com/t5/App-Development/Find-and-replace-the-Text-in-the-IF-condition/m-p/1874696#M72134</link>
      <description>&lt;P&gt;I have total only 6 values in the &lt;STRONG&gt;Countrycode&lt;/STRONG&gt; Field. as per requirement business provided inputs like where there is a&amp;nbsp; "&lt;SPAN&gt;Koria-capital682" replace with "Seoul - capital682".&amp;nbsp; and same as second value&amp;nbsp; "Malaysia-capital22"&amp;nbsp; first few characters replace with "Coula - capital22"&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I'm trying to implement in the transformation layer, if condition&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 13:23:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Find-and-replace-the-Text-in-the-IF-condition/m-p/1874696#M72134</guid>
      <dc:creator>PBITLATMHCC</dc:creator>
      <dc:date>2021-12-23T13:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: Find and replace the Text in the IF condition</title>
      <link>https://community.qlik.com/t5/App-Development/Find-and-replace-the-Text-in-the-IF-condition/m-p/1874702#M72136</link>
      <description>&lt;P&gt;This hasn't clarified the issue at all, but if there are only six total values, I would just write a basic pick/match statement such as (for the three values you provided):&lt;/P&gt;
&lt;P&gt;Pick(Match(&lt;STRONG&gt;Countrycode&lt;/STRONG&gt; ,'Germany-capital349','Koria-capital682','Malaysia-capital22'),'Deutschland - capital349','Seoul - capital682','Coula - capital22') as FieldNameHere&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 13:50:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Find-and-replace-the-Text-in-the-IF-condition/m-p/1874702#M72136</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2021-12-23T13:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: Find and replace the Text in the IF condition</title>
      <link>https://community.qlik.com/t5/App-Development/Find-and-replace-the-Text-in-the-IF-condition/m-p/1874720#M72137</link>
      <description>&lt;P&gt;maybe helpful:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense/November2021/Subsystems/Hub/Content/Sense_Hub/Scripting/MappingFunctions/ApplyMap.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense/November2021/Subsystems/Hub/Content/Sense_Hub/Scripting/MappingFunctions/ApplyMap.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 14:25:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Find-and-replace-the-Text-in-the-IF-condition/m-p/1874720#M72137</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2021-12-23T14:25:47Z</dc:date>
    </item>
  </channel>
</rss>

