<?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 Load in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Mapping-Load/m-p/128379#M6387</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A mapping has the following logic and order:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mapTable: mapping load Lookup, Return&lt;/P&gt;&lt;P&gt;from MapSource;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mainTable: load * /* AllNeededFields */, applymap('mapTable', Lookup, Default) as Changed &lt;/P&gt;&lt;P&gt;from MainSource;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All loaded fields must be existing within the sources, the fieldnames within the mapping-table aren't important, only the order of them is and that it are two fields. The applymap() is executed within the main-table and need to contain the map-name, the Lookup and optional a default-value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 07 Oct 2018 10:11:21 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2018-10-07T10:11:21Z</dc:date>
    <item>
      <title>Mapping Load</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Mapping-Load/m-p/128372#M6380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have several files.&amp;nbsp; Each file has Company Name as one of the fields. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One file has the Company Names that I want to use.&amp;nbsp; (e.g., Smith Co., Inc).&amp;nbsp; The other files have variations on the desired name (e.g., Smith Co ;&amp;nbsp; Smith Company ;&amp;nbsp; etc.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to use the Mapping Load function to map all the variations of the name to the desired name, so I can use that name in all the linking and analysis. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a mapping file (called alt_names.xlsx) with alternate names in the first column (x), and the desired name in the second column (y).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the following statement to load the mapping file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;Mapping Load x,y from alt_names.xlsx&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;(ooxml,embedded labels, table is Sheet1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;After loading this file, the Company Name list in the Qlikview file shows both names, rather than the desired company name, and I am not getting the linking between the information for the specific company in the files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would appreciate suggestions to correct this situation.&amp;nbsp; Thanks in advance. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Apr 2021 07:49:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Mapping-Load/m-p/128372#M6380</guid>
      <dc:creator>pvragel</dc:creator>
      <dc:date>2021-04-02T07:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping Load</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Mapping-Load/m-p/128373#M6381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to use applymap() to match the data from the mapping-table, see: &lt;A href="https://community.qlik.com/qlik-blogpost/3497"&gt;Mapping … and not the geographical kind&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2018 13:32:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Mapping-Load/m-p/128373#M6381</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-10-02T13:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping Load</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Mapping-Load/m-p/128374#M6382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for pointing me in the right direction.&lt;/P&gt;&lt;P&gt;Based on the info in the link, I have the following script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CompanyMap:&lt;/P&gt;&lt;P&gt;Mapping Load RefCode,[Company Name] from alt_names.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;alt_names:&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;ApplyMap('CompanyMap',[Company Name]) as [Company Name]&lt;/P&gt;&lt;P&gt;from alt_names.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;alt_names.xlsx is the file with the first column (RefCode) being the alternate names that may appear in files, and the second column (Company Name) being the desired Company Name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This script runs without error, but does not produce the desired result.&amp;nbsp; I tried removing all the data and reloading, this also did not produce the desired result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does the position in the script matter?&amp;nbsp; I tried at both the beginning of the script and at the end of loading all the other files - neither produced the desired result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I missing?&amp;nbsp; Thanks for your help. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2018 15:48:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Mapping-Load/m-p/128374#M6382</guid>
      <dc:creator>pvragel</dc:creator>
      <dc:date>2018-10-03T15:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping Load</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Mapping-Load/m-p/128375#M6383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You're missing the target table where you're going to apply the map. If you see your script, you're apllying the map to the same mapping table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the structure for the mapping is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MapTable1:&lt;/P&gt;&lt;P&gt;Mapping Load KeyField, FieldToMap From Table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;Load KeyField, Applymap('MapTable1',KeyField) as FieldFromMap From Table2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps, thanks&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2018 15:56:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Mapping-Load/m-p/128375#M6383</guid>
      <dc:creator>CarlosAMonroy</dc:creator>
      <dc:date>2018-10-03T15:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping Load</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Mapping-Load/m-p/128376#M6384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you apply the map you are providing the company name, not the ref.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should read:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ApplyMap('CompanyMap',CompanyRef) as [Company Name]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Hope that helps,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Steve&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2018 15:58:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Mapping-Load/m-p/128376#M6384</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2018-10-03T15:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping Load</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Mapping-Load/m-p/128377#M6385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From the syntax it looks ok. but I think logically it should look more like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CompanyMap:&lt;/P&gt;&lt;P&gt;Mapping Load [Company Name] as &lt;STRONG&gt;LookupValue&lt;/STRONG&gt;, RefCode as &lt;STRONG&gt;ReturnValue&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; from alt_names.xlsx (ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MainTable&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;Load &lt;STRONG&gt;*,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ApplyMap('CompanyMap', [Company Name], '&lt;STRONG&gt;#NV - ' &amp;amp; &lt;/STRONG&gt;[Company Name]) as [Company Name&lt;STRONG&gt; New&lt;/STRONG&gt;]&lt;/P&gt;&lt;P&gt;from &lt;STRONG&gt;MainData&lt;/STRONG&gt;.xlsx (ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Means you need to load your main-data and replacing there the wrong names with the correct ones. Further, the fieldnames within a mapping-table are not important but the order is (I highlighted this order).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2018 16:12:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Mapping-Load/m-p/128377#M6385</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-10-03T16:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping Load</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Mapping-Load/m-p/128378#M6386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I renamed the columns in the mapping file.&lt;/P&gt;&lt;P&gt;the first column is RefCode (these are the variations on the company names)&lt;/P&gt;&lt;P&gt;the second column is WICoName (this is the [Company Name] that I want to use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interpreting your instructions I loaded the following code:&lt;/P&gt;&lt;P&gt;//load everything in the main file&lt;/P&gt;&lt;P&gt;Directory;&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;stamp_from_directory.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Detail2018100109293780);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//load the mapping file&lt;/P&gt;&lt;P&gt;CompanyMap:&lt;/P&gt;&lt;P&gt;Mapping Load RefCode, WICoName From alt_names.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//apply the map&lt;/P&gt;&lt;P&gt;stamp_from_directory:&lt;/P&gt;&lt;P&gt;Load [Company Name],&lt;/P&gt;&lt;P&gt;ApplyMap('CompanyMap',WICoName) as [Company Name] From&lt;/P&gt;&lt;P&gt;stamp_from_directory.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Detail2018100109293780);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I received the following error message:&lt;/P&gt;&lt;P&gt;Field not found - &amp;lt;WICoName&amp;gt;&lt;/P&gt;&lt;P&gt;stamp_from_directory:&lt;/P&gt;&lt;P&gt;Load [Company Name],&lt;/P&gt;&lt;P&gt;ApplyMap('CompanyMap',WICoName) as [Company Name] From&lt;/P&gt;&lt;P&gt;stamp_from_directory.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Detail2018100109293780)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The WICoName field name (from the alt_names file) is correct. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you advise where I am going wrong?&amp;nbsp; Thanks. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Oct 2018 16:57:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Mapping-Load/m-p/128378#M6386</guid>
      <dc:creator>pvragel</dc:creator>
      <dc:date>2018-10-06T16:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping Load</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Mapping-Load/m-p/128379#M6387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A mapping has the following logic and order:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mapTable: mapping load Lookup, Return&lt;/P&gt;&lt;P&gt;from MapSource;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mainTable: load * /* AllNeededFields */, applymap('mapTable', Lookup, Default) as Changed &lt;/P&gt;&lt;P&gt;from MainSource;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All loaded fields must be existing within the sources, the fieldnames within the mapping-table aren't important, only the order of them is and that it are two fields. The applymap() is executed within the main-table and need to contain the map-name, the Lookup and optional a default-value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Oct 2018 10:11:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Mapping-Load/m-p/128379#M6387</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-10-07T10:11:21Z</dc:date>
    </item>
  </channel>
</rss>

