<?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 IF/LIKE operator question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/IF-LIKE-operator-question/m-p/514703#M192242</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need help with coming up with the correct syntax in my load script that I believe requires the IF operator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a field (JOB_GROUP) where the values consist of backup jobs and application jobs.&amp;nbsp; All of the field values that start with BU are backup jobs and everything else are application jobs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my load script I think the best approach would be to create two addition fields (BACKUP_JOB and APPLICATION_JOB).&amp;nbsp; I intend to add a list box to my document so that users can filter on the job types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I’m not sure if I should be using the LIKE or MATCH operator or something else entirely when creating these new fields.&amp;nbsp; Any help would be greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Nov 2013 17:19:36 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-11-12T17:19:36Z</dc:date>
    <item>
      <title>IF/LIKE operator question</title>
      <link>https://community.qlik.com/t5/QlikView/IF-LIKE-operator-question/m-p/514703#M192242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need help with coming up with the correct syntax in my load script that I believe requires the IF operator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a field (JOB_GROUP) where the values consist of backup jobs and application jobs.&amp;nbsp; All of the field values that start with BU are backup jobs and everything else are application jobs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my load script I think the best approach would be to create two addition fields (BACKUP_JOB and APPLICATION_JOB).&amp;nbsp; I intend to add a list box to my document so that users can filter on the job types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I’m not sure if I should be using the LIKE or MATCH operator or something else entirely when creating these new fields.&amp;nbsp; Any help would be greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 17:19:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-LIKE-operator-question/m-p/514703#M192242</guid>
      <dc:creator />
      <dc:date>2013-11-12T17:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: IF/LIKE operator question</title>
      <link>https://community.qlik.com/t5/QlikView/IF-LIKE-operator-question/m-p/514704#M192243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Shannon&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your load script how about:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ( left( &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[JOB_GROUP] , 2 ) = 'BU' , 'Backup Job' , 'Application Job' )&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as [Job Type] &lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Bill&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 17:26:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-LIKE-operator-question/m-p/514704#M192243</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-12T17:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: IF/LIKE operator question</title>
      <link>https://community.qlik.com/t5/QlikView/IF-LIKE-operator-question/m-p/514705#M192244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This works and got me what I needed.&amp;nbsp; Thanks so much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 17:32:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-LIKE-operator-question/m-p/514705#M192244</guid>
      <dc:creator />
      <dc:date>2013-11-12T17:32:06Z</dc:date>
    </item>
  </channel>
</rss>

