<?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: Create keywords(*BUSINESS*) from column data. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-keywords-BUSINESS-from-column-data/m-p/1200963#M627220</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you are right!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 30 Oct 2016 20:02:17 GMT</pubDate>
    <dc:creator>jim_chan</dc:creator>
    <dc:date>2016-10-30T20:02:17Z</dc:date>
    <item>
      <title>Create keywords(*BUSINESS*) from column data.</title>
      <link>https://community.qlik.com/t5/QlikView/Create-keywords-BUSINESS-from-column-data/m-p/1200961#M627218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i wanted to create a keyword field from 1 of my existing field. The existing field is business_description where it contains long desvcription. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i want to create a keywords list box, pick up some words from each of the description .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at the loading script, i've wrote. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If ( business_desc = '*Food*' , 'About Food' , Null() ) as Keywords.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I loaded the script, i have found that the keywords list box is empty! no data! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, my script is wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Oct 2016 19:53:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-keywords-BUSINESS-from-column-data/m-p/1200961#M627218</guid>
      <dc:creator>jim_chan</dc:creator>
      <dc:date>2016-10-30T19:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: Create keywords(*BUSINESS*) from column data.</title>
      <link>https://community.qlik.com/t5/QlikView/Create-keywords-BUSINESS-from-column-data/m-p/1200962#M627219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;If ( business_desc &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;like&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; '*Food*' , 'About Food' , Null() ) as Keywords&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;see also: &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;A href="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/Operators/StringOperators.htm" title="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/Operators/StringOperators.htm"&gt;String operators&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;hope this helps&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Marco&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Oct 2016 19:58:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-keywords-BUSINESS-from-column-data/m-p/1200962#M627219</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-10-30T19:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: Create keywords(*BUSINESS*) from column data.</title>
      <link>https://community.qlik.com/t5/QlikView/Create-keywords-BUSINESS-from-column-data/m-p/1200963#M627220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you are right!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Oct 2016 20:02:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-keywords-BUSINESS-from-column-data/m-p/1200963#M627220</guid>
      <dc:creator>jim_chan</dc:creator>
      <dc:date>2016-10-30T20:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: Create keywords(*BUSINESS*) from column data.</title>
      <link>https://community.qlik.com/t5/QlikView/Create-keywords-BUSINESS-from-column-data/m-p/1200964#M627221</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;if you have a table of keywords, then another solution might be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/236646"&gt;Subfield Function&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Oct 2016 20:10:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-keywords-BUSINESS-from-column-data/m-p/1200964#M627221</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-10-30T20:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: Create keywords(*BUSINESS*) from column data.</title>
      <link>https://community.qlik.com/t5/QlikView/Create-keywords-BUSINESS-from-column-data/m-p/1200965#M627222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marco, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I realised there's&amp;nbsp; a description like - Chili Chicken&amp;nbsp; and another one is Chili Paste Chicken. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to create a keyword that it can find both of this description. Can i write:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if ( business_desc &lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #ff0000;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;like&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; '*Chili* + '*Chicken*' , 'Spicy Chicken' , Null() ) as Keywords&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Oct 2016 20:25:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-keywords-BUSINESS-from-column-data/m-p/1200965#M627222</guid>
      <dc:creator>jim_chan</dc:creator>
      <dc:date>2016-10-30T20:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: Create keywords(*BUSINESS*) from column data.</title>
      <link>https://community.qlik.com/t5/QlikView/Create-keywords-BUSINESS-from-column-data/m-p/1200966#M627223</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;you could try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if ( business_desc &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;like&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; '*Chili*Chicken*' , 'Spicy Chicken' ) as Keywords&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Marco&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Oct 2016 20:28:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-keywords-BUSINESS-from-column-data/m-p/1200966#M627223</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-10-30T20:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: Create keywords(*BUSINESS*) from column data.</title>
      <link>https://community.qlik.com/t5/QlikView/Create-keywords-BUSINESS-from-column-data/m-p/1200967#M627224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how mnay keywords can i add in??? can i add more than 2 keywords, if yes, how should it looks like?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2016 07:07:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-keywords-BUSINESS-from-column-data/m-p/1200967#M627224</guid>
      <dc:creator>jim_chan</dc:creator>
      <dc:date>2016-10-31T07:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: Create keywords(*BUSINESS*) from column data.</title>
      <link>https://community.qlik.com/t5/QlikView/Create-keywords-BUSINESS-from-column-data/m-p/1200968#M627225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a situation as such, and i tried to add it in the loading script, is it possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(*Personnel*|*retain*) ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2016 08:00:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-keywords-BUSINESS-from-column-data/m-p/1200968#M627225</guid>
      <dc:creator>jim_chan</dc:creator>
      <dc:date>2016-10-31T08:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: Create keywords(*BUSINESS*) from column data.</title>
      <link>https://community.qlik.com/t5/QlikView/Create-keywords-BUSINESS-from-column-data/m-p/1200969#M627226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you please post some different examples of your source strings and keyword combinations as well as your expected result to create a sample application with?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2016 21:05:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-keywords-BUSINESS-from-column-data/m-p/1200969#M627226</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-10-31T21:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: Create keywords(*BUSINESS*) from column data.</title>
      <link>https://community.qlik.com/t5/QlikView/Create-keywords-BUSINESS-from-column-data/m-p/1200970#M627227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here's the screenshot. i have also attached sample data.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="screenshot.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/142557_screenshot.jpg" style="height: 105px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's my script :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;final_survey:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If ( survey_desc like '*lamb*' , 'lamb' ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If( survey_desc like '*chili**CHICKEN*' , 'chili chicken' ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If( survey_desc like '*chicken**beef**lamb*' , 'chicken and beef and lamb' ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Null() ))) as keywords&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Resident survey;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; drop table survey;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now this one is not functioning - &lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; &lt;STRONG&gt; If( survey_desc like '*chicken**beef**lamb*' , 'chicken and beef and lamb'.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to have when user choose c&lt;STRONG style="font-size: 13.3333px;"&gt;hicken and beef and lamb &lt;/STRONG&gt;from the listbox, then it should show me desriptions&amp;nbsp; that has chicken,beef and lam words.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2016 05:40:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-keywords-BUSINESS-from-column-data/m-p/1200970#M627227</guid>
      <dc:creator>jim_chan</dc:creator>
      <dc:date>2016-11-01T05:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: Create keywords(*BUSINESS*) from column data.</title>
      <link>https://community.qlik.com/t5/QlikView/Create-keywords-BUSINESS-from-column-data/m-p/1200971#M627228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello , marco?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2016 16:10:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-keywords-BUSINESS-from-column-data/m-p/1200971#M627228</guid>
      <dc:creator>jim_chan</dc:creator>
      <dc:date>2016-11-01T16:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: Create keywords(*BUSINESS*) from column data.</title>
      <link>https://community.qlik.com/t5/QlikView/Create-keywords-BUSINESS-from-column-data/m-p/1200972#M627229</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;depending on your requirements one solution could be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_238143_Pic1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/142626_QlikCommunity_Thread_238143_Pic1.JPG" style="height: 232px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14780311842432180 jive_text_macro" jivemacro_uid="_14780311842432180"&gt;
&lt;P&gt;final_survey:&lt;/P&gt;
&lt;P&gt;LOAD *,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(survey_desc like '*chiken*beef*lamb*', 'chicken and beef and lamb',&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(survey_desc like '*chili*CHICKEN*', 'chili chicken' ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(survey_desc like '*lamb*', 'lamb',Null() ))) as keywords &lt;/P&gt;
&lt;P&gt;Resident survey;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP Table survey;&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So just change the order of your nested if() functions according to the priority you wish.&lt;/P&gt;&lt;P&gt;'*lamb*' in this case only becomes relevant if the string is &lt;STRONG&gt;NOT&lt;/STRONG&gt; like &lt;SPAN style="color: #000000; font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif;"&gt;'*chiken*beef*lamb*'&amp;nbsp; (note the chicken typo in your example).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2016 20:17:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-keywords-BUSINESS-from-column-data/m-p/1200972#M627229</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-11-01T20:17:44Z</dc:date>
    </item>
  </channel>
</rss>

