<?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: Help with filtering unwanted data in load script? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Help-with-filtering-unwanted-data-in-load-script/m-p/924532#M12758</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using SubField() is a great way if you want them split eventually anyways. But if did not want them split, WildMatch should work like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD * INLINE [&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Fruit&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Apple, Pear, Peach&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Banana, Orange, Apple&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Peach, Tomato, Kiwi&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Apple, Orange, Peach&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;] (delimiter is '|')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;WHERE WildMatch(Fruit, '*Apple*', '*Banana*')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com" rel="nofollow"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com" rel="nofollow"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Nov 2015 19:09:47 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2015-11-17T19:09:47Z</dc:date>
    <item>
      <title>Help with filtering unwanted data in load script?</title>
      <link>https://community.qlik.com/t5/App-Development/Help-with-filtering-unwanted-data-in-load-script/m-p/924530#M12756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: Helvetica, sans-serif; font-size: 13.3333px;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: Helvetica, sans-serif; font-size: 13.3333px;"&gt;I have a column with multiple values in each field. I only want to report on certain values (e.g., Apple and Banana).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: Helvetica, sans-serif; font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: Helvetica, sans-serif; font-size: 13.3333px;"&gt;&lt;STRONG&gt;Fruit&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: Helvetica, sans-serif; font-size: 13.3333px;"&gt;Apple, Pear, Peach&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: Helvetica, sans-serif; font-size: 13.3333px;"&gt;Banana, Orange, Apple&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: Helvetica, sans-serif; font-size: 13.3333px;"&gt;Peach, Tomato, Kiwi&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: Helvetica, sans-serif; font-size: 13.3333px;"&gt;Apple, Orange, Peach&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: Helvetica, sans-serif; font-size: 13.3333px;"&gt;Within my app, I've been able to filter out the values I don't want using set analysis like this (and I'm getting the right result):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: Helvetica, sans-serif; font-size: 13.3333px;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: Helvetica, sans-serif; font-size: 13.3333px;"&gt;[Fruit]={&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: Helvetica, sans-serif; font-size: 13.3333px;"&gt;'*Apple*',&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: Helvetica, sans-serif; font-size: 13.3333px;"&gt;'*Banana*'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: Helvetica, sans-serif; font-size: 13.3333px;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: Helvetica, sans-serif; font-size: 13.3333px;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: Helvetica, sans-serif; font-size: 13.3333px;"&gt;The problem is this causes some headaches when I'm trying to drill down using filters (I've connected some other tables with the [Fruit] column as well).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: Helvetica, sans-serif; font-size: 13.3333px;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: Helvetica, sans-serif; font-size: 13.3333px;"&gt;Can someone let me know if there's a way to filter out the unwanted values in the load script so none of the fruits I don't want are being loaded at all? I've searched the forums for Qlik Sense and Qlik View and have tried using the Wildmatch function, but I can't seem to get it work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: Helvetica, sans-serif; font-size: 13.3333px;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: Helvetica, sans-serif; font-size: 13.3333px;"&gt;Any help would be much appreciated, and thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 21:27:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Help-with-filtering-unwanted-data-in-load-script/m-p/924530#M12756</guid>
      <dc:creator>drminaker</dc:creator>
      <dc:date>2015-10-19T21:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: Help with filtering unwanted data in load script?</title>
      <link>https://community.qlik.com/t5/App-Development/Help-with-filtering-unwanted-data-in-load-script/m-p/924531#M12757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I figured out a solution to my problem. Not using the logic I had mentioned in my original post, but by using a workaround (or maybe this is the best way?). This is what I did:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of removing the fruits that I don't care about, I split them out into their own rows using &lt;SPAN style="color: #0000ff;"&gt;SubField&lt;/SPAN&gt; and then cleaned up the column to remove extra spaces, using&lt;SPAN style="color: #0000ff;"&gt; LTrim&lt;/SPAN&gt;, so the data comes in clean row-by-row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Added this into my loadscript:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;LTrim&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;SubField&lt;/SPAN&gt;([Types of Fruit], ',')) &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; [Fruit]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideally, I'd love to be able to remove everything I don't want at the loadscript level. Still working on that!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2015 18:36:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Help-with-filtering-unwanted-data-in-load-script/m-p/924531#M12757</guid>
      <dc:creator>drminaker</dc:creator>
      <dc:date>2015-11-17T18:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: Help with filtering unwanted data in load script?</title>
      <link>https://community.qlik.com/t5/App-Development/Help-with-filtering-unwanted-data-in-load-script/m-p/924532#M12758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using SubField() is a great way if you want them split eventually anyways. But if did not want them split, WildMatch should work like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD * INLINE [&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Fruit&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Apple, Pear, Peach&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Banana, Orange, Apple&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Peach, Tomato, Kiwi&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Apple, Orange, Peach&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;] (delimiter is '|')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;WHERE WildMatch(Fruit, '*Apple*', '*Banana*')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com" rel="nofollow"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com" rel="nofollow"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2015 19:09:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Help-with-filtering-unwanted-data-in-load-script/m-p/924532#M12758</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2015-11-17T19:09:47Z</dc:date>
    </item>
  </channel>
</rss>

