<?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 What is a mapping table? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/What-is-a-mapping-table/m-p/336390#M124089</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Balraj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A mapping table is used for what is called a 'star' model (see bellow an example). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="star_model.png" class="jive-image-thumbnail jive-image" src="https://community.qlik.com/legacyfs/online/11887_star_model.png" style="border-style: initial; border-color: initial;" width="450" /&gt;&lt;/P&gt;&lt;P&gt;This kind of mapping table is used to avoid synchronization issues. The Key table contain all concatanations that is used to link the tables. then, each table is linked to the others via the mapping table.&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Mar 2012 18:00:01 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-03-05T18:00:01Z</dc:date>
    <item>
      <title>What is a mapping table?</title>
      <link>https://community.qlik.com/t5/QlikView/What-is-a-mapping-table/m-p/336388#M124087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Could someone explain what a mapping table is with an example, is it link table ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2012 16:29:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-is-a-mapping-table/m-p/336388#M124087</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-05T16:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: What is a mapping table?</title>
      <link>https://community.qlik.com/t5/QlikView/What-is-a-mapping-table/m-p/336389#M124088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Balraj.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's sort of a join and behaves like a function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MyMap1:&lt;/P&gt;&lt;P&gt;mapping load idValue, textValue;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tab1:&lt;/P&gt;&lt;P&gt;load field1, field2, applymap('MyMap1', field3, 'value if map does not find field3 in map table');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field3 is sent as a parameter to the applymap call.&lt;/P&gt;&lt;P&gt;field3 is checked against MyMap1 and the corresponding textValue is returned. If no match it gets the third parameter of the applymap call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the QV Reference manual for a complete manual of howto use maps. ﻿﻿﻿&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/21613"&gt;Magnus Åvitsland&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.framsteg.com" target="_blank"&gt;Framsteg Business Intelligence Corp.&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2012 16:47:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-is-a-mapping-table/m-p/336389#M124088</guid>
      <dc:creator>magavi_framsteg</dc:creator>
      <dc:date>2012-03-05T16:47:01Z</dc:date>
    </item>
    <item>
      <title>What is a mapping table?</title>
      <link>https://community.qlik.com/t5/QlikView/What-is-a-mapping-table/m-p/336390#M124089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Balraj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A mapping table is used for what is called a 'star' model (see bellow an example). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="star_model.png" class="jive-image-thumbnail jive-image" src="https://community.qlik.com/legacyfs/online/11887_star_model.png" style="border-style: initial; border-color: initial;" width="450" /&gt;&lt;/P&gt;&lt;P&gt;This kind of mapping table is used to avoid synchronization issues. The Key table contain all concatanations that is used to link the tables. then, each table is linked to the others via the mapping table.&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2012 18:00:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-is-a-mapping-table/m-p/336390#M124089</guid>
      <dc:creator />
      <dc:date>2012-03-05T18:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: What is a mapping table?</title>
      <link>https://community.qlik.com/t5/QlikView/What-is-a-mapping-table/m-p/336391#M124090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Balraj&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's look at a typical example. Let's say that we have a table with a product code and product name, and we have a sales table that contains the product code. And we want to bring the product code into the sales fact table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;//Get the product code/names from some source. The field names are unimportant, but there should &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Products:&lt;/P&gt;&lt;P&gt;LOAD * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Code, Name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A1, Widget&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B2, Dingbat&lt;/P&gt;&lt;P&gt;]; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;//Create a mapping table for the product code/names. &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;EM&gt;//The field names are unimportant, but there should always be two fields.&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;MapProducts:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Mapping &lt;/STRONG&gt;LOAD * Resident Products;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;//Load the sales data. Applymap brings the product name in from the mapping table, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;//and uses 'UNKOWN' if the code is not found&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Sales:&lt;/P&gt;&lt;P&gt;LOAD TransID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ProductCode,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;ApplyMap&lt;/STRONG&gt;('MapProducts', ProductCode, 'UNKNOWN') As ProductName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Quantity,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;FROM SomeSalesSource;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;//Now we don't need the Products table any more &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;//(The mapping table is automatically dropped)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;DROP Table Products;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This has the advantage of reducing the number of tables and associations in your model which may speed up front end performance, reduce the model size and ApplyMap is much, much faster than performing joins, especially on large data sets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2012 19:11:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-is-a-mapping-table/m-p/336391#M124090</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-03-05T19:11:40Z</dc:date>
    </item>
    <item>
      <title>What is a mapping table?</title>
      <link>https://community.qlik.com/t5/QlikView/What-is-a-mapping-table/m-p/336392#M124091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thank you guys...for clearing my doubts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~B&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2012 21:17:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-is-a-mapping-table/m-p/336392#M124091</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-05T21:17:27Z</dc:date>
    </item>
  </channel>
</rss>

