<?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: Removing garbage from field values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Removing-garbage-from-field-values/m-p/1066466#M356531</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;/P&gt;&lt;P&gt;if(wildmatch(Field,'*-*'), 'N', Field) as Field &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the aim is to check on this string. If you want to check if the field contained any content and isn't NULL then use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(len(trim(Field)) = 0, 'N', Field) as Field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Feb 2016 09:04:43 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2016-02-08T09:04:43Z</dc:date>
    <item>
      <title>Removing garbage from field values</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-garbage-from-field-values/m-p/1066464#M356529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to Qlikview and have been trying to incorporate a condition in my load script for a field as given below:&lt;/P&gt;&lt;P&gt;if(purgechar(Field,'-')='','N',Field) as Field&lt;/P&gt;&lt;P&gt;FROM ABC.qvd (qvd)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need the script to display 'N' wherein the field value='-'(hyphen).&lt;/P&gt;&lt;P&gt;I have been going through a number of articles on this and came across the purgechar() function.Also applied the code without the function:-&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;if(Field='-','N',Field) as Field&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Still no success!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 06:38:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-garbage-from-field-values/m-p/1066464#M356529</guid>
      <dc:creator />
      <dc:date>2016-02-08T06:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: Removing garbage from field values</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-garbage-from-field-values/m-p/1066465#M356530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you post your field values or attach sample file.?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 09:04:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-garbage-from-field-values/m-p/1066465#M356530</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2016-02-08T09:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: Removing garbage from field values</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-garbage-from-field-values/m-p/1066466#M356531</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;/P&gt;&lt;P&gt;if(wildmatch(Field,'*-*'), 'N', Field) as Field &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the aim is to check on this string. If you want to check if the field contained any content and isn't NULL then use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(len(trim(Field)) = 0, 'N', Field) as Field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 09:04:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-garbage-from-field-values/m-p/1066466#M356531</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-02-08T09:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: Removing garbage from field values</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-garbage-from-field-values/m-p/1066467#M356532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be you can also try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Len(Trim(PurgeChar(Field, '-'))) = 0, 'N', Field) as Field&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 09:16:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-garbage-from-field-values/m-p/1066467#M356532</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-08T09:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: Removing garbage from field values</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-garbage-from-field-values/m-p/1066468#M356533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if Field= '-', then you need to update the field with 'N'. In this case need of Purgechar() function&lt;/P&gt;&lt;P&gt;Try with the bellow condition&lt;/P&gt;&lt;P&gt;If(Len(Trim(Field)) = 0, 'N', Field) as Field&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 09:28:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-garbage-from-field-values/m-p/1066468#M356533</guid>
      <dc:creator>PradeepReddy</dc:creator>
      <dc:date>2016-02-08T09:28:28Z</dc:date>
    </item>
  </channel>
</rss>

