<?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: Rename data within a table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rename-data-within-a-table/m-p/1163204#M378973</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can do this by using applymap function&lt;/P&gt;&lt;P&gt;Create&amp;nbsp; 2 mapping loads for status and injury&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Status:&lt;/P&gt;&lt;P&gt;Mapping Load&amp;nbsp; * Inline [&lt;/P&gt;&lt;P&gt;Status,Description&lt;/P&gt;&lt;P&gt;CL,Closed&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COVCode:&lt;/P&gt;&lt;P&gt;Mapping Load&amp;nbsp; * Inline [&lt;/P&gt;&lt;P&gt;COVCode,Description&lt;/P&gt;&lt;P&gt;GD,General Liability&lt;/P&gt;&lt;P&gt;AD ,ADDescription&lt;/P&gt;&lt;P&gt;AB,ABdescription&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;LOAD ADJ_NAME&amp;nbsp; AS Name, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap('Status',CLM_STATUS,'Unknown')&amp;nbsp; AS Status,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap('COVCode',COV_CODE,'Unknown')&amp;nbsp; AS Injury&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2051" data-containertype="14" data-objectid="220240" data-objecttype="1" href="https://community.qlik.com/thread/220240"&gt;https://community.qlik.com/thread/220240&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;(html, codepage is 1252, embedded labels, table is @1);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Jun 2016 15:47:26 GMT</pubDate>
    <dc:creator>shree909</dc:creator>
    <dc:date>2016-06-09T15:47:26Z</dc:date>
    <item>
      <title>Rename data within a table</title>
      <link>https://community.qlik.com/t5/QlikView/Rename-data-within-a-table/m-p/1163201#M378970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following .qvd data loaded into my data model:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="266"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" width="105"&gt;&lt;STRONG&gt;ADJ_NAME&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl64" width="86"&gt;&lt;STRONG&gt;CLM_STATUS&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl64" width="75"&gt;&lt;STRONG&gt;COV_CODE&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;BOB JONES&lt;/TD&gt;&lt;TD class="xl63"&gt;CL&lt;/TD&gt;&lt;TD class="xl63"&gt;GD&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;JAMES SMITH&lt;/TD&gt;&lt;TD class="xl63"&gt;CL&lt;/TD&gt;&lt;TD class="xl63"&gt;AD&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;SANDRA HARVY&lt;/TD&gt;&lt;TD class="xl63"&gt;CL&lt;/TD&gt;&lt;TD class="xl63"&gt;AB&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my data model script I am renaming,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ADJ_NAME as Name,&lt;/P&gt;&lt;P&gt;CLM_STATUS as Status,&lt;/P&gt;&lt;P&gt;COV_CODE as Injury&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to rename the data within the table-- CL to Closed, GD to General Liability, etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How is this possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2016 15:00:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rename-data-within-a-table/m-p/1163201#M378970</guid>
      <dc:creator />
      <dc:date>2016-06-09T15:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: Rename data within a table</title>
      <link>https://community.qlik.com/t5/QlikView/Rename-data-within-a-table/m-p/1163202#M378971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mapReplace:&lt;/P&gt;&lt;P&gt;MAPPING LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Old, New&lt;/P&gt;&lt;P&gt;CL, Closed&lt;/P&gt;&lt;P&gt;GD, General Liabillity&lt;/P&gt;&lt;P&gt;&lt;EM&gt;etc....&lt;/EM&gt;&lt;/P&gt;&lt;P&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; ADJ_Name as Name,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap('mapReplace',CLM_STATUS) as Status&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap('mapReplace',COV_CODE) as Injury&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....source_qvd...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If a value CL occurs in both CLM_STATUS and COV_CODE, but should be replaced by different values then you need to use two mapping tables instead of only the one in the example code above.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2016 15:44:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rename-data-within-a-table/m-p/1163202#M378971</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-06-09T15:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: Rename data within a table</title>
      <link>https://community.qlik.com/t5/QlikView/Rename-data-within-a-table/m-p/1163203#M378972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[...]&lt;/P&gt;&lt;P&gt;Pick(Match(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;CLM_STATUS, 'CL', 'GD'), 'Closed', '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;General Liabilit') as &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Status,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Pick(Match(&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;COV_CODE&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;, 'CL', 'GD'), 'Closed', '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;General Liabilit') as &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Injury&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[...]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;_MAP_&lt;/P&gt;&lt;P&gt;MAPPING LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp; CODE, LABEL&lt;/P&gt;&lt;P&gt;&amp;nbsp; CL, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Closed&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; GD, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;General Liabilit&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;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; ApplyMap('_MAP_', &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;CLM_STATUS&lt;/SPAN&gt;) as &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Status,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ApplyMap('_MAP_', &lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;COV_CODE&lt;/STRONG&gt;) as &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Injury&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;[...]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2016 15:46:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rename-data-within-a-table/m-p/1163203#M378972</guid>
      <dc:creator>Aurelien_Martinez</dc:creator>
      <dc:date>2016-06-09T15:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: Rename data within a table</title>
      <link>https://community.qlik.com/t5/QlikView/Rename-data-within-a-table/m-p/1163204#M378973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can do this by using applymap function&lt;/P&gt;&lt;P&gt;Create&amp;nbsp; 2 mapping loads for status and injury&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Status:&lt;/P&gt;&lt;P&gt;Mapping Load&amp;nbsp; * Inline [&lt;/P&gt;&lt;P&gt;Status,Description&lt;/P&gt;&lt;P&gt;CL,Closed&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COVCode:&lt;/P&gt;&lt;P&gt;Mapping Load&amp;nbsp; * Inline [&lt;/P&gt;&lt;P&gt;COVCode,Description&lt;/P&gt;&lt;P&gt;GD,General Liability&lt;/P&gt;&lt;P&gt;AD ,ADDescription&lt;/P&gt;&lt;P&gt;AB,ABdescription&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;LOAD ADJ_NAME&amp;nbsp; AS Name, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap('Status',CLM_STATUS,'Unknown')&amp;nbsp; AS Status,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap('COVCode',COV_CODE,'Unknown')&amp;nbsp; AS Injury&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2051" data-containertype="14" data-objectid="220240" data-objecttype="1" href="https://community.qlik.com/thread/220240"&gt;https://community.qlik.com/thread/220240&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;(html, codepage is 1252, embedded labels, table is @1);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2016 15:47:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rename-data-within-a-table/m-p/1163204#M378973</guid>
      <dc:creator>shree909</dc:creator>
      <dc:date>2016-06-09T15:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: Rename data within a table</title>
      <link>https://community.qlik.com/t5/QlikView/Rename-data-within-a-table/m-p/1163205#M378974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have not used Pick(Match( before. What is the difference int he Apply Map and the Pick Match?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2016 16:08:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rename-data-within-a-table/m-p/1163205#M378974</guid>
      <dc:creator />
      <dc:date>2016-06-09T16:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: Rename data within a table</title>
      <link>https://community.qlik.com/t5/QlikView/Rename-data-within-a-table/m-p/1163206#M378975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pick(Match(Field, 'Val1', 'Val2'), 'Value1', 'Value2'))&lt;/P&gt;&lt;P&gt;is like a &lt;/P&gt;&lt;P&gt;If(Field = 'Val1', 'Value1', If(Field = 'Val2', Value2))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case the mapping load/ applymap is better (performance and maintenance)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2016 16:27:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rename-data-within-a-table/m-p/1163206#M378975</guid>
      <dc:creator>Aurelien_Martinez</dc:creator>
      <dc:date>2016-06-09T16:27:14Z</dc:date>
    </item>
  </channel>
</rss>

