<?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: ApplyMap question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/ApplyMap-question/m-p/1321472#M840559</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like below,&lt;/P&gt;&lt;P&gt;&amp;nbsp; ApplyMap('MapFile',[Event Name],'Undefined') as NEWNAME&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 May 2017 17:19:18 GMT</pubDate>
    <dc:creator>devarasu07</dc:creator>
    <dc:date>2017-05-10T17:19:18Z</dc:date>
    <item>
      <title>ApplyMap question</title>
      <link>https://community.qlik.com/t5/QlikView/ApplyMap-question/m-p/1321471#M840558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to use the ApplyMap function.&amp;nbsp; It is working partially.&amp;nbsp; It gets the first row correctly but any additional rows are neglected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;MapFile:&lt;BR /&gt; &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;FROM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; [New Event Names.xlsx]&lt;BR /&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ooxml&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;embedded&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;labels&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;table&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;is&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; Sheet1);&lt;BR /&gt; &lt;BR /&gt; FullFile:&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: #800000; font-size: 8pt;"&gt;[Event Name]&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;('MapFile',&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Event Name]&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; NEWNAME&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;FROM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; [S&amp;amp;C All Fields.xlsx]&lt;BR /&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ooxml&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;embedded&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;labels&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;table&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;is&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; [S&amp;amp;C All Fields]); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;row from mapping file...&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); border-image: none; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Old Name&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;New Name&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Admin Login Successful&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;UA.U.DE&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;result...&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); border-image: none; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Event Name&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;New Name&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Admin Login Successful&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;UA.U.DE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Admin Login Successful&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Admin Login Successful&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Admin Login Successful&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Admin Login Successful&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Any ideas why this is happening?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&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/ApplyMap-question/m-p/1321471#M840558</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: ApplyMap question</title>
      <link>https://community.qlik.com/t5/QlikView/ApplyMap-question/m-p/1321472#M840559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like below,&lt;/P&gt;&lt;P&gt;&amp;nbsp; ApplyMap('MapFile',[Event Name],'Undefined') as NEWNAME&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 17:19:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ApplyMap-question/m-p/1321472#M840559</guid>
      <dc:creator>devarasu07</dc:creator>
      <dc:date>2017-05-10T17:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: ApplyMap question</title>
      <link>https://community.qlik.com/t5/QlikView/ApplyMap-question/m-p/1321473#M840560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So now the 2nd and 3rd rows show 'undefined' instead of the original event name.&amp;nbsp; Still not mapping correctly like the 1st row to UA.U.DE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 17:22:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ApplyMap-question/m-p/1321473#M840560</guid>
      <dc:creator />
      <dc:date>2017-05-10T17:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: ApplyMap question</title>
      <link>https://community.qlik.com/t5/QlikView/ApplyMap-question/m-p/1321474#M840561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share your Excel files to test?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 17:23:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ApplyMap-question/m-p/1321474#M840561</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-10T17:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: ApplyMap question</title>
      <link>https://community.qlik.com/t5/QlikView/ApplyMap-question/m-p/1321475#M840562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your script seems to work &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;MapFile:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Mapping &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD [Old Name], &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [New Name]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2003" data-containertype="14" data-objectid="260022" data-objecttype="1" href="https://community.qlik.com/thread/260022"&gt;https://community.qlik.com/thread/260022&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(html, codepage is 1252, embedded labels, table is @1);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FullFile:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD [Event Name], &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap('MapFile',[Event Name]) as [New Name]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2003" data-containertype="14" data-objectid="260022" data-objecttype="1" href="https://community.qlik.com/thread/260022"&gt;https://community.qlik.com/thread/260022&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(html, codepage is 1252, embedded labels, table is @2);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;IMG alt="1.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/162834_1.jpg" style="height: auto; width: auto;" /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 17:27:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ApplyMap-question/m-p/1321475#M840562</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2017-05-10T17:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: ApplyMap question</title>
      <link>https://community.qlik.com/t5/QlikView/ApplyMap-question/m-p/1321476#M840563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Some &lt;STRONG&gt;Hint&lt;/STRONG&gt; about mapping table &amp;amp; why we use it:&lt;/P&gt;&lt;P&gt;1) Mapping table must have two columns&lt;/P&gt;&lt;P&gt;2) first field should be key field (mapping key)&lt;/P&gt;&lt;P&gt;3) 2nd field will mapping value&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Syntax:&lt;/STRONG&gt;&amp;nbsp; Applymap('mapping table name',match_keyfield,'match not found') as newCol&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Why we use it?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;-&amp;gt;it's used to reduce the number of table &lt;/P&gt;&lt;P&gt;-&amp;gt;it's like excel vlookup feature&lt;/P&gt;&lt;P&gt;-&amp;gt;used to create star schema&lt;/P&gt;&lt;P&gt;-&amp;gt;after script execution this mapping table will get auto dropped from memory&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 17:33:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ApplyMap-question/m-p/1321476#M840563</guid>
      <dc:creator>devarasu07</dc:creator>
      <dc:date>2017-05-10T17:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: ApplyMap question</title>
      <link>https://community.qlik.com/t5/QlikView/ApplyMap-question/m-p/1321477#M840564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be spaces around event name, you may try trimming them before loading using trim()&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 17:35:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ApplyMap-question/m-p/1321477#M840564</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2017-05-10T17:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: ApplyMap question</title>
      <link>https://community.qlik.com/t5/QlikView/ApplyMap-question/m-p/1321478#M840565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it is working after all. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I was looking at the results in Qlikview is looked like 3 rows were 'Admin Login Successful'.&amp;nbsp; So I expected all 3 to map to 'UA.U.DE'.&amp;nbsp; In reviewing my source data though, only the first one is 'Admin Login Successful'.&amp;nbsp; The other 2 rows were 'Admin Login Successful and User Login Success'.&amp;nbsp; So those 2 rows shouldn't have mapped the way I have the logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I just have to figure out why those 2 rows are appearing without 'and User Login Success' in Qlikview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 17:54:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ApplyMap-question/m-p/1321478#M840565</guid>
      <dc:creator />
      <dc:date>2017-05-10T17:54:42Z</dc:date>
    </item>
  </channel>
</rss>

