<?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 multiple fields in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Excluding-multiple-fields-in-script/m-p/1528855#M747369</link>
    <description>&lt;P&gt;It's not really clear for me - should the table "Items" contain the excluding values and if why is there the field "&lt;SPAN&gt;PartStoreKey&lt;/SPAN&gt;"? Further the fieldvalues of "&lt;SPAN&gt;PART_NBR&lt;/SPAN&gt;" are only the identically ones to the table "&lt;SPAN&gt;ModelMap&lt;/SPAN&gt;" (if we would filter them against each other there would be no record left) and "&lt;SPAN&gt;ModelMap&lt;/SPAN&gt;" has no KEY field for the table "Orders". Therefore what shoud really happens?&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
    <pubDate>Thu, 10 Jan 2019 10:08:11 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2019-01-10T10:08:11Z</dc:date>
    <item>
      <title>Excluding multiple fields in script</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-multiple-fields-in-script/m-p/1527792#M747361</link>
      <description>&lt;P&gt;I have a large chunk of data within a field that I was hoping to exclude from the script but I was hoping i could bring in an Excel file instead with the data that needs to be excluded from the field rather than hard-coding them all in. Is this possible?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:49:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-multiple-fields-in-script/m-p/1527792#M747361</guid>
      <dc:creator>khaycock</dc:creator>
      <dc:date>2024-11-16T04:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding multiple fields in script</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-multiple-fields-in-script/m-p/1527854#M747362</link>
      <description>&lt;P&gt;Yes, there are various ways possible to load data and to create from them parts or a whole load-statement on the fly and/or to filter further loads, for example:&lt;/P&gt;&lt;P&gt;t1: load concat(Fields) as Fields from Excel;&lt;/P&gt;&lt;P&gt;let vFields = peek('Fields', 0', 't1');&lt;/P&gt;&lt;P&gt;t2: load $(vFields) from Source;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jan 2019 14:50:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-multiple-fields-in-script/m-p/1527854#M747362</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-01-08T14:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding multiple fields in script</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-multiple-fields-in-script/m-p/1528458#M747364</link>
      <description>&lt;P&gt;What would I do in the situation where the data is joined to a table? I tried to follow your lead but get confused at that part.&lt;/P&gt;&lt;P&gt;Excluded:&lt;BR /&gt;LOAD PART_NBR&lt;BR /&gt;FROM&lt;BR /&gt;[Excel]&lt;BR /&gt;(ooxml, embedded labels, table is [Excluded Parts]);&lt;/P&gt;&lt;P&gt;let vFields = peek('Orders','0','Excluded');&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Left Join (Orders)&lt;BR /&gt;ModelMap:&lt;BR /&gt;LOAD PART_NBR,&lt;BR /&gt;MODEL_PN&lt;BR /&gt;FROM&lt;BR /&gt;[Excel]&lt;BR /&gt;(ooxml, embedded labels, table is [Model Map]);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2019 15:13:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-multiple-fields-in-script/m-p/1528458#M747364</guid>
      <dc:creator>khaycock</dc:creator>
      <dc:date>2019-01-09T15:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding multiple fields in script</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-multiple-fields-in-script/m-p/1528469#M747365</link>
      <description>&lt;P&gt;My example was related to your posting-title for excluding fields from a load-statement and not to exclude field-values. In regard to your example the following will exclude "PART_NBR" from the join which will remove all records from Orders which aren't included within the join-load:&lt;/P&gt;&lt;P&gt;Excluded:&lt;BR /&gt;LOAD PART_NBR&lt;BR /&gt;FROM&lt;BR /&gt;[Excel]&lt;BR /&gt;(ooxml, embedded labels, table is [Excluded Parts]);&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;INNER&lt;/STRONG&gt; Join (Orders)&lt;BR /&gt;ModelMap:&lt;BR /&gt;LOAD PART_NBR,&lt;BR /&gt;MODEL_PN&lt;BR /&gt;FROM&lt;BR /&gt;[Excel]&lt;BR /&gt;(ooxml, embedded labels, table is [Model Map])&lt;STRONG&gt; where not exists(PART_NBR)&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;If Orders shouldn't be filtered else one of the join-fields should be added then keep by left and not inner join.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Update: depending on the previous loaded fieldvalues my suggestion might need to be adjusted to the following:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Excluded:&lt;BR /&gt;LOAD PART_NBR as &lt;STRONG&gt;PART_NBR_ForExists&lt;/STRONG&gt;&lt;BR /&gt;FROM&lt;BR /&gt;[Excel]&lt;BR /&gt;(ooxml, embedded labels, table is [Excluded Parts]);&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;INNER&lt;/STRONG&gt; Join (Orders)&lt;BR /&gt;ModelMap:&lt;BR /&gt;LOAD PART_NBR,&lt;BR /&gt;MODEL_PN&lt;BR /&gt;FROM&lt;BR /&gt;[Excel]&lt;BR /&gt;(ooxml, embedded labels, table is [Model Map])&lt;STRONG&gt; where not exists(&lt;FONT color="#FF0000"&gt;PART_NBR_ForExists&lt;/FONT&gt;, PART_NBR)&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2019 15:29:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-multiple-fields-in-script/m-p/1528469#M747365</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-01-09T15:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding multiple fields in script</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-multiple-fields-in-script/m-p/1528496#M747366</link>
      <description>&lt;P&gt;There are 4 'unmapped' PART_NBR fields:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="part num.PNG" style="width: 153px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/3437i0912C7C87548B802/image-size/large?v=v2&amp;amp;px=999" role="button" title="part num.PNG" alt="part num.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In my excluded parts sheet, I have the top 3 listed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I do the second&amp;nbsp;option, it completely removes all of the 4 part numbers rather than just the 3 written in the sheet. Is this to do with the join?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2019 16:09:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-multiple-fields-in-script/m-p/1528496#M747366</guid>
      <dc:creator>khaycock</dc:creator>
      <dc:date>2019-01-09T16:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding multiple fields in script</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-multiple-fields-in-script/m-p/1528735#M747367</link>
      <description>&lt;P&gt;Please provide your script with a few sample records, something in this way:&lt;/P&gt;&lt;P&gt;Orders:&lt;BR /&gt;load * inline [&lt;BR /&gt;PART_NBR, OtherField&lt;BR /&gt;a, 1&lt;BR /&gt;b, 2&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;for all these tables with a few of the matching and unmatching fieldvalues and which results you get and which ones you would expect.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2019 06:21:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-multiple-fields-in-script/m-p/1528735#M747367</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-01-10T06:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding multiple fields in script</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-multiple-fields-in-script/m-p/1528832#M747368</link>
      <description>&lt;P&gt;Orders:&lt;BR /&gt;&lt;SPAN&gt;load * inline [&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;INVENTORY_ITEM_ID &amp;amp;'|'&amp;amp; SHIP_FROM_ORG_ID as PartStoreKey,&amp;nbsp;ORDER_NUMBER&lt;BR /&gt;11970496|23, 2000019787&lt;BR /&gt;5973441|23, 2000019279&lt;BR /&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Items:&lt;BR /&gt;load * inline [&lt;BR /&gt;INVENTORY_ITEM_ID &amp;amp;'|'&amp;amp; ORGANIZATION_ID as PartStoreKey, PART_NBR&lt;BR /&gt;11970496|23, 654598G01-PB&lt;BR /&gt;5973441|23, 062854&lt;BR /&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Left Join (Orders)&lt;BR /&gt;ModelMap:&lt;BR /&gt;load * inline [&lt;BR /&gt;PART_NBR,&amp;nbsp;VALUE_STREAM&lt;BR /&gt;062854, GOLF&lt;BR /&gt;654598G01-PB, GOLF&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And then I wanted to exclude some specific PART_NBR data from another sheet but not sure how to include in the script or even in the Excel sheet as all I have is a list of part numbers that will be added into a singular column somewhere&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2019 09:37:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-multiple-fields-in-script/m-p/1528832#M747368</guid>
      <dc:creator>khaycock</dc:creator>
      <dc:date>2019-01-10T09:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding multiple fields in script</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-multiple-fields-in-script/m-p/1528855#M747369</link>
      <description>&lt;P&gt;It's not really clear for me - should the table "Items" contain the excluding values and if why is there the field "&lt;SPAN&gt;PartStoreKey&lt;/SPAN&gt;"? Further the fieldvalues of "&lt;SPAN&gt;PART_NBR&lt;/SPAN&gt;" are only the identically ones to the table "&lt;SPAN&gt;ModelMap&lt;/SPAN&gt;" (if we would filter them against each other there would be no record left) and "&lt;SPAN&gt;ModelMap&lt;/SPAN&gt;" has no KEY field for the table "Orders". Therefore what shoud really happens?&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2019 10:08:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-multiple-fields-in-script/m-p/1528855#M747369</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-01-10T10:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding multiple fields in script</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-multiple-fields-in-script/m-p/1528870#M747370</link>
      <description>&lt;P&gt;Haha your guess is as good as mine! I was just hoping to have a separate list of part numbers to exclude rather than listing them all indivdually as a WHERE under the Items load. Do you think I should just hard code them instead then?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2019 10:31:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-multiple-fields-in-script/m-p/1528870#M747370</guid>
      <dc:creator>khaycock</dc:creator>
      <dc:date>2019-01-10T10:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding multiple fields in script</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-multiple-fields-in-script/m-p/1528893#M747371</link>
      <description>&lt;P&gt;No, I don't think you should hardcode them. My above suggestion with exists() will work. Maybe you need to dive a bit deeper into the logic of it to be able to apply it. For this take a look in the help and to the various links at the bottom of the following posting which explain the functionalities quite well: &lt;A href="https://community.qlik.com/t5/QlikView-Documents/Advanced-topics-for-creating-a-qlik-datamodel/ta-p/1494747" target="_blank"&gt;Advanced-topics-for-creating-a-qlik-datamodel&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2019 11:07:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-multiple-fields-in-script/m-p/1528893#M747371</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-01-10T11:07:29Z</dc:date>
    </item>
  </channel>
</rss>

