<?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 Statement with Match and Left in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-Statement-with-Match-and-Left/m-p/1588278#M597013</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am trying to tidy up our data field for [NAME OF CONTACT]&amp;nbsp; as some records start with numbers and symbols.&lt;/P&gt;&lt;P&gt;I have tried using the below but it has not worked.&lt;/P&gt;&lt;P&gt;if(Match(Left([NAME OF CONTACT]),1)('1','2','3','+','#'),'N/A', [NAME OF CONTACT]) as [Main Contact],&lt;/P&gt;&lt;P&gt;Would someone be able to give me the correct expression?&lt;/P&gt;&lt;P&gt;Alternatively if some is able to give me the script for if left,1 is &lt;EM&gt;&lt;U&gt;not&lt;/U&gt; &lt;/EM&gt;ABCDEFG........ , N/A , [MAIN CONTACT] that would be even better.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 03:23:38 GMT</pubDate>
    <dc:creator>mattdt1811</dc:creator>
    <dc:date>2024-11-16T03:23:38Z</dc:date>
    <item>
      <title>If Statement with Match and Left</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement-with-Match-and-Left/m-p/1588278#M597013</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am trying to tidy up our data field for [NAME OF CONTACT]&amp;nbsp; as some records start with numbers and symbols.&lt;/P&gt;&lt;P&gt;I have tried using the below but it has not worked.&lt;/P&gt;&lt;P&gt;if(Match(Left([NAME OF CONTACT]),1)('1','2','3','+','#'),'N/A', [NAME OF CONTACT]) as [Main Contact],&lt;/P&gt;&lt;P&gt;Would someone be able to give me the correct expression?&lt;/P&gt;&lt;P&gt;Alternatively if some is able to give me the script for if left,1 is &lt;EM&gt;&lt;U&gt;not&lt;/U&gt; &lt;/EM&gt;ABCDEFG........ , N/A , [MAIN CONTACT] that would be even better.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:23:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement-with-Match-and-Left/m-p/1588278#M597013</guid>
      <dc:creator>mattdt1811</dc:creator>
      <dc:date>2024-11-16T03:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement with Match and Left</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement-with-Match-and-Left/m-p/1588280#M597015</link>
      <description>&lt;P&gt;For your first approach, Should be&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(Match(Left([NAME OF CONTACT],1),'1','2','3','+','#'),'N/A', [NAME OF CONTACT]) as [Main Contact]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Second option, you want to get as below&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Not FindOneOf(Left([NAME OF CONTACT],1),'ABCDEFG'), 'N/A', [MAIN CONTACT])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2019 16:16:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement-with-Match-and-Left/m-p/1588280#M597015</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2019-06-04T16:16:42Z</dc:date>
    </item>
  </channel>
</rss>

