<?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 a string in columns in Visualization and Usability</title>
    <link>https://community.qlik.com/t5/Visualization-and-Usability/Renaming-a-string-in-columns/m-p/1227248#M78272</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Open script editor and replace APN field with below given expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14875964158856102" jivemacro_uid="_14875964158856102"&gt;
&lt;P&gt;if(APN = 'inet', 'resident', if(APN = 'static', 'corporate', if(APN = 'cvpn', 'test', APN))) AS APN&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Feb 2017 13:15:06 GMT</pubDate>
    <dc:creator>rahulpawarb</dc:creator>
    <dc:date>2017-02-20T13:15:06Z</dc:date>
    <item>
      <title>Renaming a string in columns</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/Renaming-a-string-in-columns/m-p/1227245#M78269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, please help me. I have a column as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="99" style="border: 1px solid rgb(0, 0, 0); width: 100px; height: 48px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;APN&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;inet&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;static&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;cvpn&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to rename it from &lt;SPAN style="color: #545454; font-family: arial, sans-serif; font-size: small;"&gt;'&lt;/SPAN&gt;inet&lt;SPAN style="color: #545454; font-family: arial, sans-serif; font-size: small;"&gt;'&lt;/SPAN&gt; to &lt;SPAN style="color: #545454; font-family: arial, sans-serif; font-size: small;"&gt;'&lt;/SPAN&gt;resident&lt;SPAN style="color: #545454; font-family: arial, sans-serif; font-size: small;"&gt;'&lt;/SPAN&gt;, from &lt;SPAN style="color: #545454; font-family: arial, sans-serif; font-size: small;"&gt;'&lt;/SPAN&gt;static&lt;SPAN style="color: #545454; font-family: arial, sans-serif; font-size: small;"&gt;'&lt;/SPAN&gt; to &lt;SPAN style="color: #545454; font-family: arial, sans-serif; font-size: small;"&gt;'&lt;/SPAN&gt;corporate&lt;SPAN style="color: #545454; font-family: arial, sans-serif; font-size: small;"&gt;'&lt;/SPAN&gt; and from &lt;SPAN style="color: #545454; font-family: arial, sans-serif; font-size: small;"&gt;'&lt;/SPAN&gt;cvpn&lt;SPAN style="color: #545454; font-family: arial, sans-serif; font-size: small;"&gt;'&lt;/SPAN&gt; to &lt;SPAN style="color: #545454; font-family: arial, sans-serif; font-size: small;"&gt;'&lt;/SPAN&gt;test&lt;SPAN style="color: #545454; font-family: arial, sans-serif; font-size: small;"&gt;'&lt;/SPAN&gt;. How can I do this please? Thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2017 12:06:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/Renaming-a-string-in-columns/m-p/1227245#M78269</guid>
      <dc:creator />
      <dc:date>2017-02-20T12:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming a string in columns</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/Renaming-a-string-in-columns/m-p/1227246#M78270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If this is a Field and not a calculated dimension then in your load script create a mapping table before you load the field.&lt;/P&gt;&lt;P&gt;Something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APN_Map:&lt;/P&gt;&lt;P&gt;mapping&lt;/P&gt;&lt;P&gt;Load * inline [&lt;/P&gt;&lt;P&gt;mapfrom, mapto&lt;/P&gt;&lt;P&gt;inet, resident&lt;/P&gt;&lt;P&gt;static, corporate&lt;/P&gt;&lt;P&gt;cvpn, test&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then when you are loading the APN field use&lt;/P&gt;&lt;P&gt;applymap('APN_Map',APN) as APN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2017 12:32:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/Renaming-a-string-in-columns/m-p/1227246#M78270</guid>
      <dc:creator>tcullinane</dc:creator>
      <dc:date>2017-02-20T12:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming a string in columns</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/Renaming-a-string-in-columns/m-p/1227247#M78271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;t1:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; APN&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; inet&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; static&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cvpn&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;NoConcatenate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;load *,&lt;/P&gt;&lt;P&gt;if(WildMatch(APN,'inet'),'resident' ,&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(WildMatch(APN,'static'),'corporate',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(WildMatch(APN, 'cvpn'),'test'))) as APN1&lt;/P&gt;&lt;P&gt;Resident t1;&lt;/P&gt;&lt;P&gt;drop Table t1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2017 12:38:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/Renaming-a-string-in-columns/m-p/1227247#M78271</guid>
      <dc:creator>surendraj</dc:creator>
      <dc:date>2017-02-20T12:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming a string in columns</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/Renaming-a-string-in-columns/m-p/1227248#M78272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Open script editor and replace APN field with below given expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14875964158856102" jivemacro_uid="_14875964158856102"&gt;
&lt;P&gt;if(APN = 'inet', 'resident', if(APN = 'static', 'corporate', if(APN = 'cvpn', 'test', APN))) AS APN&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2017 13:15:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/Renaming-a-string-in-columns/m-p/1227248#M78272</guid>
      <dc:creator>rahulpawarb</dc:creator>
      <dc:date>2017-02-20T13:15:06Z</dc:date>
    </item>
  </channel>
</rss>

