<?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 Create new field using if statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-new-field-using-if-statement/m-p/91871#M757427</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 field which has string values. I want to create a field flag if any of the values contain the word 'enter'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Location]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;London,&lt;/P&gt;&lt;P&gt;singapore enter &lt;/P&gt;&lt;P&gt;china enter&lt;/P&gt;&lt;P&gt;enter Japan&lt;/P&gt;&lt;P&gt;India&lt;/P&gt;&lt;P&gt;Germany&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This new field should seperate all values that do/dont have enter in them&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aaron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>aaronnayan</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Create new field using if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Create-new-field-using-if-statement/m-p/91871#M757427</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 field which has string values. I want to create a field flag if any of the values contain the word 'enter'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Location]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;London,&lt;/P&gt;&lt;P&gt;singapore enter &lt;/P&gt;&lt;P&gt;china enter&lt;/P&gt;&lt;P&gt;enter Japan&lt;/P&gt;&lt;P&gt;India&lt;/P&gt;&lt;P&gt;Germany&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This new field should seperate all values that do/dont have enter in them&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aaron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-new-field-using-if-statement/m-p/91871#M757427</guid>
      <dc:creator>aaronnayan</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Create new field using if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Create-new-field-using-if-statement/m-p/91872#M757428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aaron&lt;/P&gt;&lt;P&gt;In your load script try if(match('enter ',' enter'),'Y','N') as Flag this way you will capture locations that have space before the word enter or after. If there is no space after the word just amend to 'enter'&lt;/P&gt;&lt;P&gt;Kindest regards&lt;/P&gt;&lt;P&gt;Brian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2018 13:45:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-new-field-using-if-statement/m-p/91872#M757428</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-20T13:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: Create new field using if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Create-new-field-using-if-statement/m-p/91873#M757429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Index(Location,'&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;enter'), Location) as Enter_Location&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2018 13:53:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-new-field-using-if-statement/m-p/91873#M757429</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2018-09-20T13:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: Create new field using if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Create-new-field-using-if-statement/m-p/91874#M757430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thanks for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where do i use the field [location]?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2018 14:27:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-new-field-using-if-statement/m-p/91874#M757430</guid>
      <dc:creator>aaronnayan</dc:creator>
      <dc:date>2018-09-20T14:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: Create new field using if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Create-new-field-using-if-statement/m-p/91875#M757431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Location,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(Wildmatch(Location, '*enter*') &amp;gt;0, Location) AS EnterLocation&lt;/P&gt;&lt;P&gt;FROM tablename;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2018 15:06:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-new-field-using-if-statement/m-p/91875#M757431</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2018-09-20T15:06:14Z</dc:date>
    </item>
  </channel>
</rss>

