<?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: Renaming Records in a Field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Renaming-Records-in-a-Field/m-p/572061#M1110379</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __default_attr="xml" __jive_macro_name="code" class="jive_text_macro _jivemacro_uid_13934168610724021 jive_macro_code" jivemacro_uid="_13934168610724021"&gt;
&lt;P&gt;map:&lt;/P&gt;
&lt;P&gt;mapping load * INLINE [&lt;/P&gt;
&lt;P&gt;From, To&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Units,&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Demand Units&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Actuals,&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Demand &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Actuals&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sell In,&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Sell In&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Channel Fill,&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Channel Fill,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;*,&lt;/P&gt;
&lt;P&gt;applymap('map',Measures) as Measures2&lt;/P&gt;
&lt;P&gt;from yourqvd(qvd);&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Feb 2014 12:14:28 GMT</pubDate>
    <dc:creator>Clever_Anjos</dc:creator>
    <dc:date>2014-02-26T12:14:28Z</dc:date>
    <item>
      <title>Renaming Records in a Field</title>
      <link>https://community.qlik.com/t5/QlikView/Renaming-Records-in-a-Field/m-p/572055#M1110373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an Excel file with a Column called Measures. This contains the following values:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Units&lt;/P&gt;&lt;P&gt;Actuals&lt;/P&gt;&lt;P&gt;Sell In&lt;/P&gt;&lt;P&gt;Channel Fill&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I create a listbox, these are the selection values that appear.&lt;/P&gt;&lt;P&gt;I need to change the name of some of these values in the listbox. eg.. change Units to 'Demand Units'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas on how I can do this? Can I rename the values during the script load?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 11:33:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Renaming-Records-in-a-Field/m-p/572055#M1110373</guid>
      <dc:creator />
      <dc:date>2014-02-26T11:33:25Z</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/572056#M1110374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;while loading in load script&lt;/P&gt;&lt;P&gt;if(Measures='Units','Demand Units',Measeures) as Measures,&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;from xyz;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;_sundar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 11:36:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Renaming-Records-in-a-Field/m-p/572056#M1110374</guid>
      <dc:creator>sundarakumar</dc:creator>
      <dc:date>2014-02-26T11:36:35Z</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/572057#M1110375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, John&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I presume that in you're script you have something similar to:&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; [...]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Measures,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [...]&lt;/P&gt;&lt;P&gt;FROM [Your_Excel_File];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The more straightforward way of accomplishing what you want would be a simple If statement. Something like:&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; [...]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Measures='Units', 'Demand Units', Measures) as Measures;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [...]&lt;/P&gt;&lt;P&gt;FROM [Your_Excel_File];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find an example with an inline table attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 11:41:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Renaming-Records-in-a-Field/m-p/572057#M1110375</guid>
      <dc:creator>Luis_Cortizo</dc:creator>
      <dc:date>2014-02-26T11:41:17Z</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/572058#M1110376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sundar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create a inline table in script rather than using if condition.Performancewise it would be ggod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 11:43:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Renaming-Records-in-a-Field/m-p/572058#M1110376</guid>
      <dc:creator />
      <dc:date>2014-02-26T11:43:21Z</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/572059#M1110377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If that's an option I totally agree with Mahendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 11:48:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Renaming-Records-in-a-Field/m-p/572059#M1110377</guid>
      <dc:creator>Luis_Cortizo</dc:creator>
      <dc:date>2014-02-26T11:48:26Z</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/572060#M1110378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;pick(wildmatch(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Measures&lt;/SPAN&gt;, 'Units',&amp;nbsp; 'Sell In', '*'), '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Demand &lt;/SPAN&gt; Units',&amp;nbsp; 'New Sell In', &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Measures&lt;/SPAN&gt;) as &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;Measures&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Measures&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Units&lt;/P&gt;&lt;P&gt;Actuals&lt;/P&gt;&lt;P&gt;Sell In&lt;/P&gt;&lt;P&gt;Channel Fill&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 11:48:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Renaming-Records-in-a-Field/m-p/572060#M1110378</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-02-26T11:48:44Z</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/572061#M1110379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __default_attr="xml" __jive_macro_name="code" class="jive_text_macro _jivemacro_uid_13934168610724021 jive_macro_code" jivemacro_uid="_13934168610724021"&gt;
&lt;P&gt;map:&lt;/P&gt;
&lt;P&gt;mapping load * INLINE [&lt;/P&gt;
&lt;P&gt;From, To&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Units,&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Demand Units&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Actuals,&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Demand &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Actuals&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sell In,&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Sell In&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Channel Fill,&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Channel Fill,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;*,&lt;/P&gt;
&lt;P&gt;applymap('map',Measures) as Measures2&lt;/P&gt;
&lt;P&gt;from yourqvd(qvd);&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 12:14:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Renaming-Records-in-a-Field/m-p/572061#M1110379</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2014-02-26T12:14:28Z</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/572062#M1110380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all the replies..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to change more that one value, how do I amend the following code to do this? I tried afew possibilities but couldn't get it to work - I got a duplicate error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(Measures='Units', 'Demand Units', Measures) as Measures;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 14:43:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Renaming-Records-in-a-Field/m-p/572062#M1110380</guid>
      <dc:creator />
      <dc:date>2014-02-26T14:43:12Z</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/572063#M1110381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;perhaps I don't understand your question but you can use my answer or Clever Anjos answer to change more than one value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you like if you can use nested if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;If(Measures='Units', 'Demand Units', &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;If(Measures='Old', 'New',&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;If(Measures='Old1', 'New1',&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;Measures))) as Measures,&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;BR /&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;or I'm missing something?&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;BR /&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;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 15:27:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Renaming-Records-in-a-Field/m-p/572063#M1110381</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-02-26T15:27: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/572064#M1110382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think u have write script as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;if(measure='units','demand units',measure) as measures,&lt;/P&gt;&lt;P&gt;if(meseure='name','newname',measure) as measure,&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;form&lt;/P&gt;&lt;P&gt;xyz;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will result in duplicate error, u should create nested if like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;if(measure='units','demannd units',&lt;SPAN style="text-decoration: underline;"&gt;if(measure='name','newname',&lt;STRONG&gt;if(measures='name2','newname2',measure)&lt;/STRONG&gt;)&lt;/SPAN&gt;),&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;from xyz;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bold is the innermost if statement&lt;/P&gt;&lt;P&gt;underlined is the last but one&lt;/P&gt;&lt;P&gt;This is how nested if should be written.&lt;/P&gt;&lt;P&gt;hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Sundar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 07:51:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Renaming-Records-in-a-Field/m-p/572064#M1110382</guid>
      <dc:creator>sundarakumar</dc:creator>
      <dc:date>2014-02-27T07:51:28Z</dc:date>
    </item>
  </channel>
</rss>

