<?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: Very easy question (usage of ELSE during app load) in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Very-easy-question-usage-of-ELSE-during-app-load/m-p/2008969#M83451</link>
    <description>&lt;P&gt;G'day&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/169591"&gt;@Shaglok&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;The applymap() function is great for more complex scenarios but Rob's solution is better for this one, however he has a typo. It should read ...&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;if( Match(column1, 'Chinese', 'Spanish') &amp;gt; 0, column1, 'English') as column1&lt;/LI-CODE&gt;
&lt;P&gt;Although it's not strictly necessary, I always include "&amp;gt; 0" as the Match() function returns an integer and not a boolean value.&lt;/P&gt;
&lt;P&gt;Cheers, Barnaby.&lt;/P&gt;</description>
    <pubDate>Thu, 24 Nov 2022 20:22:29 GMT</pubDate>
    <dc:creator>barnabyd</dc:creator>
    <dc:date>2022-11-24T20:22:29Z</dc:date>
    <item>
      <title>Very easy question (usage of ELSE during app load)</title>
      <link>https://community.qlik.com/t5/App-Development/Very-easy-question-usage-of-ELSE-during-app-load/m-p/2008778#M83443</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;
&lt;P&gt;I am new to Qlik and have a very easy question. In my data I have a column with this values:&lt;/P&gt;
&lt;P&gt;Default&lt;/P&gt;
&lt;P&gt;Chinese&lt;/P&gt;
&lt;P&gt;Spanish&lt;/P&gt;
&lt;P&gt;Online&lt;/P&gt;
&lt;P&gt;Warehouse&lt;/P&gt;
&lt;P&gt;Store&lt;/P&gt;
&lt;P&gt;During the load of the app, I need to change all but "Chinese" and "Spanish" into "English". I have 4 REPLACES at this moment that are doing the job, but I know that this is not the optimal.&lt;/P&gt;
&lt;P&gt;REPLACE(REPLACE(REPLACE(REPLACE(column1, 'Default', 'English'), 'Online','English'),'Warehouse','English'),'Store','English') as language&lt;/P&gt;
&lt;P&gt;How can I optimize this with ELSE to get it ready if we need to add more values?&lt;/P&gt;
&lt;P&gt;Thanks!!&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 11:49:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Very-easy-question-usage-of-ELSE-during-app-load/m-p/2008778#M83443</guid>
      <dc:creator>Shaglok</dc:creator>
      <dc:date>2022-11-24T11:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: Very easy question (usage of ELSE during app load)</title>
      <link>https://community.qlik.com/t5/App-Development/Very-easy-question-usage-of-ELSE-during-app-load/m-p/2008786#M83444</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;have a look to the applymap function&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=H0SBt4U343g" target="_self"&gt;https://www.youtube.com/watch?v=H0SBt4U343g&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 11:57:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Very-easy-question-usage-of-ELSE-during-app-load/m-p/2008786#M83444</guid>
      <dc:creator>brunobertels</dc:creator>
      <dc:date>2022-11-24T11:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: Very easy question (usage of ELSE during app load)</title>
      <link>https://community.qlik.com/t5/App-Development/Very-easy-question-usage-of-ELSE-during-app-load/m-p/2008857#M83445</link>
      <description>&lt;P&gt;Here's how you can do it with an if().&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;if(Match(column1, 'Chinese', 'Spanish'), column1, 'English') as column1&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;-Rob&lt;/P&gt;
&lt;P&gt;Edit note: Typo corrected.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2022 16:06:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Very-easy-question-usage-of-ELSE-during-app-load/m-p/2008857#M83445</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2022-11-25T16:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: Very easy question (usage of ELSE during app load)</title>
      <link>https://community.qlik.com/t5/App-Development/Very-easy-question-usage-of-ELSE-during-app-load/m-p/2008969#M83451</link>
      <description>&lt;P&gt;G'day&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/169591"&gt;@Shaglok&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;The applymap() function is great for more complex scenarios but Rob's solution is better for this one, however he has a typo. It should read ...&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;if( Match(column1, 'Chinese', 'Spanish') &amp;gt; 0, column1, 'English') as column1&lt;/LI-CODE&gt;
&lt;P&gt;Although it's not strictly necessary, I always include "&amp;gt; 0" as the Match() function returns an integer and not a boolean value.&lt;/P&gt;
&lt;P&gt;Cheers, Barnaby.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 20:22:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Very-easy-question-usage-of-ELSE-during-app-load/m-p/2008969#M83451</guid>
      <dc:creator>barnabyd</dc:creator>
      <dc:date>2022-11-24T20:22:29Z</dc:date>
    </item>
  </channel>
</rss>

