<?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: If Function with a special character in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-Function-with-a-special-character/m-p/1288985#M865181</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Directly input as text&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;purgechar('☆TODAY' ,'☆')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Dec 2016 08:41:17 GMT</pubDate>
    <dc:creator>vinieme12</dc:creator>
    <dc:date>2016-12-20T08:41:17Z</dc:date>
    <item>
      <title>If Function with a special character</title>
      <link>https://community.qlik.com/t5/QlikView/If-Function-with-a-special-character/m-p/1288979#M865175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im having trouble with an If( Function in my Qlikview Load.&lt;/P&gt;&lt;P&gt;In the datafiles, its possible to select 'favorite' fields that are marked with a star symbol in the &lt;BR /&gt;Qlikview Logfiles. The character code for that star is: chr(9734)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2016-12-20_8-04-36.png" class="jive-image image-1" height="212" src="https://community.qlik.com/legacyfs/online/147116_2016-12-20_8-04-36.png" style="height: 211.987px; width: 449px;" width="449" /&gt; &lt;/P&gt;&lt;P&gt;Now I want it to be possible that I delete the star symbol when its occurring in the table value.&lt;BR /&gt;I used an If( function like this:&lt;STRONG&gt; If(Wildmatch(Message, chr(9734)), PurgeChar(Message, chr(9734)))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;But it didn't work. &lt;BR /&gt;Maybe its part of the If function or the Purgechar that wont work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone can help me with this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ivo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Function-with-a-special-character/m-p/1288979#M865175</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: If Function with a special character</title>
      <link>https://community.qlik.com/t5/QlikView/If-Function-with-a-special-character/m-p/1288980#M865176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you mean, you want to delete Star from that list?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;Update&lt;/STRONG&gt;: Just use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;PurgeChar(Message, chr(9734))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can play round to achieve this &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 07:28:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Function-with-a-special-character/m-p/1288980#M865176</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2016-12-20T07:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: If Function with a special character</title>
      <link>https://community.qlik.com/t5/QlikView/If-Function-with-a-special-character/m-p/1288981#M865177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or &lt;/P&gt;&lt;P&gt;replace(&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Message,chr(9734),''&lt;/STRONG&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 07:52:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Function-with-a-special-character/m-p/1288981#M865177</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2016-12-20T07:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: If Function with a special character</title>
      <link>https://community.qlik.com/t5/QlikView/If-Function-with-a-special-character/m-p/1288982#M865178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply&lt;/P&gt;&lt;P&gt;I've tried different things with the PurgeChar function, but it doesnt work...&lt;/P&gt;&lt;P&gt;I dont know if its because of the chr(9734) or something else.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 07:56:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Function-with-a-special-character/m-p/1288982#M865178</guid>
      <dc:creator />
      <dc:date>2016-12-20T07:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: If Function with a special character</title>
      <link>https://community.qlik.com/t5/QlikView/If-Function-with-a-special-character/m-p/1288983#M865179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I really think it has to do with they function&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; itself.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If I put in another character or line of text, it doesnt work either.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 08:15:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Function-with-a-special-character/m-p/1288983#M865179</guid>
      <dc:creator />
      <dc:date>2016-12-20T08:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: If Function with a special character</title>
      <link>https://community.qlik.com/t5/QlikView/If-Function-with-a-special-character/m-p/1288984#M865180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you still using the Wildmatch function? If so you need to change that a bit:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(Wildmatch(Message, &lt;STRONG&gt;'*' &amp;amp; chr(9734) &amp;amp; '*'&lt;/STRONG&gt;), PurgeChar(Message, chr(9734)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise you'll only get a match in Message contains only that star character and no other text at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The purgechar function works in a test here. If it doesn't work for you then perhaps the star character you see is not chr(9734) but another character.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also try the keepchar function: Keepchar(Message, '0123456789abcdef&lt;EM&gt;...etc...&lt;/EM&gt;xyzABCDE&lt;EM&gt;....etc...&lt;/EM&gt;XYZ')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 08:32:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Function-with-a-special-character/m-p/1288984#M865180</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-12-20T08:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: If Function with a special character</title>
      <link>https://community.qlik.com/t5/QlikView/If-Function-with-a-special-character/m-p/1288985#M865181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Directly input as text&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;purgechar('☆TODAY' ,'☆')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 08:41:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Function-with-a-special-character/m-p/1288985#M865181</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2016-12-20T08:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: If Function with a special character</title>
      <link>https://community.qlik.com/t5/QlikView/If-Function-with-a-special-character/m-p/1288986#M865182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PurgeChar() should work for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is still not working then as Gysbert said, it might be some other character.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using Vineeth's exp, i.e directly copy that character in your exp.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 08:51:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Function-with-a-special-character/m-p/1288986#M865182</guid>
      <dc:creator>varshavig12</dc:creator>
      <dc:date>2016-12-20T08:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: If Function with a special character</title>
      <link>https://community.qlik.com/t5/QlikView/If-Function-with-a-special-character/m-p/1288987#M865183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for all the replies guys!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I figured out how to solve my problem by using multiple Replace() functions.&lt;BR /&gt;&lt;SPAN style="text-align: center; font-size: 10pt; line-height: 1.5em;"&gt;That, because the original message line was "Chart: 'Star symbol' text.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-align: center; font-size: 10pt; line-height: 1.5em;"&gt;I replaced the 'Chart: Star symbol&lt;/SPAN&gt;&lt;SPAN style="text-align: center; font-size: 10pt; line-height: 1.5em;"&gt;' part, the 'Chart: ' part and the 'star symbol' part in this order.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-align: center; font-size: 10pt; line-height: 1.5em;"&gt;Replace(Replace(Replace('_Chart: ☆ ',''), '_Chart: ', ''), '☆ ', '')&amp;nbsp; &amp;lt;- Like this&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 08:52:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Function-with-a-special-character/m-p/1288987#M865183</guid>
      <dc:creator />
      <dc:date>2016-12-20T08:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: If Function with a special character</title>
      <link>https://community.qlik.com/t5/QlikView/If-Function-with-a-special-character/m-p/1288988#M865184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;Even this will work , purgechar(MESSAGE ,'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px; text-align: center; background-color: #f2f2f2;"&gt;_Chart: ☆'&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; font-size: 12px; background-color: #f2f2f2;"&gt;No need for so many Replace()'s&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 08:56:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Function-with-a-special-character/m-p/1288988#M865184</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2016-12-20T08:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: If Function with a special character</title>
      <link>https://community.qlik.com/t5/QlikView/If-Function-with-a-special-character/m-p/1288989#M865185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This doesnt work unfortunately, because it will also do a purgechar on every single _, C, h, a, r, t,&amp;nbsp; too.&lt;BR /&gt;Theres a text behind the Chart: &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px; text-align: center; background-color: #f2f2f2;"&gt;☆ that get completely messed up by the purgechar function, so I guess its best to go with the multiple replaces for now.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px; text-align: center; background-color: #f2f2f2;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;Thanks for your input though! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 09:03:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Function-with-a-special-character/m-p/1288989#M865185</guid>
      <dc:creator />
      <dc:date>2016-12-20T09:03:47Z</dc:date>
    </item>
  </channel>
</rss>

