<?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: Detecting non-alphanumeric characters in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Detecting-non-alphanumeric-characters/m-p/449406#M167712</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;that is a way I have tried it and it does seem to locate the special characters. however I am trying to use this statement as one of the conditions that has to be meet in a where statement. my code looks like 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; A,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B&lt;/P&gt;&lt;P&gt;resident X&lt;/P&gt;&lt;P&gt;where A&amp;gt;1 or&amp;nbsp; len(purgechar(fieldname, 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890'))&amp;gt;0;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Feb 2013 13:33:45 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-02-19T13:33:45Z</dc:date>
    <item>
      <title>Detecting non-alphanumeric characters</title>
      <link>https://community.qlik.com/t5/QlikView/Detecting-non-alphanumeric-characters/m-p/449404#M167710</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;I am using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;len(purgechar(fieldname, 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to flag an error if there are anything apart from letters or numbers in the field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if I set the above expression &amp;gt;0 it flags all the fields as an error. If I set it &amp;gt;1 it miss out on fields that ONLY contain special characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know what I am doing wrong? Has anyone had this error before?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2013 12:24:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Detecting-non-alphanumeric-characters/m-p/449404#M167710</guid>
      <dc:creator />
      <dc:date>2013-02-19T12:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting non-alphanumeric characters</title>
      <link>https://community.qlik.com/t5/QlikView/Detecting-non-alphanumeric-characters/m-p/449405#M167711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;if(len(trim(purgechar(fieldname, 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890')))=0,0,1) as HasSpecialChars&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2013 12:38:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Detecting-non-alphanumeric-characters/m-p/449405#M167711</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-02-19T12:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting non-alphanumeric characters</title>
      <link>https://community.qlik.com/t5/QlikView/Detecting-non-alphanumeric-characters/m-p/449406#M167712</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;that is a way I have tried it and it does seem to locate the special characters. however I am trying to use this statement as one of the conditions that has to be meet in a where statement. my code looks like 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; A,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B&lt;/P&gt;&lt;P&gt;resident X&lt;/P&gt;&lt;P&gt;where A&amp;gt;1 or&amp;nbsp; len(purgechar(fieldname, 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890'))&amp;gt;0;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2013 13:33:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Detecting-non-alphanumeric-characters/m-p/449406#M167712</guid>
      <dc:creator />
      <dc:date>2013-02-19T13:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting non-alphanumeric characters</title>
      <link>https://community.qlik.com/t5/QlikView/Detecting-non-alphanumeric-characters/m-p/449407#M167713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since you're loading from a resident table maybe you can create the field &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;HasSpecialChars&lt;/SPAN&gt; in that table and then do something like: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load A,B&lt;/P&gt;&lt;P&gt;resident X &lt;/P&gt;&lt;P&gt;where A&amp;gt;1 or &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;HasSpecialChars&lt;/SPAN&gt; = 1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2013 13:39:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Detecting-non-alphanumeric-characters/m-p/449407#M167713</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-02-19T13:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting non-alphanumeric characters</title>
      <link>https://community.qlik.com/t5/QlikView/Detecting-non-alphanumeric-characters/m-p/449408#M167714</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;I see your point and I have done it that way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;however I require to do this test for several fields in the same table, so I was hoping I didnt have to create new names for all of them. One thing I forgot to mention, the way I have done it above works with most fields and is only failing on 1 field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will resort to your method if I fail to find a way around the problem though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2013 13:50:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Detecting-non-alphanumeric-characters/m-p/449408#M167714</guid>
      <dc:creator />
      <dc:date>2013-02-19T13:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting non-alphanumeric characters</title>
      <link>https://community.qlik.com/t5/QlikView/Detecting-non-alphanumeric-characters/m-p/449409#M167715</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;Just to let everyone know, I spotted my mistake.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your help everyone.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2013 10:28:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Detecting-non-alphanumeric-characters/m-p/449409#M167715</guid>
      <dc:creator />
      <dc:date>2013-02-20T10:28:36Z</dc:date>
    </item>
  </channel>
</rss>

