<?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: Unable to use ApplyMap properly in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Unable-to-use-ApplyMap-properly/m-p/87551#M602048</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seemingly this fixed it, i can't have square brackets around the table name? I don't even know what the brackets do other than allows spaces I presume?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;map_emails:&lt;/P&gt;&lt;P&gt;mapping load distinct [list_email_id],&lt;/P&gt;&lt;P&gt;[email_id]&lt;/P&gt;&lt;P&gt;Resident RestConnectorMasterTable WHERE [list_email_id] &amp;lt;&amp;gt; null() and [email_id] &amp;lt;&amp;gt; null();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[UniqueEmailTable]:&lt;/P&gt;&lt;P&gt;LOAD Distinct&lt;/P&gt;&lt;P&gt;[list_email_id] as list_email_id_TEMP,&lt;/P&gt;&lt;P&gt;ApplyMap('map_emails',[list_email_id], null()) as email_id_TEMP&lt;/P&gt;&lt;P&gt;RESIDENT RestConnectorMasterTable Where [list_email_id] &amp;lt;&amp;gt; null();&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Sep 2018 10:56:31 GMT</pubDate>
    <dc:creator>james_hanify</dc:creator>
    <dc:date>2018-09-19T10:56:31Z</dc:date>
    <item>
      <title>Unable to use ApplyMap properly</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-use-ApplyMap-properly/m-p/87550#M602047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are trying to do a connection to pardot using Rest and have the data. We would like to remove duplicates from a many to one relationship and turn it into a 1 to 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); 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;list_email_id&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;email_id&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1234&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1234&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1235&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1236&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would become:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); 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;list_email_id&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;email_id&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1234&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1235&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1236&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am wondering whether it is because it is resident - twice?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[map_emails]:&lt;/P&gt;&lt;P&gt;mapping load distinct [list_email_id],&lt;/P&gt;&lt;P&gt;[email_id]&lt;/P&gt;&lt;P&gt;Resident RestConnectorMasterTable WHERE [list_email_id] &amp;lt;&amp;gt; null();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[map_emails_contents]: // this was to check the mapping was done correctly&lt;/P&gt;&lt;P&gt;load distinct [list_email_id] as [list_email_id_temp],&lt;/P&gt;&lt;P&gt;[email_id] as [email_id_temp]&lt;/P&gt;&lt;P&gt;Resident RestConnectorMasterTable WHERE [list_email_id] &amp;lt;&amp;gt; null();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[UniqueEmailTable]:&lt;/P&gt;&lt;P&gt;LOAD Distinct&lt;/P&gt;&lt;P&gt;[list_email_id] as ListEmailId_TEMP,&lt;/P&gt;&lt;P&gt;ApplyMap('[map_emails]',[list_email_id], null()) as EmailId_TEMP&lt;/P&gt;&lt;P&gt;RESIDENT RestConnectorMasterTable Where [list_email_id] &amp;lt;&amp;gt; null();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead all it does is show this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); 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;ListemailId_TEMP&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;EmailId_TEMP&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;784917751&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So presumably it couldn't find it, but clearly there is loads and mapping load picks the first one it finds i believe?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2018 10:31:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-use-ApplyMap-properly/m-p/87550#M602047</guid>
      <dc:creator>james_hanify</dc:creator>
      <dc:date>2018-09-19T10:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to use ApplyMap properly</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-use-ApplyMap-properly/m-p/87551#M602048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seemingly this fixed it, i can't have square brackets around the table name? I don't even know what the brackets do other than allows spaces I presume?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;map_emails:&lt;/P&gt;&lt;P&gt;mapping load distinct [list_email_id],&lt;/P&gt;&lt;P&gt;[email_id]&lt;/P&gt;&lt;P&gt;Resident RestConnectorMasterTable WHERE [list_email_id] &amp;lt;&amp;gt; null() and [email_id] &amp;lt;&amp;gt; null();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[UniqueEmailTable]:&lt;/P&gt;&lt;P&gt;LOAD Distinct&lt;/P&gt;&lt;P&gt;[list_email_id] as list_email_id_TEMP,&lt;/P&gt;&lt;P&gt;ApplyMap('map_emails',[list_email_id], null()) as email_id_TEMP&lt;/P&gt;&lt;P&gt;RESIDENT RestConnectorMasterTable Where [list_email_id] &amp;lt;&amp;gt; null();&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2018 10:56:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-use-ApplyMap-properly/m-p/87551#M602048</guid>
      <dc:creator>james_hanify</dc:creator>
      <dc:date>2018-09-19T10:56:31Z</dc:date>
    </item>
  </channel>
</rss>

