<?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: Transforming data with Mapping in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Transforming-data-with-Mapping/m-p/962449#M977242</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's OK, all the answers on here helped me figure it out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My load map now looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MarksMap:&lt;/P&gt;&lt;P&gt;MAPPING LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp; Mark, Description&lt;/P&gt;&lt;P&gt;&amp;nbsp; P, Present,&lt;/P&gt;&lt;P&gt;&amp;nbsp; A, Authorised,&lt;/P&gt;&lt;P&gt;&amp;nbsp; U, Unauthorised,&lt;/P&gt;&lt;P&gt;&amp;nbsp; O, Offsite&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and my preload:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;ApplyMap('MarksMap', Mark, null()) as Description;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to everyone for their help; this community is fantastic!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Aug 2015 14:08:03 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-08-20T14:08:03Z</dc:date>
    <item>
      <title>Transforming data with Mapping</title>
      <link>https://community.qlik.com/t5/QlikView/Transforming-data-with-Mapping/m-p/962444#M977237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table of data like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Item&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Count(Item)&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;O&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;U&lt;/TD&gt;&lt;TD&gt;200&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;300&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;P&lt;/TD&gt;&lt;TD&gt;400&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to replace P with Present in the load script. So I have done:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MarksMap:&lt;/P&gt;&lt;P&gt;MAPPING LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp; P, Present&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at the top of the load script and then:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;ApplyMap('MarksMap', Mark) Inline;&lt;/P&gt;&lt;P&gt;SQL SELECT...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in my preload script before I actually load the data from the database. But the value stays at 'P' in the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 13:51:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Transforming-data-with-Mapping/m-p/962444#M977237</guid>
      <dc:creator />
      <dc:date>2015-08-20T13:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: Transforming data with Mapping</title>
      <link>https://community.qlik.com/t5/QlikView/Transforming-data-with-Mapping/m-p/962445#M977238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this (Change in bold)&lt;/P&gt;&lt;P&gt;BUT check: your table says that field is Item, so in applymap Item instead of Mark should be used!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MarksMap:&lt;/P&gt;&lt;P&gt;MAPPING LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp; P, Present&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at the top of the load script and then:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ApplyMap('MarksMap', Mark) as Present;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 13:55:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Transforming-data-with-Mapping/m-p/962445#M977238</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-20T13:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: Transforming data with Mapping</title>
      <link>https://community.qlik.com/t5/QlikView/Transforming-data-with-Mapping/m-p/962446#M977239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried assign a column name to the fields in your table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;MarksMap:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;MAPPING LOAD * INLINE [&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Heading, Description&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; P, Present&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 13:55:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Transforming-data-with-Mapping/m-p/962446#M977239</guid>
      <dc:creator />
      <dc:date>2015-08-20T13:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: Transforming data with Mapping</title>
      <link>https://community.qlik.com/t5/QlikView/Transforming-data-with-Mapping/m-p/962447#M977240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here you go&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;MarksMap:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;MAPPING LOAD * INLINE [&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp; Col1, Col2&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; P, Present&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;at the top of the load script and then:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD *,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ApplyMap('MarksMap', Mark) as Present&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SQL SELECT...&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Edit:&amp;nbsp; The first row of your inline table will always be the column names separated by a comma.&amp;nbsp; The rest of the rows will be the data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 13:57:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Transforming-data-with-Mapping/m-p/962447#M977240</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-20T13:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: Transforming data with Mapping</title>
      <link>https://community.qlik.com/t5/QlikView/Transforming-data-with-Mapping/m-p/962448#M977241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Iam not really sure if this helps. your code is a little confusing.&lt;/P&gt;&lt;P&gt;can you post an example qvw?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 14:04:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Transforming-data-with-Mapping/m-p/962448#M977241</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-20T14:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: Transforming data with Mapping</title>
      <link>https://community.qlik.com/t5/QlikView/Transforming-data-with-Mapping/m-p/962449#M977242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's OK, all the answers on here helped me figure it out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My load map now looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MarksMap:&lt;/P&gt;&lt;P&gt;MAPPING LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp; Mark, Description&lt;/P&gt;&lt;P&gt;&amp;nbsp; P, Present,&lt;/P&gt;&lt;P&gt;&amp;nbsp; A, Authorised,&lt;/P&gt;&lt;P&gt;&amp;nbsp; U, Unauthorised,&lt;/P&gt;&lt;P&gt;&amp;nbsp; O, Offsite&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and my preload:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;ApplyMap('MarksMap', Mark, null()) as Description;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to everyone for their help; this community is fantastic!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 14:08:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Transforming-data-with-Mapping/m-p/962449#M977242</guid>
      <dc:creator />
      <dc:date>2015-08-20T14:08:03Z</dc:date>
    </item>
  </channel>
</rss>

