<?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: Data load exclusions required in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Data-load-exclusions-required/m-p/1570834#M596842</link>
    <description>&lt;P&gt;Thanks, i will give that a shot today.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 18 Apr 2019 07:44:17 GMT</pubDate>
    <dc:creator>davyqliks</dc:creator>
    <dc:date>2019-04-18T07:44:17Z</dc:date>
    <item>
      <title>Data load exclusions required</title>
      <link>https://community.qlik.com/t5/QlikView/Data-load-exclusions-required/m-p/1570377#M596840</link>
      <description>&lt;P&gt;Thank you for taking the time to read this.&lt;/P&gt;&lt;P&gt;We have Data which is included in the load by reference to a coa code.&lt;/P&gt;&lt;P&gt;The COA code ([Account Code]) is in the main load for all values.&lt;/P&gt;&lt;P&gt;i have a list of codes in a secondary excel from which i can only load the data from the main load if matched in the lookup.&lt;/P&gt;&lt;P&gt;I have managed to filter the data with a button but i do not want to import the un required data at all.&lt;/P&gt;&lt;P&gt;I have been given a new code to add to the list of inclusions but only one of the descriptions from that code is required in the load.&lt;/P&gt;&lt;P&gt;Please assist in the best way to.&lt;/P&gt;&lt;P&gt;1. Only load data from the main load where COA code is matched data from a secondary excel&lt;BR /&gt;2. Make a 2nd filter on description and only load this information for that distinct code.&lt;/P&gt;&lt;P&gt;I need to only import main data where given values in the Account code are present in the lookup, [Account Code]&amp;nbsp; And Where the account code = 99999999999 and the description =&amp;nbsp;Sales minimum charges are matched from the lookup to the main load.&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;MAIN LOAD&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;LOAD rowno(),&lt;/P&gt;&lt;P&gt;'CHK' as Location,&lt;BR /&gt;[Retro in Base Currency],&lt;BR /&gt;[Invoice no.],&lt;BR /&gt;[Voucher Date],&lt;BR /&gt;Year([Voucher Date]) as [INV Year],&lt;BR /&gt;Month([Voucher Date]) as [Inv Month],&lt;BR /&gt;Day([Voucher Date]) as [Inv Day],&lt;BR /&gt;Date(monthstart([Voucher Date]), 'MMM-YYYY') as MonthYear,&lt;BR /&gt;[Brand Name],&lt;BR /&gt;[Retailer Name],&lt;BR /&gt;[Invoicing Customer No.],&lt;BR /&gt;[Invoicing Customer name],&lt;BR /&gt;[Customer Invoicing Country],&lt;BR /&gt;[Item type],&lt;BR /&gt;[Item No.],&lt;BR /&gt;[Item Name],&lt;BR /&gt;[Invoice Item Line Quantity],&lt;BR /&gt;[Invoice Currency],&lt;BR /&gt;[Invoice Item Unit Price],&lt;BR /&gt;[Invoice Item Amount],&lt;BR /&gt;[VAT Amount],&lt;BR /&gt;[Invoice Item Total in Invoice Currency],&lt;BR /&gt;[Base Currency],&lt;BR /&gt;[Invoice Item Amount in Base Currency],&lt;BR /&gt;[VAT Amount in Base Currency],&lt;BR /&gt;[Invoice Item Total in Base Currency],&lt;BR /&gt;[Invoice Item Amount in Base Currency]* ApplyMap('Map_Currency_Rate1', [Base Currency] &amp;amp; '|' &amp;amp; Date([Voucher Date],'DD/MM/YYYY')) AS GBP_Price,&lt;BR /&gt;[Invoice Item Amount in Base Currency]* ApplyMap('Map_Currency_Rate2', [Base Currency] &amp;amp; '|' &amp;amp; Date([Voucher Date],'DD/MM/YYYY')) AS HKD_Price,&lt;BR /&gt;[Invoice Payment Terms],&lt;BR /&gt;&lt;STRONG&gt;[Account Code]&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;FROM&lt;BR /&gt;[**********.xlsx]&lt;BR /&gt;(ooxml, embedded labels, header is 6 lines, table is CHK)WHERE(not IsNull([Invoice no.]));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;LOOKUP LOAD&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;[COA MAP]:&lt;BR /&gt;LOAD&lt;BR /&gt;//Location,&lt;BR /&gt;&lt;STRONG&gt;[Account Code],&lt;/STRONG&gt;&lt;BR /&gt;Description&lt;BR /&gt;FROM&lt;BR /&gt;[********************.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is [COA map]);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 09:18:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-load-exclusions-required/m-p/1570377#M596840</guid>
      <dc:creator>davyqliks</dc:creator>
      <dc:date>2019-04-17T09:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: Data load exclusions required</title>
      <link>https://community.qlik.com/t5/QlikView/Data-load-exclusions-required/m-p/1570624#M596841</link>
      <description>&lt;P&gt;Load your lookup table first in the script, then add an WHERE clause with EXISTS() to your main data load:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;FROM&lt;BR /&gt;[**********.xlsx]&lt;BR /&gt;(ooxml, embedded labels, header is 6 lines, table is CHK) WHERE (not IsNull([Invoice no.]))&lt;/P&gt;&lt;P&gt;&lt;EM&gt;and Exists([Account Code]);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 15:08:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-load-exclusions-required/m-p/1570624#M596841</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2019-04-17T15:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: Data load exclusions required</title>
      <link>https://community.qlik.com/t5/QlikView/Data-load-exclusions-required/m-p/1570834#M596842</link>
      <description>&lt;P&gt;Thanks, i will give that a shot today.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2019 07:44:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-load-exclusions-required/m-p/1570834#M596842</guid>
      <dc:creator>davyqliks</dc:creator>
      <dc:date>2019-04-18T07:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: Data load exclusions required</title>
      <link>https://community.qlik.com/t5/QlikView/Data-load-exclusions-required/m-p/1570872#M596843</link>
      <description>&lt;P&gt;Thank you for taking the time to look at this, appreciate!&lt;/P&gt;&lt;P&gt;So,&lt;/P&gt;&lt;P&gt;I have the load like so. no errors&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LOAD 'LUK' as Location,&lt;BR /&gt;[Retro in Base Currency],&lt;BR /&gt;[Invoice no.],&lt;BR /&gt;[Voucher Date],&lt;BR /&gt;Year([Voucher Date]) as [INV Year],&lt;BR /&gt;Month([Voucher Date]) as [Inv Month],&lt;BR /&gt;Day([Voucher Date]) as [Inv Day],&lt;BR /&gt;Date(monthstart([Voucher Date]), 'MMM-YYYY') as MonthYear,&lt;BR /&gt;[Brand Name],&lt;BR /&gt;[Retailer Name],&lt;BR /&gt;[Customer No.] as [Invoicing Customer No.],&lt;BR /&gt;[Customer name] as [Invoicing Customer name],&lt;BR /&gt;[Customer Invoicing Country],&lt;BR /&gt;[Item type],&lt;BR /&gt;[Item No.],&lt;BR /&gt;[Item Name],&lt;BR /&gt;[Invoice Item Line Quantity],&lt;BR /&gt;[Invoice Currency],&lt;BR /&gt;[Invoice Item Unit Price],&lt;BR /&gt;[Invoice Item Amount],&lt;BR /&gt;[VAT Amount],&lt;BR /&gt;[Invoice Item Total in Invoice Currency],&lt;BR /&gt;[Base Currency],&lt;BR /&gt;[Invoice Item Amount in Base Currency],&lt;BR /&gt;[VAT Amount in Base Currency],&lt;BR /&gt;[Invoice Item Total in Base Currency],&lt;BR /&gt;[Invoice Item Amount in Base Currency]* ApplyMap('Map_Currency_Rate1', [Base Currency] &amp;amp; '|' &amp;amp; Date([Voucher Date],'DD/MM/YYYY')) AS GBP_Price ,&lt;BR /&gt;[Invoice Item Amount in Base Currency]* ApplyMap('Map_Currency_Rate2', [Base Currency] &amp;amp; '|' &amp;amp; Date([Voucher Date],'DD/MM/YYYY')) AS HKD_Price,&lt;BR /&gt;[Invoice Payment Terms],&lt;BR /&gt;[Account Code]&lt;BR /&gt;FROM&lt;BR /&gt;[Q:******** UK*.xlsx]&lt;BR /&gt;(ooxml, embedded labels, header is 5 lines, table is LUK)WHERE EXISTS ([Item No],('Sales minimum charges')) and (not IsNull([Invoice no.]));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is concatenated with other tables with the same fields.&lt;/P&gt;&lt;P&gt;Now i get all the data but none from the&amp;nbsp;&amp;nbsp;'LUK' as Location load.&lt;/P&gt;&lt;P&gt;Can you point out why this might be, thanks again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2019 08:49:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-load-exclusions-required/m-p/1570872#M596843</guid>
      <dc:creator>davyqliks</dc:creator>
      <dc:date>2019-04-18T08:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: Data load exclusions required</title>
      <link>https://community.qlik.com/t5/QlikView/Data-load-exclusions-required/m-p/1570955#M596844</link>
      <description>&lt;P&gt;Your syntax would require that field [Item No.] has been loaded prior to the LOAD statement you've posted and that it does hold a literal value 'Sales minimum charges'.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looks to me that this would result in a WHERE clause that checks a condition that is constant for the whole LOAD statement, so I wouldn't write it like this, but I assume you intend something else.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2019 10:57:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-load-exclusions-required/m-p/1570955#M596844</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2019-04-18T10:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: Data load exclusions required</title>
      <link>https://community.qlik.com/t5/QlikView/Data-load-exclusions-required/m-p/1572146#M596845</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank you again for your help, it is much appreciated:&lt;BR /&gt;Here is the lookup code loaded before the main load&lt;/P&gt;&lt;P&gt;[COA MAP]:&lt;BR /&gt;LOAD&lt;BR /&gt;//Location,&lt;BR /&gt;//[Account Code],&lt;BR /&gt;[Item Name]&lt;BR /&gt;FROM&lt;BR /&gt;[**********\Qlikview mapping_V2.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is [COA map]);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this load the lookup contains the column [Item Name] and it has the value 'Sales minimum charges'&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;now the main load is as per below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LOAD 'LUK' as Location,&lt;BR /&gt;[Retro in Base Currency],&lt;BR /&gt;[Invoice no.],&lt;BR /&gt;[Voucher Date],&lt;BR /&gt;Year([Voucher Date]) as [INV Year],&lt;BR /&gt;Month([Voucher Date]) as [Inv Month],&lt;BR /&gt;Day([Voucher Date]) as [Inv Day],&lt;BR /&gt;Date(monthstart([Voucher Date]), 'MMM-YYYY') as MonthYear,&lt;BR /&gt;[Brand Name],&lt;BR /&gt;[Retailer Name],&lt;BR /&gt;[Customer No.] as [Invoicing Customer No.],&lt;BR /&gt;[Customer name] as [Invoicing Customer name],&lt;BR /&gt;[Customer Invoicing Country],&lt;BR /&gt;[Item type],&lt;BR /&gt;[Item No.],&lt;BR /&gt;[Item Name],&lt;BR /&gt;[Invoice Item Line Quantity],&lt;BR /&gt;[Invoice Currency],&lt;BR /&gt;[Invoice Item Unit Price],&lt;BR /&gt;[Invoice Item Amount],&lt;BR /&gt;[VAT Amount],&lt;BR /&gt;[Invoice Item Total in Invoice Currency],&lt;BR /&gt;[Base Currency],&lt;BR /&gt;[Invoice Item Amount in Base Currency],&lt;BR /&gt;[VAT Amount in Base Currency],&lt;BR /&gt;[Invoice Item Total in Base Currency],&lt;BR /&gt;[Invoice Item Amount in Base Currency]* ApplyMap('Map_Currency_Rate1', [Base Currency] &amp;amp; '|' &amp;amp; Date([Voucher Date],'DD/MM/YYYY')) AS GBP_Price ,&lt;BR /&gt;[Invoice Item Amount in Base Currency]* ApplyMap('Map_Currency_Rate2', [Base Currency] &amp;amp; '|' &amp;amp; Date([Voucher Date],'DD/MM/YYYY')) AS HKD_Price,&lt;BR /&gt;[Invoice Payment Terms],&lt;BR /&gt;[Account Code]&lt;BR /&gt;FROM&lt;BR /&gt;[Q:\QVFiles\Group Sales\Labelon UK*.xlsx]&lt;BR /&gt;(ooxml, embedded labels, header is 5 lines, table is LUK)WHERE EXISTS ([Item Name],('Sales minimum charges')) and (not IsNull([Invoice no.]));&lt;/P&gt;&lt;P&gt;I am getting a return now for the UK but receiving All returns for [Item Name] from the [COA MAP] &amp;amp; the LUK load.&lt;/P&gt;&lt;P&gt;Thank you for your help but i feel back to the drawing board on this one.&lt;/P&gt;&lt;P&gt;I have renamed the 'description' in the coa lookup to [Item Name] so that there is a match to the main load. 'Sales minimum charges' exists as an item name in both but i now realise if i do this and it works, it will omit all Item name other than&amp;nbsp;'Sales minimum charges' in the UK load which will omit more than required.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a list of COA's for the UK with the value 99999999999, all with different descriptions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Initially i was asked to match and load the coa data by code, which i did but now as well as this i am asked to only load data for UK where COA=99999999999 and the description [Sales minimum charges]. i have changed description to [Item Name] in the lookup but now feel that i will omit all data other than this for item name in the uk.&lt;/P&gt;&lt;P&gt;Will it be better to load all other than a given list?&lt;/P&gt;&lt;P&gt;Thank you, I will understand if you drop this thread.&lt;/P&gt;&lt;P&gt;Thanks&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>Tue, 23 Apr 2019 14:19:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-load-exclusions-required/m-p/1572146#M596845</guid>
      <dc:creator>davyqliks</dc:creator>
      <dc:date>2019-04-23T14:19:05Z</dc:date>
    </item>
  </channel>
</rss>

