<?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: Alias Value containing Apostrophe in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Alias-Value-containing-Apostrophe/m-p/507403#M189753</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So sorry for the delay in marking the correct answer - many thanks, worked perfectly!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Jan 2014 16:23:27 GMT</pubDate>
    <dc:creator>danielle_v</dc:creator>
    <dc:date>2014-01-07T16:23:27Z</dc:date>
    <item>
      <title>Alias Value containing Apostrophe</title>
      <link>https://community.qlik.com/t5/QlikView/Alias-Value-containing-Apostrophe/m-p/507400#M189750</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;In my script, I'm trying to alias the values within a field, as follows;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Equipment = '40DR', '2T', if(Equipment = '20DR', '1T' ......etc........)) as NewField&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is all fine, however one of the values I need to rename is 45'HC.&amp;nbsp; The apostrophe in the middle of the value seems to be creating a problem - when I run the script, it thinks that '45' is the value, and so errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way round this? I've tried surrounding the 45'HC in square brackets but this doesn't work either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help much appreciated!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 12:39:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alias-Value-containing-Apostrophe/m-p/507400#M189750</guid>
      <dc:creator>danielle_v</dc:creator>
      <dc:date>2013-08-20T12:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: Alias Value containing Apostrophe</title>
      <link>https://community.qlik.com/t5/QlikView/Alias-Value-containing-Apostrophe/m-p/507401#M189751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Danielle&lt;/P&gt;&lt;P&gt;in you case I usually use Map and ApplyMap function. try to create a map table like this:&lt;/P&gt;&lt;P&gt;MAP_Equipment:&lt;/P&gt;&lt;P&gt;mapping&lt;/P&gt;&lt;P&gt;LOAD * Inline[&lt;/P&gt;&lt;P&gt;OldName, NewName&lt;/P&gt;&lt;P&gt;40DR, 2T&lt;/P&gt;&lt;P&gt;20DR, 1T&lt;/P&gt;&lt;P&gt;"45'HC", YourValue&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and than use this map like this:&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;ApplyMap('MAP_Equipment', Equipment, 'N/A') as NewField&lt;/P&gt;&lt;P&gt;FROM...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 12:44:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alias-Value-containing-Apostrophe/m-p/507401#M189751</guid>
      <dc:creator>sparur</dc:creator>
      <dc:date>2013-08-20T12:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: Alias Value containing Apostrophe</title>
      <link>https://community.qlik.com/t5/QlikView/Alias-Value-containing-Apostrophe/m-p/507402#M189752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Danielle,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this way: '45' &amp;amp; chr(39) &amp;amp; 'HC'&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;Cesar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 12:48:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alias-Value-containing-Apostrophe/m-p/507402#M189752</guid>
      <dc:creator>cesaraccardi</dc:creator>
      <dc:date>2013-08-20T12:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: Alias Value containing Apostrophe</title>
      <link>https://community.qlik.com/t5/QlikView/Alias-Value-containing-Apostrophe/m-p/507403#M189753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So sorry for the delay in marking the correct answer - many thanks, worked perfectly!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2014 16:23:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alias-Value-containing-Apostrophe/m-p/507403#M189753</guid>
      <dc:creator>danielle_v</dc:creator>
      <dc:date>2014-01-07T16:23:27Z</dc:date>
    </item>
  </channel>
</rss>

