<?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: Excluding values on load from a field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Excluding-values-on-load-from-a-field/m-p/1665630#M728237</link>
    <description>&lt;P&gt;Try:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[bi_tools_bsj_data]:
LOAD 
	[serial_no],
	[cust_code]
from &amp;lt;Your Data SourcePath&amp;gt;
where not wildmatch(FieldName,  '*ABC*','*BCD*','*DEF*');&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 15 Jan 2020 06:02:48 GMT</pubDate>
    <dc:creator>Arthur_Fong</dc:creator>
    <dc:date>2020-01-15T06:02:48Z</dc:date>
    <item>
      <title>Excluding values on load from a field</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-values-on-load-from-a-field/m-p/1665622#M728234</link>
      <description>&lt;P&gt;Have searched but the results I get do not work for me.&lt;/P&gt;&lt;P&gt;Current code from data load editor&amp;nbsp;is as follows:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[bi_tools_bsj_data]:
LOAD 
	[serial_no],
	[cust_code],
....&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to restrict exclude some two letter&amp;nbsp;strings from cust_code as they are not required.&lt;/P&gt;&lt;P&gt;Code such as:&lt;/P&gt;&lt;P&gt;Where &lt;STRONG&gt;not Wildmatch&lt;/STRONG&gt;(FieldName, '*ABC*');&lt;/P&gt;&lt;P&gt;Where&amp;nbsp; &lt;SPAN&gt;FieldName &amp;lt;&amp;gt; &lt;/SPAN&gt;&amp;nbsp; &lt;SPAN&gt;'ABC' &lt;STRONG&gt;;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;from other solutions are not recognized in the load editor.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;'Not' is not recognised and also&amp;nbsp;since the solutions&amp;nbsp;seem to be using semi-colons at the end&amp;nbsp;not for use in load editor?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Is there anyway I can do this or change syntax somewhat to be applicable for my &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-values-on-load-from-a-field/m-p/1665622#M728234</guid>
      <dc:creator>Seiya</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding values on load from a field</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-values-on-load-from-a-field/m-p/1665623#M728235</link>
      <description>&lt;P&gt;Try:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[bi_tools_bsj_data]:
LOAD 
	[serial_no],
	[cust_code]
from &amp;lt;Your Data SourcePath&amp;gt;
where FieldName &amp;lt;&amp;gt;  'ABC';&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 15 Jan 2020 05:14:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-values-on-load-from-a-field/m-p/1665623#M728235</guid>
      <dc:creator>Arthur_Fong</dc:creator>
      <dc:date>2020-01-15T05:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding values on load from a field</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-values-on-load-from-a-field/m-p/1665629#M728236</link>
      <description>&lt;P&gt;Thanks that works.&lt;/P&gt;&lt;P&gt;What would the syntax be for multiple strings as unfortunately just adding , won't work.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2020 06:01:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-values-on-load-from-a-field/m-p/1665629#M728236</guid>
      <dc:creator>Seiya</dc:creator>
      <dc:date>2020-01-15T06:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding values on load from a field</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-values-on-load-from-a-field/m-p/1665630#M728237</link>
      <description>&lt;P&gt;Try:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[bi_tools_bsj_data]:
LOAD 
	[serial_no],
	[cust_code]
from &amp;lt;Your Data SourcePath&amp;gt;
where not wildmatch(FieldName,  '*ABC*','*BCD*','*DEF*');&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 15 Jan 2020 06:02:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-values-on-load-from-a-field/m-p/1665630#M728237</guid>
      <dc:creator>Arthur_Fong</dc:creator>
      <dc:date>2020-01-15T06:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding values on load from a field</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-values-on-load-from-a-field/m-p/1665643#M728238</link>
      <description>&lt;P&gt;error of wildmatch is not built in function name sorry.&lt;/P&gt;&lt;P&gt;tried all Caps, 'W' caps, and 'W' and 'M' caps but no dice.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2020 06:57:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-values-on-load-from-a-field/m-p/1665643#M728238</guid>
      <dc:creator>Seiya</dc:creator>
      <dc:date>2020-01-15T06:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding values on load from a field</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-values-on-load-from-a-field/m-p/1665648#M728239</link>
      <description>&lt;P&gt;Try:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[data]:
