<?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 Renaming Records in a Field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Renaming-Records-in-a-Field/m-p/755874#M1050067</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Struggling to understand how to handle ugly or messy records in a field.&amp;nbsp; For example,&amp;nbsp; In my products field, there are text AND number records --&amp;gt; the numbers do correspond to specific products ( I want to change them to the text names).&amp;nbsp; should I create some kind of mapping table?&amp;nbsp; How should I do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Nov 2014 13:59:38 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-11-03T13:59:38Z</dc:date>
    <item>
      <title>Renaming Records in a Field</title>
      <link>https://community.qlik.com/t5/QlikView/Renaming-Records-in-a-Field/m-p/755874#M1050067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Struggling to understand how to handle ugly or messy records in a field.&amp;nbsp; For example,&amp;nbsp; In my products field, there are text AND number records --&amp;gt; the numbers do correspond to specific products ( I want to change them to the text names).&amp;nbsp; should I create some kind of mapping table?&amp;nbsp; How should I do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 13:59:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Renaming-Records-in-a-Field/m-p/755874#M1050067</guid>
      <dc:creator />
      <dc:date>2014-11-03T13:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming Records in a Field</title>
      <link>https://community.qlik.com/t5/QlikView/Renaming-Records-in-a-Field/m-p/755875#M1050068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds like the product field has a mix of both numerical 'product IDs' as well as some other textual attribute of the product (name, description? etc.. )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could do an conditional applymap() function to replace the numerical values with textual values coming from a mapping table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A simple check if its &amp;gt; 0 will check if its numerical or not:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;IF(&amp;nbsp; Product &amp;gt; 0 ,&amp;nbsp; applymap() ,&amp;nbsp; Product)&amp;nbsp;&amp;nbsp; as CleanedProductName,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;From &amp;lt;source&amp;gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 14:03:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Renaming-Records-in-a-Field/m-p/755875#M1050068</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-11-03T14:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming Records in a Field</title>
      <link>https://community.qlik.com/t5/QlikView/Renaming-Records-in-a-Field/m-p/755876#M1050069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could create a mapping table and use the applymap function to replace product codes with product names:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ProductMap:&lt;BR /&gt;mapping LOAD ProductID, ProductName&lt;/P&gt;&lt;P&gt;FROM &lt;EM&gt;...table_with_productcodes_and_names...&lt;/EM&gt; ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MyData:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt;...some_fields...&lt;/EM&gt;,&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; applymap('ProductMap', MessyField) as Product,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt;...some_more_fields...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;FROM &lt;EM&gt;...messy_source_table...&lt;/EM&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 14:04:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Renaming-Records-in-a-Field/m-p/755876#M1050069</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-11-03T14:04:53Z</dc:date>
    </item>
  </channel>
</rss>

