<?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 Complete empty fields with data from another table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Complete-empty-fields-with-data-from-another-table/m-p/975348#M644182</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody, I'm newby in Qlik and I'm facing this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a text file from a barcode scanner, it gives me one row for each item lecture, but for some items it gives me the EAN (some type of item number) and for some other it gives me Internal item ID's.&lt;/P&gt;&lt;P&gt;Something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;EAN1&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;ItemID1&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;EAN2&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;ItemID2&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;ItemID3&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;ItemID4&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;...&lt;/P&gt;&lt;P&gt;I'm able to distinguish both type of lines thats no problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to cross it with another table in wich I have Internal ID's form all the articles.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to cross the text file with my database where I have a table with all EANs and Internal ID's to get one single table with the Internal article ID's from the scanner lecture.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ItemID1&lt;/P&gt;&lt;P&gt;ItemID2&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you help me with the script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Nov 2015 14:58:13 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-11-24T14:58:13Z</dc:date>
    <item>
      <title>Complete empty fields with data from another table</title>
      <link>https://community.qlik.com/t5/QlikView/Complete-empty-fields-with-data-from-another-table/m-p/975348#M644182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody, I'm newby in Qlik and I'm facing this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a text file from a barcode scanner, it gives me one row for each item lecture, but for some items it gives me the EAN (some type of item number) and for some other it gives me Internal item ID's.&lt;/P&gt;&lt;P&gt;Something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;EAN1&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;ItemID1&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;EAN2&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;ItemID2&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;ItemID3&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;ItemID4&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;...&lt;/P&gt;&lt;P&gt;I'm able to distinguish both type of lines thats no problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to cross it with another table in wich I have Internal ID's form all the articles.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to cross the text file with my database where I have a table with all EANs and Internal ID's to get one single table with the Internal article ID's from the scanner lecture.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ItemID1&lt;/P&gt;&lt;P&gt;ItemID2&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you help me with the script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 14:58:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complete-empty-fields-with-data-from-another-table/m-p/975348#M644182</guid>
      <dc:creator />
      <dc:date>2015-11-24T14:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Complete empty fields with data from another table</title>
      <link>https://community.qlik.com/t5/QlikView/Complete-empty-fields-with-data-from-another-table/m-p/975349#M644183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you try apply map?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-12527"&gt;Apply Map Functions - Sources&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 16:27:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complete-empty-fields-with-data-from-another-table/m-p/975349#M644183</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-24T16:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: Complete empty fields with data from another table</title>
      <link>https://community.qlik.com/t5/QlikView/Complete-empty-fields-with-data-from-another-table/m-p/975350#M644184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cesar,&lt;/P&gt;&lt;P&gt;The ApplyMap() function will help you here.&lt;/P&gt;&lt;P&gt;First you need to create a mapping table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14483847909233140" jivemacro_uid="_14483847909233140"&gt;
&lt;P&gt;MapEANtoInternalID&lt;/P&gt;
&lt;P&gt;Mapping Load EAN, InternalID From yourtextfile.csv&lt;/P&gt;
&lt;P&gt;--In your Load statement&lt;/P&gt;
&lt;P&gt;//Load *,&lt;/P&gt;
&lt;P&gt;IF(IDColumn=EAN,ApplyMap(MapEANtoInternalID,IDColumn,Null()),IDColumn)&lt;/P&gt;
&lt;P&gt;From yoursource.QVD;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That will ensure that where you identify your EAN code, you will map the result to your text file, otherwise, you just use the ID that's already in the source data.&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;George&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 17:07:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complete-empty-fields-with-data-from-another-table/m-p/975350#M644184</guid>
      <dc:creator>gsbeaton</dc:creator>
      <dc:date>2015-11-24T17:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: Complete empty fields with data from another table</title>
      <link>https://community.qlik.com/t5/QlikView/Complete-empty-fields-with-data-from-another-table/m-p/975351#M644186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Mauri, there's a lot to study! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Nov 2015 16:29:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complete-empty-fields-with-data-from-another-table/m-p/975351#M644186</guid>
      <dc:creator />
      <dc:date>2015-11-26T16:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: Complete empty fields with data from another table</title>
      <link>https://community.qlik.com/t5/QlikView/Complete-empty-fields-with-data-from-another-table/m-p/975352#M644187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much George, the result is perfect, the function is really powerfull. I finally have ended, making a left join, with just one table with the exact data I needed, instead of three.&lt;/P&gt;&lt;P&gt;I'm going to put two notes bellow that made some difficult to me:&lt;/P&gt;&lt;P&gt;I did:&lt;/P&gt;&lt;P&gt;MapEANtoInternalID:&lt;/P&gt;&lt;P&gt;Mapping LOAD&lt;/P&gt;&lt;P&gt;EAN,&lt;/P&gt;&lt;P&gt;InternalID;&lt;/P&gt;&lt;P&gt;OLEDB connect [instructions...]&lt;/P&gt;&lt;P&gt;SQL SELECT&lt;/P&gt;&lt;P&gt;EAN,&lt;/P&gt;&lt;P&gt;InternalID&lt;/P&gt;&lt;P&gt;From tableofmydb;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I wasn't sure where to put the connection... there worked fine.&lt;/LI&gt;&lt;LI&gt;It's critical to put the column you are looking for in the first place (obvius &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/blush.png" /&gt;)&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Nov 2015 16:41:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complete-empty-fields-with-data-from-another-table/m-p/975352#M644187</guid>
      <dc:creator />
      <dc:date>2015-11-26T16:41:04Z</dc:date>
    </item>
  </channel>
</rss>

