<?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: Mapping or what to replace a value in one table with the proper from another table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Mapping-or-what-to-replace-a-value-in-one-table-with-the-proper/m-p/1220594#M390331</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;MapSubString changes a substring within a field, rather than returning the mapped value. Perhaps you are looking for&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ApplyMap('MapTermCodes', TermCode, &lt;STRONG&gt;TermCode&lt;/STRONG&gt;) as TermCode,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The third parameter is the default when not found in the mapping, so it will use the existing value if it is not in the mapping table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Jan 2017 08:05:35 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2017-01-10T08:05:35Z</dc:date>
    <item>
      <title>Mapping or what to replace a value in one table with the proper from another table</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-or-what-to-replace-a-value-in-one-table-with-the-proper/m-p/1220591#M390328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have an archaic legacy system that downloads certain negative numbers with an Alphanumeric replacement.&amp;nbsp;&amp;nbsp; The field that is downloaded is a CODE/ID that is used to pull a description from another table in a join.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to use an INLINE table to identify the downloaded alpha with the correct code that can be joined to another table or so we can see what the admin actually entered as they can overwrite descriptions too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Downloaded data looks like this - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TermCode&lt;/P&gt;&lt;P&gt;0}&lt;/P&gt;&lt;P&gt;12&lt;/P&gt;&lt;P&gt;24&lt;/P&gt;&lt;P&gt;5P&lt;/P&gt;&lt;P&gt;4}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The numeric (12,24) are fine.&amp;nbsp; The others need replacement&lt;/P&gt;&lt;P&gt;MAPPING &lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;* INLINE [&lt;/P&gt;&lt;P&gt;TermCode,RealTermCode&lt;/P&gt;&lt;P&gt;1}, 10-&lt;/P&gt;&lt;P&gt;2}, 20-&lt;/P&gt;&lt;P&gt;3}, 30-&lt;/P&gt;&lt;P&gt;4},40-&lt;/P&gt;&lt;P&gt;5},50-&lt;/P&gt;&lt;P&gt;6},60-&lt;/P&gt;&lt;P&gt;7},70-&lt;/P&gt;&lt;P&gt;8},80-&lt;/P&gt;&lt;P&gt;9},90-&lt;/P&gt;&lt;P&gt;0J,1-&lt;/P&gt;&lt;P&gt;1J,11-&lt;/P&gt;&lt;P&gt;2J,21-&lt;/P&gt;&lt;P&gt;3J,31-&lt;/P&gt;&lt;P&gt;4J,41-&lt;/P&gt;&lt;P&gt;5J,51-&lt;/P&gt;&lt;P&gt;6J,61-&lt;/P&gt;&lt;P&gt;7J.71-&lt;/P&gt;&lt;P&gt;8J,81-&lt;/P&gt;&lt;P&gt;9J,91-&lt;/P&gt;&lt;P&gt;0K,2-&lt;/P&gt;&lt;P&gt;1K,12-&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2017 06:56:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-or-what-to-replace-a-value-in-one-table-with-the-proper/m-p/1220591#M390328</guid>
      <dc:creator />
      <dc:date>2017-01-10T06:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping or what to replace a value in one table with the proper from another table</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-or-what-to-replace-a-value-in-one-table-with-the-proper/m-p/1220592#M390329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure what your question is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Name your mapping table and you can use ApplyMap() to use the mapping during the load to create a derived field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MapTermCodes:&lt;/P&gt;&lt;P&gt;MAPPING&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;* INLINE [&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;TermCode,RealTermCode&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&gt;&lt;/P&gt;&lt;P&gt;Main:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;TermCode as LegacyTermCode,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp; ApplyMap('&lt;SPAN style="font-size: 13.3333330154419px;"&gt;MapTermCodes', &lt;/SPAN&gt;TermCode) as &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;TermCode,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2017 07:06:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-or-what-to-replace-a-value-in-one-table-with-the-proper/m-p/1220592#M390329</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2017-01-10T07:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping or what to replace a value in one table with the proper from another table</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-or-what-to-replace-a-value-in-one-table-with-the-proper/m-p/1220593#M390330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I get that part, but also want to preserve the "good" values.&amp;nbsp;&amp;nbsp; I am thinking I want to do more of a MapSubString type function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure this is a good example explanation, but think this is what I am looking for -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://qlikviewcookbook.com/2009/01/using-mapsubstring-to-edit-strings/" title="http://qlikviewcookbook.com/2009/01/using-mapsubstring-to-edit-strings/"&gt;Using MapSubstring() to edit strings | Qlikview Cookbook&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2017 07:51:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-or-what-to-replace-a-value-in-one-table-with-the-proper/m-p/1220593#M390330</guid>
      <dc:creator />
      <dc:date>2017-01-10T07:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping or what to replace a value in one table with the proper from another table</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-or-what-to-replace-a-value-in-one-table-with-the-proper/m-p/1220594#M390331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;MapSubString changes a substring within a field, rather than returning the mapped value. Perhaps you are looking for&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ApplyMap('MapTermCodes', TermCode, &lt;STRONG&gt;TermCode&lt;/STRONG&gt;) as TermCode,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The third parameter is the default when not found in the mapping, so it will use the existing value if it is not in the mapping table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2017 08:05:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-or-what-to-replace-a-value-in-one-table-with-the-proper/m-p/1220594#M390331</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2017-01-10T08:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping or what to replace a value in one table with the proper from another table</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-or-what-to-replace-a-value-in-one-table-with-the-proper/m-p/1220595#M390332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried that before your first responnse and it came up with - in the field.&amp;nbsp;&amp;nbsp; Investigating.&amp;nbsp;&amp;nbsp; I do think the MapSubString may do the trick.&amp;nbsp;&amp;nbsp; I am pretty much looking for an "in field" replacement&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2017 08:13:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-or-what-to-replace-a-value-in-one-table-with-the-proper/m-p/1220595#M390332</guid>
      <dc:creator />
      <dc:date>2017-01-10T08:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping or what to replace a value in one table with the proper from another table</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-or-what-to-replace-a-value-in-one-table-with-the-proper/m-p/1220596#M390333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Once I found my typo, that worked - thanks for talking me through my thoughts.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2017 08:48:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-or-what-to-replace-a-value-in-one-table-with-the-proper/m-p/1220596#M390333</guid>
      <dc:creator />
      <dc:date>2017-01-10T08:48:48Z</dc:date>
    </item>
  </channel>
</rss>

