<?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: Re: Mapping on multiple fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Mapping-on-multiple-fields/m-p/730649#M670786</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that will work. Thank you. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Sep 2014 19:07:21 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-09-18T19:07:21Z</dc:date>
    <item>
      <title>Mapping on multiple fields</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-on-multiple-fields/m-p/730645#M670782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Need some scripting help. I'm familiar with applymap(), but I need something that works on multiple fields. For instance, I have a table Main with columns &lt;STRONG&gt;ID, A, B&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need something that works to the effect of, if &lt;STRONG&gt;A&lt;/STRONG&gt; = 'X' and &lt;STRONG&gt;B&lt;/STRONG&gt; = 'Y' then let &lt;STRONG&gt;B&lt;/STRONG&gt; = 'Z'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have several such "exclusions," and it would be nice to put them in an inline mapping table with columns &lt;STRONG&gt;A, B_old &lt;/STRONG&gt;and&lt;STRONG&gt; B_new&lt;/STRONG&gt;. In this case, the inline mapping table would have a row ('X', 'Y', 'Z').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought of using a left join on the inline mapping table from the Main table to create my column &lt;STRONG&gt;B&lt;/STRONG&gt;, but then only mapped values will populate the new column &lt;STRONG&gt;B&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas? Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 12:36:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-on-multiple-fields/m-p/730645#M670782</guid>
      <dc:creator />
      <dc:date>2014-09-18T12:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping on multiple fields</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-on-multiple-fields/m-p/730646#M670783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kindly provide few line sample data along with your final requirements and logic behind that...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 12:41:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-on-multiple-fields/m-p/730646#M670783</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-09-18T12:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Mapping on multiple fields</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-on-multiple-fields/m-p/730647#M670784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LOAD * INLINE [&lt;BR /&gt;ID, A, B&lt;BR /&gt;1, X, M&lt;BR /&gt;2, X, M&lt;BR /&gt;6, X, N&lt;BR /&gt;7, X, N&lt;BR /&gt;8, X, R&lt;BR /&gt;10, X, M&lt;BR /&gt;15, Y, M&lt;BR /&gt;16, Y, M&lt;BR /&gt;17, Y, M&lt;BR /&gt;18, Y, N&lt;BR /&gt;21, Y, P&lt;BR /&gt;22, Y, P&lt;BR /&gt;23, Y, P&lt;BR /&gt;32, Z, M&lt;BR /&gt;33, Z, M&lt;BR /&gt;34, Z, N&lt;BR /&gt;38, Z, P&lt;BR /&gt;39, Z, P&lt;BR /&gt;40, Z, R&lt;BR /&gt;41, Z, R&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;InlineMapping:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;A1, B1, B2&lt;BR /&gt;X, R, N&lt;BR /&gt;Z, M, N&lt;BR /&gt;];&lt;BR /&gt; &lt;BR /&gt;/*&lt;BR /&gt;Use Mapping table to modify contents of Main table:&lt;BR /&gt;Row 1: If A = X and B = R then set B = N&lt;BR /&gt;Row 2: If A = Z and B = M then set B = N&lt;/P&gt;&lt;P&gt;In my actual project, table Main is loaded from a QVD. So this mapping can be done during or after the table load.&lt;BR /&gt;*/&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 13:22:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-on-multiple-fields/m-p/730647#M670784</guid>
      <dc:creator />
      <dc:date>2014-09-18T13:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Mapping on multiple fields</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-on-multiple-fields/m-p/730648#M670785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;InlineMapping:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MAPPING LOAD A1&amp;amp;B1 as Key, B2 INLINE &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; A1, B1, B2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; X, R, N&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Z, M, N&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Final:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD ID, A, B, ApplyMap('InlineMapping',A&amp;amp;B,B) as NewB INLINE &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; ID, A, B&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; 1, X, M&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; 2, X, M&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; 6, X, N&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; 7, X, N&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; 8, X, R&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; 10, X, M&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; 15, Y, M&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; 16, Y, M&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; 17, Y, M&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; 18, Y, N&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; 21, Y, P&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; 22, Y, P&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; 23, Y, P&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; 32, Z, M&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; 33, Z, M&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; 34, Z, N&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; 38, Z, P&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; 39, Z, P&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; 40, Z, R&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; 41, Z, R&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have kept both B and NewB so compare for you..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 13:31:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-on-multiple-fields/m-p/730648#M670785</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-09-18T13:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Mapping on multiple fields</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-on-multiple-fields/m-p/730649#M670786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that will work. Thank you. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 19:07:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-on-multiple-fields/m-p/730649#M670786</guid>
      <dc:creator />
      <dc:date>2014-09-18T19:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Mapping on multiple fields</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-on-multiple-fields/m-p/730650#M670787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If this will work for you,&amp;nbsp; kindly close the thread by selecting correct answer &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 20:02:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-on-multiple-fields/m-p/730650#M670787</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-09-18T20:02:52Z</dc:date>
    </item>
  </channel>
</rss>

