<?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: Mapping Require 2 column in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Mapping-Require-2-column/m-p/1535861#M746453</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please assist the the error, what I am doing wrong there:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Field names must be unique within table&lt;/STRONG&gt;&lt;BR /&gt;FoundTable:&lt;BR /&gt;LOAD PartNumber,&lt;BR /&gt;[SAP Asset Number],&lt;BR /&gt;Subnumber,&lt;BR /&gt;[Capitalized on],&lt;BR /&gt;Description,&lt;BR /&gt;Inventorynumber,&lt;BR /&gt;PartNumber1,&lt;BR /&gt;SerialNumber,&lt;BR /&gt;[asset class no],&lt;BR /&gt;[asset class],&lt;BR /&gt;ApplyMap('SapSearchTable',PartNumber,'NA') as PartNumber1,&lt;BR /&gt;ApplyMap('SapSearchTable',Subnumber,'NA') as Subnumber2,&lt;BR /&gt;ApplyMap('SapSearchTable', [Capitalized on],'NA') as [Capitalized on1],&lt;BR /&gt;ApplyMap('SapSearchTable', Description,'NA') as Description2,&lt;BR /&gt;ApplyMap('SapSearchTable', Inventorynumber,'NA') as Inventorynumber2,&lt;BR /&gt;ApplyMap('SapSearchTable', PartNumber1,'NA') as PartNumber2,&lt;BR /&gt;ApplyMap('SapSearchTable', SerialNumber,'NA') as SerialNumber2,&lt;BR /&gt;ApplyMap('SapSearchTable', [asset class no],'NA') as [asset class no1]&lt;BR /&gt;&lt;BR /&gt;FROM&lt;BR /&gt;[Fixed Asset Register Recon Jan WIP For Thabo Data-Man.xlsm]&lt;BR /&gt;(ooxml, embedded labels, table is [Fixed Asset Register 1PART])&lt;/P&gt;</description>
    <pubDate>Mon, 28 Jan 2019 11:57:38 GMT</pubDate>
    <dc:creator>Vincent24</dc:creator>
    <dc:date>2019-01-28T11:57:38Z</dc:date>
    <item>
      <title>Mapping Require 2 column</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-Require-2-column/m-p/1535820#M746447</link>
      <description>&lt;P&gt;Attempting to use ApplyMap to&amp;nbsp;search for matching Data from the first table called '&lt;SPAN&gt;InventoryList' and the field name containing the Data is&lt;/SPAN&gt;&amp;nbsp; called '&lt;SPAN&gt;PMDescription'. The&lt;/SPAN&gt;&amp;nbsp;second table contains multiple fields&amp;nbsp; that has the same I would like to join and I keep getting MAPPING requires 2-column input. What is the propoer syntax. Works fin when I try to map a single field.&lt;/P&gt;&lt;P&gt;Example:&lt;BR /&gt;Directory;&lt;BR /&gt;SapSearchTable:&lt;BR /&gt;Mapping LOAD&lt;BR /&gt;&lt;STRONG&gt;PMDescription,&lt;/STRONG&gt;&lt;BR /&gt;AssetBarCode,&lt;BR /&gt;Username&lt;BR /&gt;&lt;BR /&gt;FROM&lt;BR /&gt;[Fixed Asset Register Recon Jan WIP For Thabo Data-Man.xlsm]&lt;BR /&gt;(ooxml, embedded labels, table is InventoryList);&lt;/P&gt;&lt;P&gt;Directory;&lt;BR /&gt;FoundTable:&lt;BR /&gt;LOAD PartNumber,&lt;BR /&gt;ApplyMap('SapSearchTable',PartNumber,0) as PartNumber1,&lt;BR /&gt;[SAP Asset Number],&lt;BR /&gt;Subnumber,&lt;BR /&gt;ApplyMap('SapSearchTable',Subnumber,'NA') as Subnumber2,&lt;BR /&gt;[Capitalized on],&lt;BR /&gt;ApplyMap('SapSearchTable', [Capitalized on],'NA') as [Capitalized on1],&lt;BR /&gt;Description,&lt;BR /&gt;ApplyMap('SapSearchTable', Description,'NA') as Description2,&lt;BR /&gt;Inventorynumber,&lt;BR /&gt;ApplyMap('SapSearchTable', Inventorynumber,'NA') as Inventorynumber2,&lt;BR /&gt;PartNumber1,&lt;BR /&gt;ApplyMap('SapSearchTable', PartNumber1,'NA') as PartNumber2,&lt;BR /&gt;SerialNumber,&lt;BR /&gt;ApplyMap('SapSearchTable', SerialNumber,'NA') as SerialNumber2,&lt;BR /&gt;[asset class no],&lt;BR /&gt;ApplyMap('SapSearchTable', [asset class no],'NA') as [asset class no1],&lt;BR /&gt;[asset class]&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;FROM&lt;BR /&gt;[Fixed Asset Register Recon Jan WIP For Thabo Data-Man.xlsm]&lt;BR /&gt;(ooxml, embedded labels, table is [Fixed Asset Register 1PART]);&lt;/P&gt;&lt;P&gt;store Found into C:\Users\BET\Downloads\10k;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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/Mapping-Require-2-column/m-p/1535820#M746447</guid>
      <dc:creator>Vincent24</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping Require 2 column</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-Require-2-column/m-p/1535839#M746448</link>
      <description>This is exactly as the error-message says:&lt;BR /&gt;a mapping-table can have only two columns: value to read and value to write.&lt;BR /&gt;Naming of the column is not relevant.&lt;BR /&gt;Thus your script should read:&lt;BR /&gt;SapSearchTable:&lt;BR /&gt;Mapping LOAD&lt;BR /&gt;PMDescription,&lt;BR /&gt;AssetBarCode&lt;BR /&gt;&lt;BR /&gt;FROM&lt;BR /&gt;[Fixed Asset Register Recon Jan WIP For Thabo Data-Man.xlsm]&lt;BR /&gt;(ooxml, embedded labels, table is InventoryList);&lt;BR /&gt;&lt;BR /&gt;If you need another column for a further specification, you may have to consider either a nested mapping or to use a combined key.&lt;BR /&gt;&lt;BR /&gt;HTH Peter</description>
      <pubDate>Mon, 28 Jan 2019 11:25:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-Require-2-column/m-p/1535839#M746448</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2019-01-28T11:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping Require 2 column</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-Require-2-column/m-p/1535842#M746449</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you, I removed the other field however when I reload I'm getting an error that says:&lt;/P&gt;&lt;P&gt;Not sure what is wrong with my script.&lt;/P&gt;&lt;P&gt;Error Scrip&lt;/P&gt;&lt;P&gt;Field names must be unique within table&lt;BR /&gt;FoundTable:&lt;BR /&gt;LOAD PartNumber,&lt;BR /&gt;ApplyMap('SapSearchTable',PartNumber,'NA') as PartNumber1,&lt;BR /&gt;[SAP Asset Number],&lt;BR /&gt;Subnumber,&lt;BR /&gt;ApplyMap('SapSearchTable',Subnumber,'NA') as Subnumber2,&lt;BR /&gt;[Capitalized on],&lt;BR /&gt;ApplyMap('SapSearchTable', [Capitalized on],'NA') as [Capitalized on1],&lt;BR /&gt;Description,&lt;BR /&gt;ApplyMap('SapSearchTable', Description,'NA') as Description2,&lt;BR /&gt;Inventorynumber,&lt;BR /&gt;ApplyMap('SapSearchTable', Inventorynumber,'NA') as Inventorynumber2,&lt;BR /&gt;PartNumber1,&lt;BR /&gt;ApplyMap('SapSearchTable', PartNumber1,'NA') as PartNumber2,&lt;BR /&gt;SerialNumber,&lt;BR /&gt;ApplyMap('SapSearchTable', SerialNumber,'NA') as SerialNumber2,&lt;BR /&gt;[asset class no],&lt;BR /&gt;ApplyMap('SapSearchTable', [asset class no],'NA') as [asset class no1],&lt;BR /&gt;[asset class]&lt;BR /&gt;&lt;BR /&gt;FROM&lt;BR /&gt;[Fixed Asset Register Recon Jan WIP For Thabo Data-Man.xlsm]&lt;BR /&gt;(ooxml, embedded labels, table is [Fixed Asset Register 1PART])&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jan 2019 11:30:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-Require-2-column/m-p/1535842#M746449</guid>
      <dc:creator>Vincent24</dc:creator>
      <dc:date>2019-01-28T11:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping Require 2 column</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-Require-2-column/m-p/1535851#M746450</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm new to qlik, what is a&amp;nbsp;n&lt;SPAN&gt;ested mapping or a combined key?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jan 2019 11:40:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-Require-2-column/m-p/1535851#M746450</guid>
      <dc:creator>Vincent24</dc:creator>
      <dc:date>2019-01-28T11:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping Require 2 column</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-Require-2-column/m-p/1535852#M746451</link>
      <description>&lt;P&gt;Partnumber1 is repeated in your load statement.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jan 2019 11:41:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-Require-2-column/m-p/1535852#M746451</guid>
      <dc:creator>nwest1965</dc:creator>
      <dc:date>2019-01-28T11:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping Require 2 column</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-Require-2-column/m-p/1535857#M746452</link>
      <description>&lt;P&gt;Nested mapping - is where you use ApplyMap result to find a value in another Applymap function:&lt;/P&gt;&lt;P&gt;Standard Statement:&lt;/P&gt;&lt;P&gt;ApplyMap('MAP_TABLE_1', Field1, 'DEFAULT VALUE') AS FieldX&lt;/P&gt;&lt;P&gt;Field1 in this case is an existing value in the table, but what if we had to find the value of Field1 from a mapping table, using a different field in the table:&lt;/P&gt;&lt;P&gt;ApplyMap('MAP_TABLE_1',&amp;nbsp; ApplyMap('MAP_TABLE_2', FieldABC, '0'), 'DEFAULT VALUE') AS FieldX&lt;/P&gt;&lt;P&gt;In the above example we are finding the key value to lookup on MAP TABLE 1 by using another lookup on MAP TABLE 2.&lt;/P&gt;&lt;P&gt;That is nested mapping.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A combined key is more often referred to as a Composite Key, it basically means combining several values into a single field that is replicated across tables and used to join the tables together.&amp;nbsp; Without a composite key, QlikView will create $Syn values &amp;amp; tables, so the tidier way is for you to create the composite key yourself and retain control.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jan 2019 11:51:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-Require-2-column/m-p/1535857#M746452</guid>
      <dc:creator>nwest1965</dc:creator>
      <dc:date>2019-01-28T11:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping Require 2 column</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-Require-2-column/m-p/1535861#M746453</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please assist the the error, what I am doing wrong there:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Field names must be unique within table&lt;/STRONG&gt;&lt;BR /&gt;FoundTable:&lt;BR /&gt;LOAD PartNumber,&lt;BR /&gt;[SAP Asset Number],&lt;BR /&gt;Subnumber,&lt;BR /&gt;[Capitalized on],&lt;BR /&gt;Description,&lt;BR /&gt;Inventorynumber,&lt;BR /&gt;PartNumber1,&lt;BR /&gt;SerialNumber,&lt;BR /&gt;[asset class no],&lt;BR /&gt;[asset class],&lt;BR /&gt;ApplyMap('SapSearchTable',PartNumber,'NA') as PartNumber1,&lt;BR /&gt;ApplyMap('SapSearchTable',Subnumber,'NA') as Subnumber2,&lt;BR /&gt;ApplyMap('SapSearchTable', [Capitalized on],'NA') as [Capitalized on1],&lt;BR /&gt;ApplyMap('SapSearchTable', Description,'NA') as Description2,&lt;BR /&gt;ApplyMap('SapSearchTable', Inventorynumber,'NA') as Inventorynumber2,&lt;BR /&gt;ApplyMap('SapSearchTable', PartNumber1,'NA') as PartNumber2,&lt;BR /&gt;ApplyMap('SapSearchTable', SerialNumber,'NA') as SerialNumber2,&lt;BR /&gt;ApplyMap('SapSearchTable', [asset class no],'NA') as [asset class no1]&lt;BR /&gt;&lt;BR /&gt;FROM&lt;BR /&gt;[Fixed Asset Register Recon Jan WIP For Thabo Data-Man.xlsm]&lt;BR /&gt;(ooxml, embedded labels, table is [Fixed Asset Register 1PART])&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jan 2019 11:57:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-Require-2-column/m-p/1535861#M746453</guid>
      <dc:creator>Vincent24</dc:creator>
      <dc:date>2019-01-28T11:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping Require 2 column</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-Require-2-column/m-p/1535862#M746454</link>
      <description>&lt;P&gt;As I said above, PartNumber1 is duplicated in this load statement, and that is not allowed.&amp;nbsp; So just change the second one to PartNumber3 (you have PartNumber2 already further down)&amp;nbsp;or whatever else you want to call it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FoundTable:&lt;BR /&gt;LOAD PartNumber,&lt;BR /&gt;[SAP Asset Number],&lt;BR /&gt;Subnumber,&lt;BR /&gt;[Capitalized on],&lt;BR /&gt;Description,&lt;BR /&gt;Inventorynumber,&lt;BR /&gt;&lt;STRONG&gt;PartNumber1,&lt;/STRONG&gt;&lt;BR /&gt;SerialNumber,&lt;BR /&gt;[asset class no],&lt;BR /&gt;[asset class],&lt;BR /&gt;ApplyMap('SapSearchTable',PartNumber,'NA') as &lt;STRONG&gt;PartNumber1&lt;/STRONG&gt;,&lt;BR /&gt;ApplyMap('SapSearchTable',Subnumber,'NA') as Subnumber2,&lt;BR /&gt;ApplyMap('SapSearchTable', [Capitalized on],'NA') as [Capitalized on1],&lt;BR /&gt;ApplyMap('SapSearchTable', Description,'NA') as Description2,&lt;BR /&gt;ApplyMap('SapSearchTable', Inventorynumber,'NA') as Inventorynumber2,&lt;BR /&gt;ApplyMap('SapSearchTable', PartNumber1,'NA') as PartNumber2,&lt;BR /&gt;ApplyMap('SapSearchTable', SerialNumber,'NA') as SerialNumber2,&lt;BR /&gt;ApplyMap('SapSearchTable', [asset class no],'NA') as [asset class no1]&lt;BR /&gt;&lt;BR /&gt;FROM&lt;BR /&gt;[Fixed Asset Register Recon Jan WIP For Thabo Data-Man.xlsm]&lt;BR /&gt;(ooxml, embedded labels, table is [Fixed Asset Register 1PART])&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jan 2019 12:01:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-Require-2-column/m-p/1535862#M746454</guid>
      <dc:creator>nwest1965</dc:creator>
      <dc:date>2019-01-28T12:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping Require 2 column</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-Require-2-column/m-p/1535873#M746455</link>
      <description>&lt;P&gt;Thank you so so much, could't spot that problem&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jan 2019 12:16:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-Require-2-column/m-p/1535873#M746455</guid>
      <dc:creator>Vincent24</dc:creator>
      <dc:date>2019-01-28T12:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping Require 2 column</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-Require-2-column/m-p/1535878#M746456</link>
      <description>&lt;P&gt;The challenge I'm having now is that its not showing the fields from the first table:&lt;/P&gt;&lt;P&gt;Directory;&lt;BR /&gt;SapSearchTable:&lt;BR /&gt;Mapping LOAD&lt;STRONG&gt; PMDescription,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;AssetBarCode&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Only shows fields from the second table after reload.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jan 2019 12:22:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-Require-2-column/m-p/1535878#M746456</guid>
      <dc:creator>Vincent24</dc:creator>
      <dc:date>2019-01-28T12:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping Require 2 column</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-Require-2-column/m-p/1535918#M746457</link>
      <description>&lt;P&gt;A mapping table is only a temporary table that exists only whilst the load script is being run.&amp;nbsp; The purpose of a mapping table is to "map" field values from one source onto another.&amp;nbsp; In your case for example the value of AssetBarCode from your mapping table is now contained in your primary table, and is contained within specific fields according to the value of PMDescription.&lt;/P&gt;&lt;P&gt;So the question is, why would you also want the source table itself?&lt;/P&gt;&lt;P&gt;It shouldn't be of any value to you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jan 2019 13:02:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-Require-2-column/m-p/1535918#M746457</guid>
      <dc:creator>nwest1965</dc:creator>
      <dc:date>2019-01-28T13:02:55Z</dc:date>
    </item>
  </channel>
</rss>

