<?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 Map all values to one in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Map-all-values-to-one/m-p/168715#M39784</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Believe it or not, I've never used "map ... using". The applymap() works fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Nov 2009 03:28:58 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-11-30T03:28:58Z</dc:date>
    <item>
      <title>Map all values to one</title>
      <link>https://community.qlik.com/t5/QlikView/Map-all-values-to-one/m-p/168712#M39781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;Recently I've faced a need to map all the possible incoming values to one value. And I failed.&lt;/P&gt;&lt;P&gt;Assume that you have a table of customers and you want to consider just a dozen of them. All the other customers should be renamed as Others, for example.&lt;/P&gt;&lt;P&gt;Is it possible to accomplish this task with mappings? Or is there another nice way except writing complicated conditional load scripts?&lt;/P&gt;&lt;P&gt;I would expect a map like this to work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;mapping load * inline [&lt;BR /&gt;x,y&lt;BR /&gt;Cust1,Customer 1&lt;BR /&gt;Cust2,Customer 2&lt;BR /&gt;*,Other customers];&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;But it doesn't. What would you suggest?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Valera&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Nov 2009 21:59:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Map-all-values-to-one/m-p/168712#M39781</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-11-29T21:59:48Z</dc:date>
    </item>
    <item>
      <title>Map all values to one</title>
      <link>https://community.qlik.com/t5/QlikView/Map-all-values-to-one/m-p/168713#M39782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Valera,&lt;BR /&gt;It is simpler than you think:&lt;BR /&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;CustomerMap:&lt;BR /&gt;mapping load * inline [&lt;BR /&gt;x, y&lt;BR /&gt;Cust1,Customer1&lt;BR /&gt;Cust2,Customer2];&lt;BR /&gt;//&lt;BR /&gt;Table:&lt;BR /&gt;LOAD&lt;BR /&gt;...&lt;BR /&gt;applymap('CustomerMap', CustomerCode, 'Other') as Customer,&lt;BR /&gt;...&lt;BR /&gt;RESIDENT...;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;If Customercode='Cust1', then you get Customer='Customer1'&lt;BR /&gt;If Customercode='Cust2', then you get Customer='Customer2'&lt;BR /&gt;In any other case, you get Customer='Other'. &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2009 02:55:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Map-all-values-to-one/m-p/168713#M39782</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-11-30T02:55:27Z</dc:date>
    </item>
    <item>
      <title>Map all values to one</title>
      <link>https://community.qlik.com/t5/QlikView/Map-all-values-to-one/m-p/168714#M39783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, this is the solution! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, I was wondering if it was possible to do something the same with "&lt;B&gt;map... using&lt;/B&gt;" structure. I am used to it and I wanted to find a solution with "&lt;B&gt;map..using&lt;/B&gt;". Can it be done?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Valera&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2009 03:11:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Map-all-values-to-one/m-p/168714#M39783</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-11-30T03:11:30Z</dc:date>
    </item>
    <item>
      <title>Map all values to one</title>
      <link>https://community.qlik.com/t5/QlikView/Map-all-values-to-one/m-p/168715#M39784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Believe it or not, I've never used "map ... using". The applymap() works fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2009 03:28:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Map-all-values-to-one/m-p/168715#M39784</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-11-30T03:28:58Z</dc:date>
    </item>
  </channel>
</rss>

