<?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 renaming values in load script with multiple mappings in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/renaming-values-in-load-script-with-multiple-mappings/m-p/1044805#M351286</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;So currently i have this small script which pulls data from an old qvd and also a new qvd which has a grouping field.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;However i want to be able to rename some of the fields as they use slightly different variations in their spelling.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;------------------------------------&lt;SPAN style="font-size: 13.3333px;"&gt;---------------------------------------------------------------&lt;/SPAN&gt;&lt;/SPAN&gt;---------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;bnewstructure:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Mapping LOAD&lt;/P&gt;&lt;P&gt;B_DESC AS [bname],&lt;/P&gt;&lt;P&gt;B_GROUP AS [bgroup]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;bnewstructure:&lt;/P&gt;&lt;P&gt;(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Details:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;ApplyMap('bnewstructure:',[B name],'Missing') as [Mapped group],&lt;/P&gt;&lt;P&gt;*;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;boldstructure.B_DESC as [B name]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[$(vDetailsQVDDirectory)\boldstructure.qvd]&lt;/P&gt;&lt;P&gt;(qvd);&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;------------------------------------&lt;SPAN style="font-size: 13.3333px;"&gt;---------------------------------------------------------------&lt;/SPAN&gt;&lt;/SPAN&gt;---------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;STRONG&gt;This returns for example:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Mapped group&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Grouped companies&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Grouped cos&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;So i thought about adding another mapping field to address this but it didn't work:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;------------------------------------&lt;SPAN style="font-size: 13.3333px;"&gt;---------------------------------------------------------------&lt;/SPAN&gt;&lt;/SPAN&gt;---------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;MAPPING:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;MAPPING LOAD * inline [&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Grouped cos&lt;/SPAN&gt;, &lt;SPAN style="font-size: 13.3333px;"&gt;Grouped companies&lt;/SPAN&gt;];&lt;/P&gt;&lt;P&gt;map [&lt;SPAN style="font-size: 13.3333px;"&gt;Mapped group&lt;/SPAN&gt;] using MAPPING;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;------------------------------------&lt;SPAN style="font-size: 13.3333px;"&gt;---------------------------------------------------------------&lt;/SPAN&gt;&lt;/SPAN&gt;---------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt;&lt;STRONG&gt;This was added between the first map and the first load like this:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;------------------------------------&lt;SPAN style="font-size: 13.3333px;"&gt;---------------------------------------------------------------&lt;/SPAN&gt;&lt;/SPAN&gt;---------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt;bnewstructure:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Mapping LOAD&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;B_DESC AS [bname],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;B_GROUP AS [bgroup]&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;FROM&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;bnewstructure:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;(qvd);&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;MAPPING:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;MAPPING LOAD * inline [&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Grouped cos&lt;/SPAN&gt;, &lt;SPAN style="font-size: 13.3333px;"&gt;Grouped companies&lt;/SPAN&gt;];&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;map [&lt;SPAN style="font-size: 13.3333px;"&gt;Mapped group&lt;/SPAN&gt;] using MAPPING;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Details:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;load&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;ApplyMap('bnewstructure:',[B name],'Missing') as [Mapped group],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;*;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;boldstructure.B_DESC as [B name]&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;FROM&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[$(vDetailsQVDDirectory)\boldstructure.qvd]&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;(qvd);&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;------------------------------------&lt;SPAN style="font-size: 13.3333px;"&gt;---------------------------------------------------------------&lt;/SPAN&gt;&lt;/SPAN&gt;---------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Mar 2016 11:52:37 GMT</pubDate>
    <dc:creator>matthewp</dc:creator>
    <dc:date>2016-03-22T11:52:37Z</dc:date>
    <item>
      <title>renaming values in load script with multiple mappings</title>
      <link>https://community.qlik.com/t5/QlikView/renaming-values-in-load-script-with-multiple-mappings/m-p/1044805#M351286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;So currently i have this small script which pulls data from an old qvd and also a new qvd which has a grouping field.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;However i want to be able to rename some of the fields as they use slightly different variations in their spelling.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;------------------------------------&lt;SPAN style="font-size: 13.3333px;"&gt;---------------------------------------------------------------&lt;/SPAN&gt;&lt;/SPAN&gt;---------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;bnewstructure:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Mapping LOAD&lt;/P&gt;&lt;P&gt;B_DESC AS [bname],&lt;/P&gt;&lt;P&gt;B_GROUP AS [bgroup]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;bnewstructure:&lt;/P&gt;&lt;P&gt;(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Details:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;ApplyMap('bnewstructure:',[B name],'Missing') as [Mapped group],&lt;/P&gt;&lt;P&gt;*;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;boldstructure.B_DESC as [B name]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[$(vDetailsQVDDirectory)\boldstructure.qvd]&lt;/P&gt;&lt;P&gt;(qvd);&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;------------------------------------&lt;SPAN style="font-size: 13.3333px;"&gt;---------------------------------------------------------------&lt;/SPAN&gt;&lt;/SPAN&gt;---------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;STRONG&gt;This returns for example:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Mapped group&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Grouped companies&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Grouped cos&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;So i thought about adding another mapping field to address this but it didn't work:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;------------------------------------&lt;SPAN style="font-size: 13.3333px;"&gt;---------------------------------------------------------------&lt;/SPAN&gt;&lt;/SPAN&gt;---------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;MAPPING:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;MAPPING LOAD * inline [&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Grouped cos&lt;/SPAN&gt;, &lt;SPAN style="font-size: 13.3333px;"&gt;Grouped companies&lt;/SPAN&gt;];&lt;/P&gt;&lt;P&gt;map [&lt;SPAN style="font-size: 13.3333px;"&gt;Mapped group&lt;/SPAN&gt;] using MAPPING;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;------------------------------------&lt;SPAN style="font-size: 13.3333px;"&gt;---------------------------------------------------------------&lt;/SPAN&gt;&lt;/SPAN&gt;---------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt;&lt;STRONG&gt;This was added between the first map and the first load like this:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;------------------------------------&lt;SPAN style="font-size: 13.3333px;"&gt;---------------------------------------------------------------&lt;/SPAN&gt;&lt;/SPAN&gt;---------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt;bnewstructure:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Mapping LOAD&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;B_DESC AS [bname],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;B_GROUP AS [bgroup]&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;FROM&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;bnewstructure:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;(qvd);&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;MAPPING:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;MAPPING LOAD * inline [&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Grouped cos&lt;/SPAN&gt;, &lt;SPAN style="font-size: 13.3333px;"&gt;Grouped companies&lt;/SPAN&gt;];&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;map [&lt;SPAN style="font-size: 13.3333px;"&gt;Mapped group&lt;/SPAN&gt;] using MAPPING;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Details:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;load&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;ApplyMap('bnewstructure:',[B name],'Missing') as [Mapped group],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;*;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;boldstructure.B_DESC as [B name]&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;FROM&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[$(vDetailsQVDDirectory)\boldstructure.qvd]&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;(qvd);&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;------------------------------------&lt;SPAN style="font-size: 13.3333px;"&gt;---------------------------------------------------------------&lt;/SPAN&gt;&lt;/SPAN&gt;---------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 11:52:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/renaming-values-in-load-script-with-multiple-mappings/m-p/1044805#M351286</guid>
      <dc:creator>matthewp</dc:creator>
      <dc:date>2016-03-22T11:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: renaming values in load script with multiple mappings</title>
      <link>https://community.qlik.com/t5/QlikView/renaming-values-in-load-script-with-multiple-mappings/m-p/1044806#M351287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you are missing field names in your second map:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;MAPPING:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;MAPPING LOAD * inline [&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;IN, OUT&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Grouped cos&lt;/SPAN&gt;, &lt;SPAN style="font-size: 13.3333px;"&gt;Grouped companies&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;];&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;And what about [Mapped group] field values that don't appear in the MAPPING list of values?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 11:57:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/renaming-values-in-load-script-with-multiple-mappings/m-p/1044806#M351287</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-22T11:57:48Z</dc:date>
    </item>
  </channel>
</rss>

