<?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: How to hide/remove rows which contain &amp;quot;garbage&amp;quot; values? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-hide-remove-rows-which-contain-quot-garbage-quot-values/m-p/906752#M315028</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Jun 2015 06:55:24 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-06-09T06:55:24Z</dc:date>
    <item>
      <title>How to hide/remove rows which contain "garbage" values?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-hide-remove-rows-which-contain-quot-garbage-quot-values/m-p/906746#M315022</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 just started learning/using QlikView.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I built my first App, using data which I extracted directly from the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is :&amp;nbsp; a lot of the data-fields contain "&lt;STRONG&gt;garbage&lt;/STRONG&gt;".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, the "&lt;STRONG&gt;lastname&lt;/STRONG&gt;" field contains stuff like :&amp;nbsp; &lt;STRONG&gt;"----"&lt;/STRONG&gt;, or "&lt;STRONG&gt;*?)=&lt;/STRONG&gt;", etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The point is :&amp;nbsp; some of the fields are either empty, or they contain rubbish data.&amp;nbsp; (Some of the data under "lastname" are even written as "373733".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Obviously, some people couldn't be bothered to spell-out their full names&amp;nbsp; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/laugh.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nothing wrong with that, sure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, I want my List-Boxes to display only those data which are actually &lt;STRONG&gt;DATA&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already found the solution to removing "&lt;STRONG&gt;empty&lt;/STRONG&gt;" data-rows, by using the following expression in my List-Box (for last name)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;if (Len(lastname) &amp;gt; 0, lastname)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;But, how do I get rid of those other unwanted data?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;I tried to solve the problem directly from the SQL Script (under "&lt;STRONG&gt;Main&lt;/STRONG&gt;" -- &lt;STRONG&gt;Edit Script&lt;/STRONG&gt;).&amp;nbsp; For example, to remove those "lastnames" which contain simple dashes ( - ), I wrote an SQL query, like the following :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Select * from my_table where lastname NOT LIKE '%-%';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;But, this is not working.&amp;nbsp; No idea why.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Any way, it's much easier to simply write an expression directly inside the ListBox itself.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;But, no idea what format the expression should take.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 07:20:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-hide-remove-rows-which-contain-quot-garbage-quot-values/m-p/906746#M315022</guid>
      <dc:creator />
      <dc:date>2015-06-04T07:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide/remove rows which contain "garbage" values?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-hide-remove-rows-which-contain-quot-garbage-quot-values/m-p/906747#M315023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe:&lt;/P&gt;&lt;P&gt;Where&amp;nbsp; WildMatch(field,'*-*');&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 07:56:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-hide-remove-rows-which-contain-quot-garbage-quot-values/m-p/906747#M315023</guid>
      <dc:creator>robert_mika</dc:creator>
      <dc:date>2015-06-04T07:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide/remove rows which contain "garbage" values?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-hide-remove-rows-which-contain-quot-garbage-quot-values/m-p/906748#M315024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I put this in my Main Script :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;WildMatch(lastName,'*-*') as lastName_clean;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;The new field only gave 2 values :&amp;nbsp;&amp;nbsp; zero and one&amp;nbsp; (0 and 1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 08:20:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-hide-remove-rows-which-contain-quot-garbage-quot-values/m-p/906748#M315024</guid>
      <dc:creator />
      <dc:date>2015-06-04T08:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide/remove rows which contain "garbage" values?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-hide-remove-rows-which-contain-quot-garbage-quot-values/m-p/906749#M315025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t1:&lt;/P&gt;&lt;P&gt;LOAD * Inline [&lt;/P&gt;&lt;P&gt;f1,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; f2&lt;/P&gt;&lt;P&gt;A--a,&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;B,&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;C---,&amp;nbsp;&amp;nbsp; 3&lt;/P&gt;&lt;P&gt;D,&amp;nbsp;&amp;nbsp; 4&lt;/P&gt;&lt;P&gt;E,&amp;nbsp;&amp;nbsp; 5&lt;/P&gt;&lt;P&gt;F,&amp;nbsp;&amp;nbsp; 6&lt;/P&gt;&lt;P&gt;G,&amp;nbsp;&amp;nbsp; 7&lt;/P&gt;&lt;P&gt;H,&amp;nbsp;&amp;nbsp; 8&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join(t1)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; f1,&lt;/P&gt;&lt;P&gt;WildMatch(f1,'*-*') as lastName_clean&lt;/P&gt;&lt;P&gt;Resident t1&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;t2:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;f1 as F1,&lt;/P&gt;&lt;P&gt;f2 as F2,&lt;/P&gt;&lt;P&gt;lastName_clean as lastName&lt;/P&gt;&lt;P&gt;resident t1&lt;/P&gt;&lt;P&gt;where lastName_clean=0;&lt;/P&gt;&lt;P&gt;drop Table t1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="04-Jun-15 12-26-23 PM.jpg" class="jive-image image-1" src="/legacyfs/online/88379_04-Jun-15 12-26-23 PM.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A and C have been removed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 11:27:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-hide-remove-rows-which-contain-quot-garbage-quot-values/m-p/906749#M315025</guid>
      <dc:creator>robert_mika</dc:creator>
      <dc:date>2015-06-04T11:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide/remove rows which contain "garbage" values?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-hide-remove-rows-which-contain-quot-garbage-quot-values/m-p/906750#M315026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your very helpful replies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, I was unable to remove "empty fields". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No idea why.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But that is irrelevant now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a last question :&amp;nbsp; how do I remove apostrophes :&amp;nbsp;&amp;nbsp; ( &lt;STRONG&gt; ' &lt;/STRONG&gt; )&amp;nbsp;&amp;nbsp; ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you know, apostrophes are &lt;STRONG style="text-decoration: underline;"&gt;unique&lt;/STRONG&gt; in SQL.&amp;nbsp; I tried to include them in the PURGE-function, but, of course, I got a syntax error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i include them in the function, so SQL knows that I am trying to purge them from my data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 06:34:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-hide-remove-rows-which-contain-quot-garbage-quot-values/m-p/906750#M315026</guid>
      <dc:creator />
      <dc:date>2015-06-09T06:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide/remove rows which contain "garbage" values?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-hide-remove-rows-which-contain-quot-garbage-quot-values/m-p/906751#M315027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of purge ' try chr(39).&lt;/P&gt;&lt;P&gt;This is ASCI code for single apostrophe&lt;/P&gt;&lt;P&gt;Like&lt;/P&gt;&lt;P&gt;=PurgeChar('Robert''s',Chr(39))&lt;/P&gt;&lt;P&gt;(there is double ' not single " between "t" and "s" as single ' would throw an error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 06:40:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-hide-remove-rows-which-contain-quot-garbage-quot-values/m-p/906751#M315027</guid>
      <dc:creator>robert_mika</dc:creator>
      <dc:date>2015-06-09T06:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide/remove rows which contain "garbage" values?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-hide-remove-rows-which-contain-quot-garbage-quot-values/m-p/906752#M315028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 06:55:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-hide-remove-rows-which-contain-quot-garbage-quot-values/m-p/906752#M315028</guid>
      <dc:creator />
      <dc:date>2015-06-09T06:55:24Z</dc:date>
    </item>
  </channel>
</rss>