LOAD 
	[serial_no],
	[cust_code]
from &amp;lt;Your Data SourcePath&amp;gt;;

noconcatenate
[bi_tools_bsj_data]:
LOAD 
	[serial_no],
	[cust_code]
resident data
where not wildmatch(FieldName,  '*ABC*','*BCD*','*DEF*');

Drop table data;&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 15 Jan 2020 07:02:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-values-on-load-from-a-field/m-p/1665648#M728239</guid>
      <dc:creator>Arthur_Fong</dc:creator>
      <dc:date>2020-01-15T07:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding values on load from a field</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-values-on-load-from-a-field/m-p/1665654#M728240</link>
      <description>&lt;P&gt;Sorry it's starting to get a bit complicated. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Let me just paste my full code below, noting that a "...." is just denoting fields I've hidden to save space.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[bi_tools_bsj_data]:
LOAD 
	[serial_no],
	[cust_code],
        ....
	[rece_ref],
	APPLYMAP( '__countryCodeIsoTwo2Polygon', UPPER([mfg_code]), '-') AS [bi_tools_bsj_data.mfg_code_GeoInfo];
SELECT "serial_no", 
	"cust_code", 
	....
	"rece_ref" 
FROM tcsHongKong.dbo."bi_tools_bsj_data"
where not wildmatch(cust_code,'*3U*','*BK*','*CA*','*CZ*','*HU*','*JD*','*MU*');&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So for example in my script I already have the line "[bi_tools_bsj_data]" at the top and the "FROM" at the bottom of the&lt;/P&gt;&lt;P&gt;"SELECT" function.&lt;/P&gt;&lt;P&gt;If we were to switch things up exactly how it was in the example I'm sure things would break.&lt;/P&gt;&lt;P&gt;Again your help is much appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2020 07:29:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-values-on-load-from-a-field/m-p/1665654#M728240</guid>
      <dc:creator>Seiya</dc:creator>
      <dc:date>2020-01-15T07:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding values on load from a field</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-values-on-load-from-a-field/m-p/1665656#M728241</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Data:
LOAD 
	[serial_no],
	[cust_code],
        ....
	[rece_ref],
	APPLYMAP( '__countryCodeIsoTwo2Polygon', UPPER([mfg_code]), '-') AS [bi_tools_bsj_data.mfg_code_GeoInfo];
SELECT "serial_no", 
	"cust_code", 
	....
	"rece_ref" 
FROM tcsHongKong.dbo."bi_tools_bsj_data";

noconcatenate
[bi_tools_bsj_data]:
load * resident Data
where not wildmatch(cust_code,'*3U*','*BK*','*CA*','*CZ*','*HU*','*JD*','*MU*');
drop table Data;&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 15 Jan 2020 07:32:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-values-on-load-from-a-field/m-p/1665656#M728241</guid>
      <dc:creator>Arthur_Fong</dc:creator>
      <dc:date>2020-01-15T07:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding values on load from a field</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-values-on-load-from-a-field/m-p/1665662#M728243</link>
      <description>&lt;P&gt;Thanks, much appreciated and it's all good now, though it does appear to load the data twice?&lt;/P&gt;&lt;P&gt;Guess we can't avoid that?&lt;/P&gt;&lt;P&gt;And for curiosities sake why does the original one liner not work and we have to enter an entire algorithm instead of just wildmatch xxx?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2020 07:46:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-values-on-load-from-a-field/m-p/1665662#M728243</guid>
      <dc:creator>Seiya</dc:creator>
      <dc:date>2020-01-15T07:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding values on load from a field</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-values-on-load-from-a-field/m-p/1665665#M728244</link>
      <description>&lt;P&gt;Because you are connecting data via connectors.&lt;/P&gt;&lt;P&gt;SQL doesn't have wildmatch function(there might be but not using wildmatch as keyword) which returns invalid function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2020 07:56:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-values-on-load-from-a-field/m-p/1665665#M728244</guid>
      <dc:creator>Arthur_Fong</dc:creator>
      <dc:date>2020-01-15T07:56:35Z</dc:date>
    </item>
  </channel>
</rss>

