<?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 Connecting 2 tables using a mapping table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Connecting-2-tables-using-a-mapping-table/m-p/188286#M51607</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;3 tables: table A, B and C.&lt;/P&gt;&lt;P&gt;In table A old accounts, table B the translation from old to new accounts, table C new accounts.&lt;/P&gt;&lt;P&gt;Table A: Account, Amount, Year, Period (data for years 2008, 2009, 2010)&lt;/P&gt;&lt;P&gt;Table B: Old Account, New Account&lt;/P&gt;&lt;P&gt;Table C: New Account, Amount, Year, Period (data for year 2011, 2012, etc.)&lt;/P&gt;&lt;P&gt;Overview&lt;/P&gt;&lt;P&gt;New Account 1, Amount, Year, Period&lt;/P&gt;&lt;P&gt;New Account 2, Amount, Year, Period&lt;/P&gt;&lt;P&gt;New Account 1, Amount, Year, Period&lt;/P&gt;&lt;P&gt;How do I setup the report/tables that they only reflect the new accounts (where some really are new accounts and some are translations of old accounts).&lt;/P&gt;&lt;P&gt;Any help is appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Mar 2010 09:00:21 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-03-22T09:00:21Z</dc:date>
    <item>
      <title>Connecting 2 tables using a mapping table</title>
      <link>https://community.qlik.com/t5/QlikView/Connecting-2-tables-using-a-mapping-table/m-p/188286#M51607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;3 tables: table A, B and C.&lt;/P&gt;&lt;P&gt;In table A old accounts, table B the translation from old to new accounts, table C new accounts.&lt;/P&gt;&lt;P&gt;Table A: Account, Amount, Year, Period (data for years 2008, 2009, 2010)&lt;/P&gt;&lt;P&gt;Table B: Old Account, New Account&lt;/P&gt;&lt;P&gt;Table C: New Account, Amount, Year, Period (data for year 2011, 2012, etc.)&lt;/P&gt;&lt;P&gt;Overview&lt;/P&gt;&lt;P&gt;New Account 1, Amount, Year, Period&lt;/P&gt;&lt;P&gt;New Account 2, Amount, Year, Period&lt;/P&gt;&lt;P&gt;New Account 1, Amount, Year, Period&lt;/P&gt;&lt;P&gt;How do I setup the report/tables that they only reflect the new accounts (where some really are new accounts and some are translations of old accounts).&lt;/P&gt;&lt;P&gt;Any help is appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Mar 2010 09:00:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Connecting-2-tables-using-a-mapping-table/m-p/188286#M51607</guid>
      <dc:creator />
      <dc:date>2010-03-22T09:00:21Z</dc:date>
    </item>
    <item>
      <title>Connecting 2 tables using a mapping table</title>
      <link>https://community.qlik.com/t5/QlikView/Connecting-2-tables-using-a-mapping-table/m-p/188287#M51608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I understand that you can load old accounts values into new ones, so you are going to report on 2008, 2009, 2011, etc..&lt;/P&gt;&lt;P&gt;Then, load Table B something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;AccountsOldNewMap:MAPPING LOAD OldAccount, NewAccount FROM Source;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;Then, load Table C with something like &lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Table C:LOAD ApplyMap('AccountsOldNewMap', OldAccount) AS NewAccount, Amount, Year, Period FROM Table A&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;mapping old accounts into new accounts and getting the results you are looking for. Hope this is what you are expecting. &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Mar 2010 09:45:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Connecting-2-tables-using-a-mapping-table/m-p/188287#M51608</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-03-22T09:45:12Z</dc:date>
    </item>
    <item>
      <title>Connecting 2 tables using a mapping table</title>
      <link>https://community.qlik.com/t5/QlikView/Connecting-2-tables-using-a-mapping-table/m-p/188288#M51609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much for your help.&lt;/P&gt;&lt;P&gt;This is the statement now in Table B:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;AccountsOldNewMap:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;MAPPING&lt;/B&gt; &lt;B&gt;LOAD&lt;/B&gt; mid(Mfgvalue,6,6) &lt;B&gt;AS&lt;/B&gt; OldAccount, mid([Oracle value],8,7) &lt;B&gt;AS&lt;/B&gt; NewAccount&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;FROM&lt;/B&gt; &lt;W&gt; (ansi, txt, delimiter is ',', embedded labels, msq)&lt;/W&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the statement now in Table C:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P style="font-style: italic"&gt;NewMap:&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;I&gt;&lt;/I&gt;&lt;B&gt;LOAD&lt;/B&gt; ApplyMap('AccountsOldNewMap', OldAccount) &lt;B&gt;AS&lt;/B&gt; NewAccount&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;FROM&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;W&gt; (qvd)&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;This is the error message:&lt;/P&gt;&lt;P&gt;Field not found - &amp;lt;OldAccount&amp;gt;&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/W&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Mar 2010 13:53:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Connecting-2-tables-using-a-mapping-table/m-p/188288#M51609</guid>
      <dc:creator />
      <dc:date>2010-03-22T13:53:34Z</dc:date>
    </item>
    <item>
      <title>Connecting 2 tables using a mapping table</title>
      <link>https://community.qlik.com/t5/QlikView/Connecting-2-tables-using-a-mapping-table/m-p/188289#M51610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Following your script above, you are using&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;mid(Mfgvalue,6,6)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;as the old account number. In BS_Details.qvd file you have to have a old account number you want to change for its correspondent in the Map table. That is the value you have to use as paramenter in ApplyMap. Does that Mfgvalue exist in that BS_Details.qvd file?&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Mar 2010 15:07:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Connecting-2-tables-using-a-mapping-table/m-p/188289#M51610</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-03-22T15:07:19Z</dc:date>
    </item>
    <item>
      <title>Connecting 2 tables using a mapping table</title>
      <link>https://community.qlik.com/t5/QlikView/Connecting-2-tables-using-a-mapping-table/m-p/188290#M51611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It does now.&lt;/P&gt;&lt;P&gt;However I now get some of the old accounts (6 positions) and some of the new accounts (7 positions).&lt;/P&gt;&lt;P&gt;Have looked everywhere, don't have a clue.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Mar 2010 16:15:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Connecting-2-tables-using-a-mapping-table/m-p/188290#M51611</guid>
      <dc:creator />
      <dc:date>2010-03-22T16:15:05Z</dc:date>
    </item>
    <item>
      <title>Connecting 2 tables using a mapping table</title>
      <link>https://community.qlik.com/t5/QlikView/Connecting-2-tables-using-a-mapping-table/m-p/188291#M51612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;ApplyMap uses the table returning one value depending on the expression passed on to the map. If there are no matches, you can even create a default map which will match any of the values you don't want to work with (as they don't have correspondence in the mapping table) and you may use this to load a third table clean of any records but those who actually exists in the mapping table, which are supposed to be in your reports (as they are the new accounts). Changing the code for&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;ApplyMap('AccountsOldNewMap', OldAccount, 'Whatever String Otherwise') AS NewAccount, OldAccount as OriginalAccount,&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;you can easily group all "Whatever String Otherwise" meaning those old accounts not existing in your mapping table. &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Now you can forget them (set analysis, conditionals), or check your map table should each and any of your old accounts have a new name (and having that new name is always different).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Mar 2010 16:56:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Connecting-2-tables-using-a-mapping-table/m-p/188291#M51612</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-03-22T16:56:22Z</dc:date>
    </item>
    <item>
      <title>Connecting 2 tables using a mapping table</title>
      <link>https://community.qlik.com/t5/QlikView/Connecting-2-tables-using-a-mapping-table/m-p/188292#M51613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'll check this during the work.&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Mar 2010 09:06:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Connecting-2-tables-using-a-mapping-table/m-p/188292#M51613</guid>
      <dc:creator />
      <dc:date>2010-03-23T09:06:37Z</dc:date>
    </item>
  </channel>
</rss>

