<?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: If Statement Where Field Begins With ... in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-Statement-Where-Field-Begins-With/m-p/941089#M468469</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this may be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Pick(WildMatch(FIELD, 'B*', 'Y*', 'P*', 'F*'), 1, 2, 3, 4) as NewField&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;assuming you were using % for wild card&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Aug 2015 14:21:32 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-08-31T14:21:32Z</dc:date>
    <item>
      <title>If Statement Where Field Begins With ...</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement-Where-Field-Begins-With/m-p/941088#M468468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to create an IF statement to classify different field values into normalized ranges. I want to make it so if FIELD starts with B it is categorized as 1 in NewField. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created the statement below but it is not working as desired. Any help would be appreciated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If([FIELD] LIKE 'B%','1',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If([FIELD] LIKE 'Y%','2',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If([FIELD] LIKE 'P%','3',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If([FIELD] LIKE 'F%','4',)))) AS NewField &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2015 14:18:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement-Where-Field-Begins-With/m-p/941088#M468468</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-31T14:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement Where Field Begins With ...</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement-Where-Field-Begins-With/m-p/941089#M468469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this may be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Pick(WildMatch(FIELD, 'B*', 'Y*', 'P*', 'F*'), 1, 2, 3, 4) as NewField&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;assuming you were using % for wild card&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2015 14:21:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement-Where-Field-Begins-With/m-p/941089#M468469</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-08-31T14:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement Where Field Begins With ...</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement-Where-Field-Begins-With/m-p/941090#M468470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;pick(wildmatch(FIELD, 'B*', 'Y*', 'P*', 'F*', '*'),&amp;nbsp;&amp;nbsp; '1','2','3','4','other') as NewField&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2015 14:22:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement-Where-Field-Begins-With/m-p/941090#M468470</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-08-31T14:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement Where Field Begins With ...</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement-Where-Field-Begins-With/m-p/941091#M468471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Massimo. Marked as helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2015 14:30:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement-Where-Field-Begins-With/m-p/941091#M468471</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-31T14:30:27Z</dc:date>
    </item>
  </channel>
</rss>

