<?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: How to recode both SOURCE salesman using MAP ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-recode-both-SOURCE-salesman-using-MAP/m-p/1702921#M591545</link>
    <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-Scripting/How-to-create-one-expression-to-replace-multiple-expression/m-p/1702919" target="_blank"&gt;https://community.qlik.com/t5/QlikView-Scripting/How-to-create-one-expression-to-replace-multiple-expression/m-p/1702919&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Above is the sample file i created , hope you can advise me.&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;</description>
    <pubDate>Mon, 18 May 2020 04:03:13 GMT</pubDate>
    <dc:creator>paulyeo11</dc:creator>
    <dc:date>2020-05-18T04:03:13Z</dc:date>
    <item>
      <title>How to recode both SOURCE salesman using MAP ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-recode-both-SOURCE-salesman-using-MAP/m-p/1702869#M591542</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;Below script work fine :-&lt;/P&gt;&lt;P&gt;MAP_NAME:&lt;BR /&gt;mapping LOAD RAW,&lt;BR /&gt;NAME&lt;BR /&gt;FROM&lt;BR /&gt;[MAP_A.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is MAP_A);&lt;/P&gt;&lt;P&gt;For Each i in 'A','B'&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;&lt;BR /&gt;COY,&lt;BR /&gt;&lt;BR /&gt;SALESMAN,&lt;/P&gt;&lt;P&gt;'$(i)' as SOURCE,&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;ApplyMap('MAP_NAME',[SALESMAN],'OTHERS') as [SALESMANE_],&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;SALES&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;COY_$(i).xlsx (ooxml, embedded labels, table is COY_$(i));&lt;/P&gt;&lt;P&gt;NEXT i;&lt;/P&gt;&lt;P&gt;Above script generate below table&amp;nbsp; :-&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MAP_NAME.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/33818i5E0B65934D105001/image-size/large?v=v2&amp;amp;px=999" role="button" title="MAP_NAME.png" alt="MAP_NAME.png" /&gt;&lt;/span&gt;Noe the highlight red color line not able recode SOURCE = B&lt;/P&gt;&lt;P&gt;Hope some one can advise me.&lt;/P&gt;&lt;P&gt;Below is my Map Table for SOURCE A.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="map_a.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/33819i27AD8A8B3B88D00F/image-size/large?v=v2&amp;amp;px=999" role="button" title="map_a.png" alt="map_a.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 17 May 2020 14:26:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-recode-both-SOURCE-salesman-using-MAP/m-p/1702869#M591542</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2020-05-17T14:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to recode both SOURCE salesman using MAP ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-recode-both-SOURCE-salesman-using-MAP/m-p/1702879#M591543</link>
      <description>&lt;P&gt;This looks like it's working correctly? There are no mapping values associated with the latter two values, so they are assigned OTHERS.&lt;/P&gt;</description>
      <pubDate>Sun, 17 May 2020 14:58:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-recode-both-SOURCE-salesman-using-MAP/m-p/1702879#M591543</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2020-05-17T14:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to recode both SOURCE salesman using MAP ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-recode-both-SOURCE-salesman-using-MAP/m-p/1702902#M591544</link>
      <description>Hi Sir&lt;BR /&gt;&lt;BR /&gt;You are correct , it work fine.,because I don’t know how to create MAP for record SOURCE = B&lt;BR /&gt;&lt;BR /&gt;In my actual application , they are 20 sales man , or 20 brand or 30 segment , I need to recode to top 8 brand or segment , and each SOUCE A and B , have diff list of TOP 8.&lt;BR /&gt;&lt;BR /&gt;Meaning every SOURCE have their individual mapping table , depend on their amount.&lt;BR /&gt;&lt;BR /&gt;Since I am using FOR I approach to load , I am only allow one line of MAPPING script .&lt;BR /&gt;&lt;BR /&gt;If I am Nor using FOR I to load , I use manual load , I can have individual mapping script .&lt;BR /&gt;&lt;BR /&gt;It there any way I can use map with FOR I ?&lt;BR /&gt;&lt;BR /&gt;Paul&lt;BR /&gt;</description>
      <pubDate>Sun, 17 May 2020 21:40:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-recode-both-SOURCE-salesman-using-MAP/m-p/1702902#M591544</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2020-05-17T21:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to recode both SOURCE salesman using MAP ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-recode-both-SOURCE-salesman-using-MAP/m-p/1702921#M591545</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-Scripting/How-to-create-one-expression-to-replace-multiple-expression/m-p/1702919" target="_blank"&gt;https://community.qlik.com/t5/QlikView-Scripting/How-to-create-one-expression-to-replace-multiple-expression/m-p/1702919&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Above is the sample file i created , hope you can advise me.&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2020 04:03:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-recode-both-SOURCE-salesman-using-MAP/m-p/1702921#M591545</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2020-05-18T04:03:13Z</dc:date>
    </item>
  </channel>
</rss>

