<?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 Problem with where clause when names have an apostrophe in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-where-clause-when-names-have-an-apostrophe/m-p/1068193#M357025</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to pass ePartner to a where a clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident Sampling1&lt;/P&gt;&lt;P&gt;&amp;nbsp; where ePartner &amp;lt;&amp;gt; '[O'Mara,Jane J]';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried brackets, double quotes and everything else I can think of.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently using this&lt;/P&gt;&lt;H2&gt;Let vPartnerB=chr(39) &amp;amp; chr(91) &amp;amp; peek('ePartner',$(vRand),'Sampling2') &amp;amp; chr(93) &amp;amp; chr(39);&lt;/H2&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But that fails when the name has an apostrophe as shown above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess let's keep it simple and say how can I use a where clause with a name with an apostrophe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where ePartner &amp;lt;&amp;gt; 'O'Mara, Jane J'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Mar 2016 17:22:08 GMT</pubDate>
    <dc:creator>dgreenberg</dc:creator>
    <dc:date>2016-03-24T17:22:08Z</dc:date>
    <item>
      <title>Problem with where clause when names have an apostrophe</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-where-clause-when-names-have-an-apostrophe/m-p/1068193#M357025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to pass ePartner to a where a clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident Sampling1&lt;/P&gt;&lt;P&gt;&amp;nbsp; where ePartner &amp;lt;&amp;gt; '[O'Mara,Jane J]';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried brackets, double quotes and everything else I can think of.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently using this&lt;/P&gt;&lt;H2&gt;Let vPartnerB=chr(39) &amp;amp; chr(91) &amp;amp; peek('ePartner',$(vRand),'Sampling2') &amp;amp; chr(93) &amp;amp; chr(39);&lt;/H2&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But that fails when the name has an apostrophe as shown above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess let's keep it simple and say how can I use a where clause with a name with an apostrophe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where ePartner &amp;lt;&amp;gt; 'O'Mara, Jane J'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2016 17:22:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-where-clause-when-names-have-an-apostrophe/m-p/1068193#M357025</guid>
      <dc:creator>dgreenberg</dc:creator>
      <dc:date>2016-03-24T17:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with where clause when names have an apostrophe</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-where-clause-when-names-have-an-apostrophe/m-p/1068194#M357026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The best I could come up with is the replace the apostrophe with an ` chr(96)&lt;/P&gt;&lt;P&gt;Looks pretty close and doesn't fail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H2&gt;&lt;STRONG&gt;replace(v1,chr(39),chr(96))&lt;/STRONG&gt;&lt;/H2&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2016 18:34:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-where-clause-when-names-have-an-apostrophe/m-p/1068194#M357026</guid>
      <dc:creator>dgreenberg</dc:creator>
      <dc:date>2016-03-24T18:34:30Z</dc:date>
    </item>
  </channel>
</rss>

