<?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: So can we use 'Mapping' with 'ApplyMap' in a single table mapping? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/So-can-we-use-Mapping-with-ApplyMap-in-a-single-table-mapping/m-p/1342659#M821558</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandip&lt;/P&gt;&lt;P&gt;your code should work fine.&lt;/P&gt;&lt;P&gt;I would suggest that you make a copy of the map table as a normal table to see if the applymap is returning the correct key values in your final mapping table or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Map_D_FIRM]:&lt;/P&gt;&lt;P&gt;Mapping &lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; ApplyMap('Map_F_SALES_TRN', "Firm ID") as [Trn Key],&lt;/P&gt;&lt;P&gt;&amp;nbsp; "Firm Channel Desc" as "Channel Name"&lt;/P&gt;&lt;P&gt;resident [D_FIRM];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Test Map_D_FIRM]:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; ApplyMap('Map_F_SALES_TRN', "Firm ID",&lt;STRONG&gt;'No match Found'&lt;/STRONG&gt;) as [Trn Key],&lt;/P&gt;&lt;P&gt;&amp;nbsp; "Firm Channel Desc" as "Channel Name"&lt;/P&gt;&lt;P&gt;resident [D_FIRM];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;exit script;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At this point you could inspect the contents of the table either using table viewer or&amp;nbsp; chart/table box objects&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Aug 2017 18:15:10 GMT</pubDate>
    <dc:creator>sasiparupudi1</dc:creator>
    <dc:date>2017-08-03T18:15:10Z</dc:date>
    <item>
      <title>So can we use 'Mapping' with 'ApplyMap' in a single table mapping?</title>
      <link>https://community.qlik.com/t5/QlikView/So-can-we-use-Mapping-with-ApplyMap-in-a-single-table-mapping/m-p/1342654#M821553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using the below code and here I have used 'Mapping' with 'ApplyMap' , but when I am using this mapping in another ApplyMap(), it does not replace [Trn Key] with the channel name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Map_D_FIRM]:&lt;/P&gt;&lt;P&gt;Mapping &lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; ApplyMap('Map_F_SALES_TRN', "Firm ID") as [Trn Key],&lt;/P&gt;&lt;P&gt;&amp;nbsp; "Firm Channel Desc" as "Channel Name"&lt;/P&gt;&lt;P&gt;resident [D_FIRM];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So can we use 'Mapping' with 'ApplyMap' in a single table mapping?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank,&lt;/P&gt;&lt;P&gt;Sandip&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/So-can-we-use-Mapping-with-ApplyMap-in-a-single-table-mapping/m-p/1342654#M821553</guid>
      <dc:creator>ananyaghosh</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: So can we use 'Mapping' with 'ApplyMap' in a single table mapping?</title>
      <link>https://community.qlik.com/t5/QlikView/So-can-we-use-Mapping-with-ApplyMap-in-a-single-table-mapping/m-p/1342655#M821554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sandip,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is no issue in using ApplyMap within a Mapping load. I'd suggest that if you are having issues with this final mapping table you try creating you mapping table initially as a normal table to make sure that it at least associates with the target table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2017 09:48:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/So-can-we-use-Mapping-with-ApplyMap-in-a-single-table-mapping/m-p/1342655#M821554</guid>
      <dc:creator>marcus_malinow</dc:creator>
      <dc:date>2017-08-03T09:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: So can we use 'Mapping' with 'ApplyMap' in a single table mapping?</title>
      <link>https://community.qlik.com/t5/QlikView/So-can-we-use-Mapping-with-ApplyMap-in-a-single-table-mapping/m-p/1342656#M821555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp; Sandip,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You Cant do like this. Qlik can not understand which fields should map. And What is your purpose behind it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Arvind Patil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2017 10:31:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/So-can-we-use-Mapping-with-ApplyMap-in-a-single-table-mapping/m-p/1342656#M821555</guid>
      <dc:creator>arvind_patil</dc:creator>
      <dc:date>2017-08-03T10:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: So can we use 'Mapping' with 'ApplyMap' in a single table mapping?</title>
      <link>https://community.qlik.com/t5/QlikView/So-can-we-use-Mapping-with-ApplyMap-in-a-single-table-mapping/m-p/1342657#M821556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Arvind,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you're wrong. As long as your mapping tables are set up correctly, you can use a nested ApplyMap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Map1:&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MAPPING&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;INLINE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[From1, To1&lt;BR /&gt; A, AA&lt;BR /&gt; B, BB&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt; &lt;BR /&gt; Map2:&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MAPPING&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ApplyMap&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('Map1', &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;From1&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;From2&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Description&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; ;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;INLINE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt; From1, Description&lt;BR /&gt; A, ThisShouldBeMappedByAA&lt;BR /&gt; B, ThisShouldBeMappedByBB&lt;BR /&gt; C, ThisShouldBeMappedByC&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; ;&lt;BR /&gt; &lt;BR /&gt; FinalTable:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Load&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;From2&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ApplyMap&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('Map2', &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;From2&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, 'Unmapped') &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;NestedMapResult&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Mapped&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;INLINE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[From2, Mapped&lt;BR /&gt; AA, Yes&lt;BR /&gt; BB, Yes&lt;BR /&gt; CC, No&lt;BR /&gt; C, Yes but via C&lt;BR /&gt; D, No&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2017 10:40:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/So-can-we-use-Mapping-with-ApplyMap-in-a-single-table-mapping/m-p/1342657#M821556</guid>
      <dc:creator>marcus_malinow</dc:creator>
      <dc:date>2017-08-03T10:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: So can we use 'Mapping' with 'ApplyMap' in a single table mapping?</title>
      <link>https://community.qlik.com/t5/QlikView/So-can-we-use-Mapping-with-ApplyMap-in-a-single-table-mapping/m-p/1342658#M821557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandip,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you trying to do an ApplyMap when creating another MAPPING table, using a nested ApplyMap as Marcus suggests?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can get a better picture of what ApplyMap is doing if you add a third parameter, something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ApplyMap('Map_F_SALES_TRN', "Firm ID", 'Not Found: ' &amp;amp; "Firm ID") as [Trn Key],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The extra parameter proves what is going on.&amp;nbsp; If the map name is missing Trn Key will be null.&amp;nbsp; If all values are prefixed with Not Found then the map exists but there is no match between the first field in the mapping table and the "Firm ID".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there are no matches check for things like spaces and the case of the values (adding Trim and Upper can help),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This blog post on ApplyMap covers all kinds of scenarios, including nested ApplyMap:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.quickintelligence.co.uk/applymap-is-it-so-wrong/" title="https://www.quickintelligence.co.uk/applymap-is-it-so-wrong/"&gt;https://www.quickintelligence.co.uk/applymap-is-it-so-wrong/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2017 13:31:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/So-can-we-use-Mapping-with-ApplyMap-in-a-single-table-mapping/m-p/1342658#M821557</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2017-08-03T13:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: So can we use 'Mapping' with 'ApplyMap' in a single table mapping?</title>
      <link>https://community.qlik.com/t5/QlikView/So-can-we-use-Mapping-with-ApplyMap-in-a-single-table-mapping/m-p/1342659#M821558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandip&lt;/P&gt;&lt;P&gt;your code should work fine.&lt;/P&gt;&lt;P&gt;I would suggest that you make a copy of the map table as a normal table to see if the applymap is returning the correct key values in your final mapping table or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Map_D_FIRM]:&lt;/P&gt;&lt;P&gt;Mapping &lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; ApplyMap('Map_F_SALES_TRN', "Firm ID") as [Trn Key],&lt;/P&gt;&lt;P&gt;&amp;nbsp; "Firm Channel Desc" as "Channel Name"&lt;/P&gt;&lt;P&gt;resident [D_FIRM];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Test Map_D_FIRM]:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; ApplyMap('Map_F_SALES_TRN', "Firm ID",&lt;STRONG&gt;'No match Found'&lt;/STRONG&gt;) as [Trn Key],&lt;/P&gt;&lt;P&gt;&amp;nbsp; "Firm Channel Desc" as "Channel Name"&lt;/P&gt;&lt;P&gt;resident [D_FIRM];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;exit script;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At this point you could inspect the contents of the table either using table viewer or&amp;nbsp; chart/table box objects&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2017 18:15:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/So-can-we-use-Mapping-with-ApplyMap-in-a-single-table-mapping/m-p/1342659#M821558</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2017-08-03T18:15:10Z</dc:date>
    </item>
  </channel>
</rss>

