<?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: Populating a multi-column table with another table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Populating-a-multi-column-table-with-another-table/m-p/898537#M1012259</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ApplyMap might be a suitable approach.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do a MAPPING LOAD of the task date table, then when loading the Main table, so multiple ApplyMaps, using the previously loaded date table mapping.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Apr 2015 08:27:25 GMT</pubDate>
    <dc:creator>marcus_malinow</dc:creator>
    <dc:date>2015-04-24T08:27:25Z</dc:date>
    <item>
      <title>Populating a multi-column table with another table</title>
      <link>https://community.qlik.com/t5/QlikView/Populating-a-multi-column-table-with-another-table/m-p/898535#M1012257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Morning guys&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got a fairly simple problem, but i cannot get my head around how to resolve this !:&lt;/P&gt;&lt;P&gt;I have 2 tables, 'Main' and 'Task Date'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On my 'Main' table I have a multi column Task Number:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="143.85714280605316" style="border: 1px solid rgb(0, 0, 0); width: 501.857142806053px; height: 107.857142806053px;"&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;No.&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;Task A Number&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;Task B Number&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;Task C Number&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;15&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;16&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;20&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;21&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;22&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;25&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;28&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;29&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;30&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&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;On my 'Task Date' table I have 2 columns.&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="143.85714280605316" style="border: 1px solid rgb(0, 0, 0); width: 177.857142806053px; height: 133.857142806053px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Task Number&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Task Date&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;10&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3- Mar&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;15&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4 - Mar&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;16&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;7 - Mar&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;17&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;22 - April&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;18&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;25 - April&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;I want to populate the 'Main' table with information from the 'Task Date' table, the finished table should look like:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="145.85714280605316" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="border: 1px solid #000000; width: 510.857142806053px; height: 147.857142806053px;" width="509.85714280605316"&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;No.&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;Task A Date&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;Task B Date&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;Task C Date&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;3- Mar&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;SPAN style="font-size: 13.3333330154419px;"&gt;3- Mar&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;31- Mar&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;5- Mar&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;22 - April&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;12 - April&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;14 - April&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;22 - April&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;22 - April&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;22 - April&lt;/SPAN&gt;&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;&lt;/P&gt;&lt;P&gt;What is the easiest way to this without thousands of loops?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 23:55:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Populating-a-multi-column-table-with-another-table/m-p/898535#M1012257</guid>
      <dc:creator />
      <dc:date>2015-04-23T23:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: Populating a multi-column table with another table</title>
      <link>https://community.qlik.com/t5/QlikView/Populating-a-multi-column-table-with-another-table/m-p/898536#M1012258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can either first load the Task Date table, and then use the LookUp function in a preceding load to the Main load where you create the Task A Date... fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you can load Task Date as a mapping table, and then use ApplyMap in the Main load &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2015 08:25:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Populating-a-multi-column-table-with-another-table/m-p/898536#M1012258</guid>
      <dc:creator>Ralf-Narfeldt</dc:creator>
      <dc:date>2015-04-24T08:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: Populating a multi-column table with another table</title>
      <link>https://community.qlik.com/t5/QlikView/Populating-a-multi-column-table-with-another-table/m-p/898537#M1012259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ApplyMap might be a suitable approach.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do a MAPPING LOAD of the task date table, then when loading the Main table, so multiple ApplyMaps, using the previously loaded date table mapping.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2015 08:27:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Populating-a-multi-column-table-with-another-table/m-p/898537#M1012259</guid>
      <dc:creator>marcus_malinow</dc:creator>
      <dc:date>2015-04-24T08:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: Populating a multi-column table with another table</title>
      <link>https://community.qlik.com/t5/QlikView/Populating-a-multi-column-table-with-another-table/m-p/898538#M1012260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Marcus&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I took your advice, and did the below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TaskNum_map:&lt;/P&gt;&lt;P&gt;Mapping load&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;resident TaskNum_date;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;temp_final:&lt;/P&gt;&lt;P&gt;NoConcatenate load&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;ApplyMap('TaskNum_map',[Task A Number]) as [&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Task A Number]&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;ApplyMap('TaskNum_map',[&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Task B &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Number&lt;/SPAN&gt;&lt;/SPAN&gt;])&amp;nbsp;&amp;nbsp; as [&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Task B Number&lt;/SPAN&gt;],&lt;/P&gt;&lt;P&gt;ApplyMap('TaskNum_map',[&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Task C &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Number&lt;/SPAN&gt;&lt;/SPAN&gt;])&amp;nbsp; as [&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Task C Number]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which seems to work magically, but im curious as how ApplyMap works in the background, how does the function know which column to search and which column to replace?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ie, In "&lt;SPAN style="font-size: 13.3333330154419px;"&gt;ApplyMap('TaskNum_map',[Task A Number])" &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;how does it know to search through column "&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Task No" and replace with "Task Date"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What would happen if both column data type were the same - and if one row of data appears on both the columns?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="143.85714280605316" style="border: 1px solid #000000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;THEAD style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TH class="header headerSortUp" style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center; color: #ffffff; background-color: #6690bc; background-position: no-repeat;" valign="middle"&gt;Task Number&lt;/TH&gt;&lt;TH class="header" style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center; color: #ffffff; background-color: #6690bc; background-position: no-repeat;" valign="middle"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Task Date&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;18&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;200&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;17&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;300&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;200&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;400&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;15&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;10&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;600&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 03:09:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Populating-a-multi-column-table-with-another-table/m-p/898538#M1012260</guid>
      <dc:creator />
      <dc:date>2015-04-28T03:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: Populating a multi-column table with another table</title>
      <link>https://community.qlik.com/t5/QlikView/Populating-a-multi-column-table-with-another-table/m-p/898539#M1012261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Charlie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ApplyMap takes as its inputs a mapping table, and a lookup value. The mapping table should be defined as a two column table with a lookup column as it's first column, and a return value as it's second.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, when you use the ApplyMap, you're essentially looking up your lookup column, and returning the return value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It really doesn't matter what data types you use - in fact QlikView is fairly type agnostic anyway. If you have multiple values of your lookup value though you should be aware that ApplyMap will return the first return value that it finds. In this way it differs from something like a Join.&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, 28 Apr 2015 07:32:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Populating-a-multi-column-table-with-another-table/m-p/898539#M1012261</guid>
      <dc:creator>marcus_malinow</dc:creator>
      <dc:date>2015-04-28T07:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: Populating a multi-column table with another table</title>
      <link>https://community.qlik.com/t5/QlikView/Populating-a-multi-column-table-with-another-table/m-p/898540#M1012262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ahh, thanks mate I see, so the first column in Map is always the look-up column, second the value to replace. Perfect mate, clear as day&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 20:36:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Populating-a-multi-column-table-with-another-table/m-p/898540#M1012262</guid>
      <dc:creator />
      <dc:date>2015-04-28T20:36:05Z</dc:date>
    </item>
  </channel>
</rss>

