<?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 Lookup across Tables and Create a new Field Value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Lookup-across-Tables-and-Create-a-new-Field-Value/m-p/1668446#M728079</link>
    <description>&lt;P&gt;Afternoon - hoping for some help with the following quandary.&lt;/P&gt;&lt;P&gt;I have two tables - Items &amp;amp; TradeAgreement.&lt;/P&gt;&lt;P&gt;On Load, I want to create another field on the Trade Agreement table&lt;/P&gt;&lt;P&gt;#Where the Item number in the Item table does not exist in the Trade Agreement Table&lt;/P&gt;&lt;P&gt;If there is a match - 'Yes' or 'No' as NewFieldName&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[Trade Agreements]:&lt;/STRONG&gt;&lt;BR /&gt;LOAD&lt;BR /&gt;[Vend Ac] as [PKVendor Acc],&lt;BR /&gt;[Vend Ac] as [TA FKVendor Acc],&lt;BR /&gt;[Vend Name],&lt;BR /&gt;[Item Id] as [PKItem ID],&lt;BR /&gt;[Item Name] as [TA Item Name],&lt;BR /&gt;[External Item Id] as [Item ID],&lt;BR /&gt;[External Item Name] as [Ext Item Name],&lt;BR /&gt;[Invent Dim ID],&lt;BR /&gt;[Item Relation],&lt;BR /&gt;[Configuration],&lt;BR /&gt;[Dim Group ID],&lt;BR /&gt;[From Date] as [TA From Date],&lt;BR /&gt;[To Date] as [TA To Date],&lt;BR /&gt;[Active],&lt;BR /&gt;[Unit],&lt;BR /&gt;[Quantity] as [Vendor Quantity],&lt;BR /&gt;[Price]&lt;BR /&gt;FROM [lib://Dev:DataFiles/Vendor Trade Agreement Lines.xls]&lt;BR /&gt;(biff, embedded labels, header is 1 lines, table is [Vendor Trade Agreement Lines.rd$]);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[Items]:&lt;/STRONG&gt;&lt;BR /&gt;LOAD&lt;BR /&gt;[Item number] as [PKItem ID],&lt;BR /&gt;[Item number] as [FKItem ID],&lt;BR /&gt;[Item name],&lt;BR /&gt;[Alternative item number],&lt;BR /&gt;[Use],&lt;BR /&gt;[Vendor] as [Item Vendor],&lt;BR /&gt;[Cost centre] as [Item Cost Centre],&lt;BR /&gt;[Department] as [Item Department],&lt;BR /&gt;[Product],&lt;BR /&gt;[Dimension group],&lt;BR /&gt;[Item group],&lt;BR /&gt;[Item type],&lt;BR /&gt;[Stock model group],&lt;BR /&gt;[Company item],&lt;BR /&gt;[Purchase unit],&lt;BR /&gt;[Price] as [Item Price],&lt;BR /&gt;[Date of price],&lt;BR /&gt;[Stock unit],&lt;BR /&gt;[Price2],&lt;BR /&gt;[Date of price3],&lt;BR /&gt;[Sales unit],&lt;BR /&gt;[Price4],&lt;BR /&gt;[Date of price5],&lt;BR /&gt;[Search name] as [Item Search Name]&lt;BR /&gt;FROM [lib://Dev:DataFiles/Item Details.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is [Item Details]);&lt;/P&gt;&lt;P&gt;Having read the posts around Lookup() still unsure.&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 01:26:31 GMT</pubDate>
    <dc:creator>8Gates</dc:creator>
    <dc:date>2024-11-16T01:26:31Z</dc:date>
    <item>
      <title>Lookup across Tables and Create a new Field Value</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-across-Tables-and-Create-a-new-Field-Value/m-p/1668446#M728079</link>
      <description>&lt;P&gt;Afternoon - hoping for some help with the following quandary.&lt;/P&gt;&lt;P&gt;I have two tables - Items &amp;amp; TradeAgreement.&lt;/P&gt;&lt;P&gt;On Load, I want to create another field on the Trade Agreement table&lt;/P&gt;&lt;P&gt;#Where the Item number in the Item table does not exist in the Trade Agreement Table&lt;/P&gt;&lt;P&gt;If there is a match - 'Yes' or 'No' as NewFieldName&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[Trade Agreements]:&lt;/STRONG&gt;&lt;BR /&gt;LOAD&lt;BR /&gt;[Vend Ac] as [PKVendor Acc],&lt;BR /&gt;[Vend Ac] as [TA FKVendor Acc],&lt;BR /&gt;[Vend Name],&lt;BR /&gt;[Item Id] as [PKItem ID],&lt;BR /&gt;[Item Name] as [TA Item Name],&lt;BR /&gt;[External Item Id] as [Item ID],&lt;BR /&gt;[External Item Name] as [Ext Item Name],&lt;BR /&gt;[Invent Dim ID],&lt;BR /&gt;[Item Relation],&lt;BR /&gt;[Configuration],&lt;BR /&gt;[Dim Group ID],&lt;BR /&gt;[From Date] as [TA From Date],&lt;BR /&gt;[To Date] as [TA To Date],&lt;BR /&gt;[Active],&lt;BR /&gt;[Unit],&lt;BR /&gt;[Quantity] as [Vendor Quantity],&lt;BR /&gt;[Price]&lt;BR /&gt;FROM [lib://Dev:DataFiles/Vendor Trade Agreement Lines.xls]&lt;BR /&gt;(biff, embedded labels, header is 1 lines, table is [Vendor Trade Agreement Lines.rd$]);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[Items]:&lt;/STRONG&gt;&lt;BR /&gt;LOAD&lt;BR /&gt;[Item number] as [PKItem ID],&lt;BR /&gt;[Item number] as [FKItem ID],&lt;BR /&gt;[Item name],&lt;BR /&gt;[Alternative item number],&lt;BR /&gt;[Use],&lt;BR /&gt;[Vendor] as [Item Vendor],&lt;BR /&gt;[Cost centre] as [Item Cost Centre],&lt;BR /&gt;[Department] as [Item Department],&lt;BR /&gt;[Product],&lt;BR /&gt;[Dimension group],&lt;BR /&gt;[Item group],&lt;BR /&gt;[Item type],&lt;BR /&gt;[Stock model group],&lt;BR /&gt;[Company item],&lt;BR /&gt;[Purchase unit],&lt;BR /&gt;[Price] as [Item Price],&lt;BR /&gt;[Date of price],&lt;BR /&gt;[Stock unit],&lt;BR /&gt;[Price2],&lt;BR /&gt;[Date of price3],&lt;BR /&gt;[Sales unit],&lt;BR /&gt;[Price4],&lt;BR /&gt;[Date of price5],&lt;BR /&gt;[Search name] as [Item Search Name]&lt;BR /&gt;FROM [lib://Dev:DataFiles/Item Details.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is [Item Details]);&lt;/P&gt;&lt;P&gt;Having read the posts around Lookup() still unsure.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:26:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-across-Tables-and-Create-a-new-Field-Value/m-p/1668446#M728079</guid>
      <dc:creator>8Gates</dc:creator>
      <dc:date>2024-11-16T01:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup across Tables and Create a new Field Value</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-across-Tables-and-Create-a-new-Field-Value/m-p/1668453#M728080</link>
      <description>&lt;P&gt;If you are interested - resolved with some code&lt;/P&gt;&lt;P&gt;Build a map table&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[Map Items]:&lt;/STRONG&gt;&lt;BR /&gt;Mapping Load&lt;BR /&gt;[Item number],&lt;BR /&gt;[Item name]&lt;BR /&gt;FROM lib://Dev:DataFiles/Items.QVD (QVD);&lt;/P&gt;&lt;P&gt;Then as the trade agreement load&lt;/P&gt;&lt;P&gt;[Trade Agreements]:&lt;BR /&gt;LOAD&lt;BR /&gt;[Vend Ac] as [PKVendor Acc],&lt;BR /&gt;[Vend Ac] as [TA FKVendor Acc],&lt;BR /&gt;[Vend Name],&lt;BR /&gt;[Item Id] as [PKItem ID],&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;If(Len((ApplyMap('Map Items',[Item Id],Null())))&amp;lt; 1,'No','Yes') as [Item Exists],&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;[Item Name] as [TA Item Name],&lt;BR /&gt;[External Item Id] as [Item ID],&lt;BR /&gt;[External Item Name] as [Ext Item Name],&lt;BR /&gt;[Invent Dim ID],&lt;BR /&gt;[Item Relation],&lt;BR /&gt;[Configuration],&lt;BR /&gt;[Dim Group ID],&lt;BR /&gt;[From Date] as [TA From Date],&lt;BR /&gt;[To Date] as [TA To Date],&lt;BR /&gt;[Active],&lt;BR /&gt;[Unit],&lt;BR /&gt;[Quantity] as [Vendor Quantity],&lt;BR /&gt;[Price]&lt;BR /&gt;FROM lib://Dev:DataFiles/Trade_Agreements.QVD (QVD);&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, 23 Jan 2020 11:56:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-across-Tables-and-Create-a-new-Field-Value/m-p/1668453#M728080</guid>
      <dc:creator>8Gates</dc:creator>
      <dc:date>2020-01-23T11:56:37Z</dc:date>
    </item>
  </channel>
</rss>

