<?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 MAPPING LOAD and MAP USING commands in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/MAPPING-LOAD-and-MAP-USING-commands/m-p/149100#M27311</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I haven't tested this so it's a bit of a shot in the dark but I suspect that the entire SQL statement is evaluated and a dataset returned from the DB before any QlikView processing takes place. When the data enters QlikView the field is named Gearbox instead and QlikView has now way of knowing that you want to apply the mapping on the field Gearbox.&lt;/P&gt;&lt;P&gt;Try changing the MAP USING to point to Gearbox instead:&lt;/P&gt;&lt;P&gt;MAP 'Gearbox' USING map1;&lt;/P&gt;&lt;P&gt;Hope this works&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Jul 2009 09:03:03 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-07-13T09:03:03Z</dc:date>
    <item>
      <title>MAPPING LOAD and MAP USING commands</title>
      <link>https://community.qlik.com/t5/QlikView/MAPPING-LOAD-and-MAP-USING-commands/m-p/149099#M27310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm confused over the MAPPING LOAD and MAP USING commands. The following piece of code works fine:&lt;/P&gt;&lt;P&gt;--------------------------------------&lt;/P&gt;&lt;P&gt;map1:&lt;BR /&gt;MAPPING LOAD * INLINE [x, y&lt;BR /&gt;A, Automatic&lt;BR /&gt;M, Manual&lt;BR /&gt;V, Variomatic];&lt;/P&gt;&lt;P&gt;MAP 'transmission_type_decoded' USING map1;&lt;/P&gt;&lt;P&gt;SQL SELECT "transmission_type_decoded" FROM "VPS_MD".dbo."cbr_valda_a";&lt;/P&gt;&lt;P&gt;-------------------------------------&lt;/P&gt;&lt;P&gt;Values for ""transmission_type_decoded" are tranlslated from A to Automatic etc.&lt;/P&gt;&lt;P&gt;But when I add the "AS" clause to the SELECT statement, the translation fails:&lt;/P&gt;&lt;P&gt;SQL SELECT "transmission_type_decoded" &lt;STRONG&gt;AS "Gearbox"&lt;/STRONG&gt; FROM "VPS_MD".dbo."cbr_valda_a";&lt;/P&gt;&lt;P&gt;The value "M" returns just the letter M!&lt;/P&gt;&lt;P&gt;I really hope someone can give me a hint!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2009 05:28:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MAPPING-LOAD-and-MAP-USING-commands/m-p/149099#M27310</guid>
      <dc:creator />
      <dc:date>2009-07-13T05:28:48Z</dc:date>
    </item>
    <item>
      <title>MAPPING LOAD and MAP USING commands</title>
      <link>https://community.qlik.com/t5/QlikView/MAPPING-LOAD-and-MAP-USING-commands/m-p/149100#M27311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I haven't tested this so it's a bit of a shot in the dark but I suspect that the entire SQL statement is evaluated and a dataset returned from the DB before any QlikView processing takes place. When the data enters QlikView the field is named Gearbox instead and QlikView has now way of knowing that you want to apply the mapping on the field Gearbox.&lt;/P&gt;&lt;P&gt;Try changing the MAP USING to point to Gearbox instead:&lt;/P&gt;&lt;P&gt;MAP 'Gearbox' USING map1;&lt;/P&gt;&lt;P&gt;Hope this works&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2009 09:03:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MAPPING-LOAD-and-MAP-USING-commands/m-p/149100#M27311</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-07-13T09:03:03Z</dc:date>
    </item>
    <item>
      <title>MAPPING LOAD and MAP USING commands</title>
      <link>https://community.qlik.com/t5/QlikView/MAPPING-LOAD-and-MAP-USING-commands/m-p/149101#M27312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are right! It was a good shoot in the dark...&lt;/P&gt;&lt;P&gt;For me, SQL is something of a "blackbox". &lt;IMG alt="Smile" src="http://community.qlik.com/emoticons/emotion-1.gif" /&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help, jsn!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2009 15:38:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MAPPING-LOAD-and-MAP-USING-commands/m-p/149101#M27312</guid>
      <dc:creator />
      <dc:date>2009-07-13T15:38:09Z</dc:date>
    </item>
  </channel>
</rss>

