<?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 Simple query on Mapping function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Simple-query-on-Mapping-function/m-p/255342#M1205770</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi umang,&lt;/P&gt;&lt;P&gt;u can use the following code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;map1:&lt;/P&gt;&lt;P&gt;mapping LOAD * INLINE [&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="254"&gt;&lt;COL span="2" width="127" /&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" width="127"&gt;Country&lt;/TD&gt;&lt;TD class="xl64" width="127"&gt;Mapped Country&lt;/TD&gt;&lt;/TR&gt;&lt;TR class="even"&gt;&lt;TD class="xl64" height="20"&gt;China&lt;/TD&gt;&lt;TD class="xl64"&gt;China/HK&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20"&gt;Hong Kong&lt;/TD&gt;&lt;TD class="xl64"&gt;China/HK&lt;/TD&gt;&lt;/TR&gt;&lt;TR class="even"&gt;&lt;TD class="xl64" height="20"&gt;Britain&lt;/TD&gt;&lt;TD class="xl64"&gt;UK&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20"&gt;United Kingdom&lt;/TD&gt;&lt;TD class="xl64"&gt;UK&lt;/TD&gt;&lt;/TR&gt;&lt;TR class="even"&gt;&lt;TD class="xl64" height="20"&gt;Ireland&lt;/TD&gt;&lt;TD class="xl64"&gt;UK&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20"&gt;Isle of Man&lt;/TD&gt;&lt;TD class="xl64"&gt;UK&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;];&lt;/P&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;map Country using map1;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;LOAD Country,&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;......&lt;/DIV&gt;&lt;DIV&gt;FROM&lt;/DIV&gt;&lt;DIV&gt;Country1.csv;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;thanks&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 May 2010 13:25:38 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-05-05T13:25:38Z</dc:date>
    <item>
      <title>Simple query on Mapping function</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-query-on-Mapping-function/m-p/255341#M1205769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Pardon my ignorence of qlikview but I have a small query which I guess cna be solved using mapping funciton. The only problem is that I don't know how to ...... [:$]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a list of countries whihc are to be mapped to a unique region&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; width: 190pt;" width="254"&gt;&lt;COL span="2" style="width: 95pt;" width="127" /&gt;&lt;TBODY&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl64" height="20" style="height: 15pt; width: 95pt;" width="127"&gt;Country&lt;/TD&gt;&lt;TD class="xl64" style="width: 95pt;" width="127"&gt;Mapped Country&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl64" height="20" style="height: 15pt;"&gt;China&lt;/TD&gt;&lt;TD class="xl64"&gt;China/HK&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl64" height="20" style="height: 15pt;"&gt;Hong Kong&lt;/TD&gt;&lt;TD class="xl64"&gt;China/HK&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl64" height="20" style="height: 15pt;"&gt;Britain&lt;/TD&gt;&lt;TD class="xl64"&gt;UK&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl64" height="20" style="height: 15pt;"&gt;United Kingdom&lt;/TD&gt;&lt;TD class="xl64"&gt;UK&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl64" height="20" style="height: 15pt;"&gt;Ireland&lt;/TD&gt;&lt;TD class="xl64"&gt;UK&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl64" height="20" style="height: 15pt;"&gt;Isle of Man&lt;/TD&gt;&lt;TD class="xl64"&gt;UK&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now how do I need to edit the script so that whenever China is mentioned China/HK appears and if a country which is not mentioned in the table is there than the name as is appears.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 13:19:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-query-on-Mapping-function/m-p/255341#M1205769</guid>
      <dc:creator />
      <dc:date>2010-05-05T13:19:54Z</dc:date>
    </item>
    <item>
      <title>Simple query on Mapping function</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-query-on-Mapping-function/m-p/255342#M1205770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi umang,&lt;/P&gt;&lt;P&gt;u can use the following code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;map1:&lt;/P&gt;&lt;P&gt;mapping LOAD * INLINE [&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="254"&gt;&lt;COL span="2" width="127" /&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" width="127"&gt;Country&lt;/TD&gt;&lt;TD class="xl64" width="127"&gt;Mapped Country&lt;/TD&gt;&lt;/TR&gt;&lt;TR class="even"&gt;&lt;TD class="xl64" height="20"&gt;China&lt;/TD&gt;&lt;TD class="xl64"&gt;China/HK&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20"&gt;Hong Kong&lt;/TD&gt;&lt;TD class="xl64"&gt;China/HK&lt;/TD&gt;&lt;/TR&gt;&lt;TR class="even"&gt;&lt;TD class="xl64" height="20"&gt;Britain&lt;/TD&gt;&lt;TD class="xl64"&gt;UK&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20"&gt;United Kingdom&lt;/TD&gt;&lt;TD class="xl64"&gt;UK&lt;/TD&gt;&lt;/TR&gt;&lt;TR class="even"&gt;&lt;TD class="xl64" height="20"&gt;Ireland&lt;/TD&gt;&lt;TD class="xl64"&gt;UK&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20"&gt;Isle of Man&lt;/TD&gt;&lt;TD class="xl64"&gt;UK&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;];&lt;/P&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;map Country using map1;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;LOAD Country,&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;......&lt;/DIV&gt;&lt;DIV&gt;FROM&lt;/DIV&gt;&lt;DIV&gt;Country1.csv;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;thanks&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 13:25:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-query-on-Mapping-function/m-p/255342#M1205770</guid>
      <dc:creator />
      <dc:date>2010-05-05T13:25:38Z</dc:date>
    </item>
    <item>
      <title>Re. :Simple query on Mapping function</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-query-on-Mapping-function/m-p/255343#M1205771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you send your application or an exemple please ?&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 13:26:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-query-on-Mapping-function/m-p/255343#M1205771</guid>
      <dc:creator>martin59</dc:creator>
      <dc:date>2010-05-05T13:26:23Z</dc:date>
    </item>
    <item>
      <title>Simple query on Mapping function</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-query-on-Mapping-function/m-p/255344#M1205772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One more problem lets assume that Country is already loaded in the script previously under the table 'Details', in such case what do we need to do?&lt;/P&gt;&lt;P&gt;QV SCRIPT:&lt;/P&gt;&lt;P&gt;Details:&lt;BR /&gt;LOAD&lt;BR /&gt; Country,&lt;BR /&gt; Sales&lt;BR /&gt;FROM ABC.xlsx (ooxml, embedded labels, table is Sheet1);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;map1:&lt;BR /&gt;mapping LOAD * INLINE [&lt;BR /&gt;Country Mapped Country&lt;BR /&gt;China China/HK&lt;BR /&gt;Hong Kong China/HK&lt;BR /&gt;Britain UK&lt;BR /&gt;United Kingdom UK&lt;BR /&gt;Ireland UK&lt;BR /&gt;Isle of Man UK ];&lt;BR /&gt;&lt;BR /&gt;&lt;I&gt;&lt;B&gt;// Need syntax as to what is to be written now .........&lt;/B&gt;&lt;/I&gt;&lt;BR /&gt;map Country using map1;&lt;BR /&gt;LOAD Country,&lt;BR /&gt;&lt;BR /&gt;......&lt;BR /&gt;FROM&lt;BR /&gt;Country1.csv;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 13:46:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-query-on-Mapping-function/m-p/255344#M1205772</guid>
      <dc:creator />
      <dc:date>2010-05-05T13:46:33Z</dc:date>
    </item>
    <item>
      <title>Simple query on Mapping function</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-query-on-Mapping-function/m-p/255345#M1205773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi umang,&lt;/P&gt;&lt;P&gt;probably u can then use something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Details:&lt;BR /&gt;LOAD&lt;BR /&gt; Country,&lt;BR /&gt; Sales&lt;BR /&gt;FROM ABC.xlsx (ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;map1:&lt;BR /&gt;mapping LOAD * INLINE [&lt;BR /&gt;Country Mapped Country&lt;BR /&gt;China China/HK&lt;BR /&gt;Hong Kong China/HK&lt;BR /&gt;Britain UK&lt;BR /&gt;United Kingdom UK&lt;BR /&gt;Ireland UK&lt;BR /&gt;Isle of Man UK ];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;newtable:&lt;/P&gt;&lt;P&gt;load Sales,applymap('map1',Country) as resident Details;&lt;/P&gt;&lt;P&gt;drop table Details;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 14:03:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-query-on-Mapping-function/m-p/255345#M1205773</guid>
      <dc:creator />
      <dc:date>2010-05-05T14:03:12Z</dc:date>
    </item>
    <item>
      <title>Simple query on Mapping function</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-query-on-Mapping-function/m-p/255346#M1205774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;tauqueer,&lt;/P&gt;&lt;P&gt;In the way you have suggested do I need to write all the fields of 'Details' again in the 'newtable' ???&lt;/P&gt;&lt;P&gt;Also I have updated a sample QV if you could edit the script in that would be a great help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 14:16:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-query-on-Mapping-function/m-p/255346#M1205774</guid>
      <dc:creator />
      <dc:date>2010-05-05T14:16:05Z</dc:date>
    </item>
    <item>
      <title>Simple query on Mapping function</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-query-on-Mapping-function/m-p/255347#M1205775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi umang,&lt;/P&gt;&lt;P&gt;pls check the attached application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;probably this is what u want&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 14:37:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-query-on-Mapping-function/m-p/255347#M1205775</guid>
      <dc:creator />
      <dc:date>2010-05-05T14:37:22Z</dc:date>
    </item>
    <item>
      <title>Simple query on Mapping function</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-query-on-Mapping-function/m-p/255348#M1205776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks with your help I was able to solve it&lt;/P&gt;&lt;P&gt;the script would look like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;map1:&lt;BR /&gt;mapping LOAD * INLINE [&lt;BR /&gt;Country, MappedCountry&lt;BR /&gt;China, China/HK&lt;BR /&gt;Hong Kong, China/HK&lt;BR /&gt;Britain, UK&lt;BR /&gt;United Kingdom, UK&lt;BR /&gt;Ireland, UK&lt;BR /&gt;Isle of Man, UK ];&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;map Country using map1;&lt;BR /&gt;&lt;BR /&gt;Details:&lt;BR /&gt;LOAD&lt;BR /&gt; Country,&lt;BR /&gt; Sales,&lt;BR /&gt; Cost&lt;BR /&gt;FROM ABC.xlsx (ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 14:46:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-query-on-Mapping-function/m-p/255348#M1205776</guid>
      <dc:creator />
      <dc:date>2010-05-05T14:46:05Z</dc:date>
    </item>
  </channel>
</rss>

