<?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 Using PurgeChar function to detect specific characters in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-PurgeChar-function-to-detect-specific-characters/m-p/1673915#M449590</link>
    <description>&lt;DIV class="result-shield-container tlid-copy-target"&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN&gt;I would like to create a flag to &lt;STRONG&gt;detect if the "Firstname" field ("Prénom" in french) contains specific elements&lt;/STRONG&gt;, apart from alphabetic characters, '-' and spaces.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So I wrote the following expression:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="result-shield-container tlid-copy-target"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="result-shield-container tlid-copy-target"&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN&gt;If(len(PurgeChar([Prénom],'ABCDEFGHIJKLMNOPQRSTUVWXYZ- '))&amp;gt;0,1,0) as FlagErrorFN&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="result-shield-container tlid-copy-target"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="result-shield-container tlid-copy-target"&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN&gt;Result : Some first names were identified errors (1) even though they does not contain any specific character (ANAS, MAVA, RAPHALLE, NAMA).&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="result-shield-container tlid-copy-target"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="result-shield-container tlid-copy-target"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Capture1.PNG" style="width: 299px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/28196i603C0AFECFC21D7B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture1.PNG" alt="Capture1.PNG" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class="result-shield-container tlid-copy-target"&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN&gt;It seems like Qlik does not understand that I wanted to remove spaces with PurgeChar, and those names were identified errors because they contain some spaces before or after the name. For example, when I created a flag with Len(Prénom), it gave 5 for "ANAS", "MAVA", "NAVA" in stead of 4 so I think that these names contain spaces.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="result-shield-container tlid-copy-target"&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;Could someone tell me what I have to write correctly to detect if the field "Prénom" does contain a specific character different of alphabetic charac, '-' and spaces ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks so much for your help,&lt;/P&gt;&lt;P&gt;Thanhng34&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class="result-shield-container tlid-copy-target"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
    <pubDate>Sat, 16 Nov 2024 19:08:57 GMT</pubDate>
    <dc:creator>thanhng34</dc:creator>
    <dc:date>2024-11-16T19:08:57Z</dc:date>
    <item>
      <title>Using PurgeChar function to detect specific characters</title>
      <link>https://community.qlik.com/t5/QlikView/Using-PurgeChar-function-to-detect-specific-characters/m-p/1673915#M449590</link>
      <description>&lt;DIV class="result-shield-container tlid-copy-target"&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN&gt;I would like to create a flag to &lt;STRONG&gt;detect if the "Firstname" field ("Prénom" in french) contains specific elements&lt;/STRONG&gt;, apart from alphabetic characters, '-' and spaces.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So I wrote the following expression:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="result-shield-container tlid-copy-target"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="result-shield-container tlid-copy-target"&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN&gt;If(len(PurgeChar([Prénom],'ABCDEFGHIJKLMNOPQRSTUVWXYZ- '))&amp;gt;0,1,0) as FlagErrorFN&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="result-shield-container tlid-copy-target"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="result-shield-container tlid-copy-target"&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN&gt;Result : Some first names were identified errors (1) even though they does not contain any specific character (ANAS, MAVA, RAPHALLE, NAMA).&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="result-shield-container tlid-copy-target"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="result-shield-container tlid-copy-target"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Capture1.PNG" style="width: 299px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/28196i603C0AFECFC21D7B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture1.PNG" alt="Capture1.PNG" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class="result-shield-container tlid-copy-target"&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN&gt;It seems like Qlik does not understand that I wanted to remove spaces with PurgeChar, and those names were identified errors because they contain some spaces before or after the name. For example, when I created a flag with Len(Prénom), it gave 5 for "ANAS", "MAVA", "NAVA" in stead of 4 so I think that these names contain spaces.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="result-shield-container tlid-copy-target"&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;Could someone tell me what I have to write correctly to detect if the field "Prénom" does contain a specific character different of alphabetic charac, '-' and spaces ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks so much for your help,&lt;/P&gt;&lt;P&gt;Thanhng34&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class="result-shield-container tlid-copy-target"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Sat, 16 Nov 2024 19:08:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-PurgeChar-function-to-detect-specific-characters/m-p/1673915#M449590</guid>
      <dc:creator>thanhng34</dc:creator>
      <dc:date>2024-11-16T19:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: Using PurgeChar function to detect specific characters</title>
      <link>https://community.qlik.com/t5/QlikView/Using-PurgeChar-function-to-detect-specific-characters/m-p/1682244#M450160</link>
      <description>&lt;P&gt;The only thing of which I can think is there is a space on those names in question, most likely at the end of the name would be my hunch, should be pretty easy to test by excluding that character to see what impact that has on things...&amp;nbsp; Best I have with what you have left here.&amp;nbsp; It would be more helpful if you could attach an app folks could dig into things further.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 20:03:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-PurgeChar-function-to-detect-specific-characters/m-p/1682244#M450160</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2020-03-05T20:03:20Z</dc:date>
    </item>
  </channel>
</rss>

