<?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 script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Mapping-script/m-p/731322#M676225</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Correct. In the data, if the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;RIMS Trade condition&lt;/SPAN&gt; field is populated the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ICredit Passive + iCredit Aggresive&lt;/SPAN&gt; fields are ALWAYS blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Likewise if the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ICredit Passive + iCredit Aggresive&lt;/SPAN&gt; are populated, the RIMS trade condition field will ALWAYS be blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ICredit Passive + iCredit Aggresive&lt;/SPAN&gt; are either both populated or not at all&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jun 2014 14:52:15 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-06-24T14:52:15Z</dc:date>
    <item>
      <title>Mapping script</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-script/m-p/731308#M676211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The following mapping script produces no errors when I load it, but at the same time map none of the values to the Trade_Type field I am creating.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rename table TRADES to Trade_Temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trade_Conditions:&lt;/P&gt;&lt;P&gt;LOAD * inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;RIMS_Trade_Condition,iCreditPassive,iCreditAggressive,Trade_Type&lt;/P&gt;&lt;P&gt;EL,Electronic,Electronic,Electronic&lt;/P&gt;&lt;P&gt;VC,Voice,Voice,Voice&lt;/P&gt;&lt;P&gt;,Electronic,Voice,Hybrid&lt;/P&gt;&lt;P&gt;,Voice,Electronic,Hybrid&lt;/P&gt;&lt;P&gt;IF,,Intra firm&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MapTradeCondition:&lt;/P&gt;&lt;P&gt;Mapping LOAD&lt;/P&gt;&lt;P&gt;RIMS_Trade_Condition &amp;amp; iCreditPassive &amp;amp; iCreditAggressive as key , &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Trade_Type&lt;/P&gt;&lt;P&gt;Resident Trade_Conditions;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRADES:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;ApplyMap('MapTradeCondition',PassiveTradeType,ApplyMap('MapTradeCondition',AggressorTradeType,ApplyMap('MapTradeCondition',TradeCondition))) as Trade_Type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident Trade_Temp;&lt;/P&gt;&lt;P&gt;Drop Tables&amp;nbsp; Trade_Temp,Trade_Conditions ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2014 14:54:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-script/m-p/731308#M676211</guid>
      <dc:creator />
      <dc:date>2014-06-23T14:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping script</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-script/m-p/731309#M676212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you attach a sample document, it might be due to special characters or spaces in the field, or even the key fields in the mapping are not correct.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2014 15:06:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-script/m-p/731309#M676212</guid>
      <dc:creator>maleksafa</dc:creator>
      <dc:date>2014-06-23T15:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Mapping script</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-script/m-p/731310#M676213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;simplified sample data attached&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2014 15:14:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-script/m-p/731310#M676213</guid>
      <dc:creator />
      <dc:date>2014-06-23T15:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping script</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-script/m-p/731311#M676214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Based on your script the created mapping table looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE bgcolor="#ffffff" border="1" cellpadding="2" cellspacing="0" style="font-size: 9pt;"&gt;&lt;TBODY&gt;&lt;TR bgcolor="#f5f5f5"&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;key&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Trade_Type&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;ElectronicVoice&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Hybrid&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;ELElectronicElectronic&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Electronic&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;IFIntra firm&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;VCVoiceVoice&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Voice&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;VoiceElectronic&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Hybrid&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think you have any TradeCondition values that matches those keys&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/gg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2014 15:22:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-script/m-p/731311#M676214</guid>
      <dc:creator>gandalfgray</dc:creator>
      <dc:date>2014-06-23T15:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping script</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-script/m-p/731312#M676215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gandalf. I see what you mean&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i adjust my script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2014 15:43:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-script/m-p/731312#M676215</guid>
      <dc:creator />
      <dc:date>2014-06-23T15:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping script</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-script/m-p/731313#M676216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alex&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suggest you start by doing what you are trying to do step by step so you can see you get the expected result after each step.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Probably it is better to create three different mapping tables, one for "TradeCondition", one for "AggressorTradeType" and one for "PassiveTradeType", so your nested ApplyMap statement would look something like.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ApplyMap('MapPassiveCondition',PassiveTradeType,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ApplyMap('MapAggressorCondition',AggressorTradeType,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap('MapTradeCondition',TradeCondition))) as Trade_Type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't get expected result, add another field:&lt;/P&gt;&lt;P&gt;ApplyMap('MapTradeCondition',TradeCondition) as Trade_Type_check1&lt;/P&gt;&lt;P&gt;and see what values you get in the Trade_type_check1 field&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 06:14:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-script/m-p/731313#M676216</guid>
      <dc:creator>gandalfgray</dc:creator>
      <dc:date>2014-06-24T06:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping script</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-script/m-p/731314#M676217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would this step by step approach work, if the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;PassiveTradeType&lt;/SPAN&gt; and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;AggressorTradeType&lt;/SPAN&gt; depend on each other in the instance where one of them is 'electronic' and the other is 'voice' and the outcome needs to be 'Hybrid'?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 07:27:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-script/m-p/731314#M676217</guid>
      <dc:creator />
      <dc:date>2014-06-24T07:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Mapping script</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-script/m-p/731315#M676218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried the script below, but i get the error; "Field names must be unique within table". (See attached). I'm not sure which fields this erroris referring to though&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rename table TRADES to Trade_Temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RIMS_Trade_Conditions:&lt;/P&gt;&lt;P&gt;LOAD * inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;RIMS_Trade_Condition, Trade_Type&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;EL,Electronic&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;IF,Intra Firm&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;VC,Voice&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MapTradeCondition:&lt;/P&gt;&lt;P&gt;Mapping LOAD&lt;/P&gt;&lt;P&gt;RIMS_Trade_Condition ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Trade_Type&lt;/P&gt;&lt;P&gt;Resident RIMS_Trade_Conditions;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRADES:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;ApplyMap('MapTradeCondition',TradeCondition,) as Trade_Type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident Trade_Temp;&lt;/P&gt;&lt;P&gt;Drop Tables&amp;nbsp; Trade_Temp,RIMS_Trade_Conditions ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rename table TRADES to Trade_Temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trade_Conditions:&lt;/P&gt;&lt;P&gt;LOAD * inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;iCreditPassive,iCreditAggressive,Trade_Type&lt;/P&gt;&lt;P&gt;Electronic,Electronic,Electronic&lt;/P&gt;&lt;P&gt;Voice,Voice,Voice&lt;/P&gt;&lt;P&gt;Electronic,Voice,Hybrid&lt;/P&gt;&lt;P&gt;Voice,Electronic,Hybrid&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MapTradeCondition:&lt;/P&gt;&lt;P&gt;Mapping LOAD&lt;/P&gt;&lt;P&gt;iCreditPassive &amp;amp; iCreditAggressive as key ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Trade_Type&lt;/P&gt;&lt;P&gt;Resident Trade_Conditions;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRADES:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;ApplyMap('MapTradeCondition',PassiveTradeType,ApplyMap('MapTradeCondition',AggressorTradeType,)) as Trade_Type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident Trade_Temp;&lt;/P&gt;&lt;P&gt;Drop Tables&amp;nbsp; Trade_Temp,Trade_Conditions ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 07:35:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-script/m-p/731315#M676218</guid>
      <dc:creator />
      <dc:date>2014-06-24T07:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping script</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-script/m-p/731316#M676219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, i realise I see it is because I am trying to overwrite the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Trade_Type&lt;/SPAN&gt; field created from the previous mapping.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible in teh 2nd mapping to populate the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Trade_Type&lt;/SPAN&gt; field created from the first mapping?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 07:46:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-script/m-p/731316#M676219</guid>
      <dc:creator />
      <dc:date>2014-06-24T07:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping script</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-script/m-p/731317#M676220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;about overwriting Trade_Type, you need to give them different names, ie the first instance you call Trade_Type1, and the second Trade_Type2 etc.&lt;/P&gt;&lt;P&gt;Then you can drop the one(s) you dont need in the end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have also given the same name (MapTradeCondition) to the mapping tables.&lt;/P&gt;&lt;P&gt;Change that so they have unique names.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 08:02:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-script/m-p/731317#M676220</guid>
      <dc:creator>gandalfgray</dc:creator>
      <dc:date>2014-06-24T08:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping script</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-script/m-p/731318#M676221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need both sets of data though. If i drop one of them, will that data then not be present?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both mapping tables to populate the same field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 08:05:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-script/m-p/731318#M676221</guid>
      <dc:creator />
      <dc:date>2014-06-24T08:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping script</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-script/m-p/731319#M676222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you drop a field, the field and the data in it is gone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before you drop it you can use it to populate other fields.&lt;/P&gt;&lt;P&gt;I don't know if that is what you want to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It may be simpler if you here provide the set of different values you have in&lt;/P&gt;&lt;P&gt;RIMS_Trade_Condition,&amp;nbsp; iCreditPassive &amp;amp; iCreditAggressive&lt;/P&gt;&lt;P&gt;and what value you expect each combination to map to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe I can help then&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 14:01:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-script/m-p/731319#M676222</guid>
      <dc:creator>gandalfgray</dc:creator>
      <dc:date>2014-06-24T14:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping script</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-script/m-p/731320#M676223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;TABLE border="1" class="jiveBorder" height="124" style="border: 1px solid #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;THEAD style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TH class="header" style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center; color: #ffffff; background-color: #6690bc; background-position: no-repeat no-repeat;" valign="middle"&gt;RIMS Trade Condition&lt;/TH&gt;&lt;TH class="header" style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center; color: #ffffff; background-color: #6690bc; background-position: no-repeat no-repeat;" valign="middle"&gt;iCredit Passive&lt;/TH&gt;&lt;TH class="header" style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center; color: #ffffff; background-color: #6690bc; background-position: no-repeat no-repeat;" valign="middle"&gt;iCredit Aggressive&lt;/TH&gt;&lt;TH class="header" style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center; color: #ffffff; background-color: #6690bc; background-position: no-repeat no-repeat;" valign="middle"&gt;Trade_Type Outcome&lt;/TH&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;Voice&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;Voice&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;Voice&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;Electronic&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;Electronic&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;Electronic&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;Voice&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;Electronic&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;Hybrid&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;Electronic&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;Voice&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;Hybrid&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;EL&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Electronic&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;VC&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;Voice&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;IF&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;Intra Firm&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;NRR&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;No reporting required&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this what you mean?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 14:19:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-script/m-p/731320#M676223</guid>
      <dc:creator />
      <dc:date>2014-06-24T14:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping script</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-script/m-p/731321#M676224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you don't really combine RIMS Trade condition with ICredit Passive + iCredit Aggresive, right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 14:35:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-script/m-p/731321#M676224</guid>
      <dc:creator>gandalfgray</dc:creator>
      <dc:date>2014-06-24T14:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping script</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-script/m-p/731322#M676225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Correct. In the data, if the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;RIMS Trade condition&lt;/SPAN&gt; field is populated the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ICredit Passive + iCredit Aggresive&lt;/SPAN&gt; fields are ALWAYS blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Likewise if the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ICredit Passive + iCredit Aggresive&lt;/SPAN&gt; are populated, the RIMS trade condition field will ALWAYS be blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ICredit Passive + iCredit Aggresive&lt;/SPAN&gt; are either both populated or not at all&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 14:52:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-script/m-p/731322#M676225</guid>
      <dc:creator />
      <dc:date>2014-06-24T14:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping script</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-script/m-p/731323#M676226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A simplified example below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just create a small "TRADES" table with the possible combinations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use two mapping tables MapRIMS and MapCredit to map the two parts.&lt;/P&gt;&lt;P&gt;If there is no match in MapRIMS, MapCredit is used in the nested ApplyMap part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps/gg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRADES:&lt;/P&gt;&lt;P&gt;LOAD * inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;RIMS_Trade_Condition,iCreditPassive,iCreditAggressive&lt;/P&gt;&lt;P&gt;,Electronic,Electronic&lt;/P&gt;&lt;P&gt;,Voice,Voice&lt;/P&gt;&lt;P&gt;,Electronic,Voice&lt;/P&gt;&lt;P&gt;,Voice,Electronic&lt;/P&gt;&lt;P&gt;EL,,&lt;/P&gt;&lt;P&gt;VC,,&lt;/P&gt;&lt;P&gt;NRR,,&lt;/P&gt;&lt;P&gt;IF,,&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MapRIMS:&lt;/P&gt;&lt;P&gt;Mapping LOAD * inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;key,value&lt;/P&gt;&lt;P&gt;EL,Electronic&lt;/P&gt;&lt;P&gt;VC,Voice&lt;/P&gt;&lt;P&gt;NRR,No reporting required&lt;/P&gt;&lt;P&gt;IF,Intra firm&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MapCredit:&lt;/P&gt;&lt;P&gt;Mapping LOAD * inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;key,value&lt;/P&gt;&lt;P&gt;ElectronicElectronic,Electronic&lt;/P&gt;&lt;P&gt;VoiceVoice,Voice&lt;/P&gt;&lt;P&gt;ElectronicVoice,Hybrid&lt;/P&gt;&lt;P&gt;VoiceElectronic,Hybrid&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;processedTRADES:&lt;/P&gt;&lt;P&gt;LOAD RIMS_Trade_Condition,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; iCreditPassive,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; iCreditAggressive,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap('MapRIMS',RIMS_Trade_Condition, ApplyMap('MapCredit',iCreditPassive&amp;amp;iCreditAggressive)) As Trade_Type&lt;/P&gt;&lt;P&gt;Resident TRADES;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table TRADES;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2014 07:11:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-script/m-p/731323#M676226</guid>
      <dc:creator>gandalfgray</dc:creator>
      <dc:date>2014-06-25T07:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping script</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-script/m-p/731324#M676227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;GandalfGray, you are a genius.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks so much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2014 07:35:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-script/m-p/731324#M676227</guid>
      <dc:creator />
      <dc:date>2014-06-25T07:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Mapping script</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-script/m-p/731325#M676229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One last thing. How do I drop the processedTRADES table (and in the process remove the synthetic table) without losing the Trade_Type field?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2014 07:42:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-script/m-p/731325#M676229</guid>
      <dc:creator />
      <dc:date>2014-06-25T07:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Mapping script</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-script/m-p/731326#M676230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like you just need to do:&lt;/P&gt;&lt;P&gt;Left Join(TRADES)&lt;/P&gt;&lt;P&gt;Load *&lt;/P&gt;&lt;P&gt;Resident processedTRADES;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table processedTRADES;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2014 07:45:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-script/m-p/731326#M676230</guid>
      <dc:creator>gandalfgray</dc:creator>
      <dc:date>2014-06-25T07:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Mapping script</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-script/m-p/731327#M676232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oddly when I add this script in, it crashes in the load at the point and I have to restart QV each time. No error messages or anything&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2014 07:53:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-script/m-p/731327#M676232</guid>
      <dc:creator />
      <dc:date>2014-06-25T07:53:32Z</dc:date>
    </item>
  </channel>
</rss>

