<?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 Single quote in a count expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Single-quote-in-a-count-expression/m-p/253449#M1184806</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm new to QlikView and I need help.&lt;/P&gt;&lt;P&gt;I want to count some products agreeing a condition with a single quote.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example : &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "count({$ &amp;lt;CONTRACT={'Négociation en cours en vue d'un contrat'}&amp;gt; } DISTINCT PRODUCT)"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This : "count({$ &amp;lt;CONTRACT={'Négociation en cours en vue d'&amp;amp; chr(39) &amp;amp;'un contrat'}&amp;gt; } DISTINCT PRODUCT)" doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea ?&lt;/P&gt;&lt;P&gt;Thanks !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Oct 2011 10:23:46 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-10-17T10:23:46Z</dc:date>
    <item>
      <title>Single quote in a count expression</title>
      <link>https://community.qlik.com/t5/QlikView/Single-quote-in-a-count-expression/m-p/253449#M1184806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm new to QlikView and I need help.&lt;/P&gt;&lt;P&gt;I want to count some products agreeing a condition with a single quote.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example : &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "count({$ &amp;lt;CONTRACT={'Négociation en cours en vue d'un contrat'}&amp;gt; } DISTINCT PRODUCT)"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This : "count({$ &amp;lt;CONTRACT={'Négociation en cours en vue d'&amp;amp; chr(39) &amp;amp;'un contrat'}&amp;gt; } DISTINCT PRODUCT)" doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea ?&lt;/P&gt;&lt;P&gt;Thanks !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2011 10:23:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Single-quote-in-a-count-expression/m-p/253449#M1184806</guid>
      <dc:creator />
      <dc:date>2011-10-17T10:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: Single quote in a count expression</title>
      <link>https://community.qlik.com/t5/QlikView/Single-quote-in-a-count-expression/m-p/253450#M1184807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At a first glance, what I do is to double quote the whole name:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;Count({&amp;lt; CONTRACT = {"Négociation en cours en vue d'un contrat"} &amp;gt;} DISTINCT PRODUCT)&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Better off if you can create a numeric key for each contract in the load script, so you will never need to use single or double quotes irrespective the value of the field, because you will always use the numeric field in the set analysis. This will perform much better, too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2011 10:27:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Single-quote-in-a-count-expression/m-p/253450#M1184807</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-10-17T10:27:15Z</dc:date>
    </item>
    <item>
      <title>Single quote in a count expression</title>
      <link>https://community.qlik.com/t5/QlikView/Single-quote-in-a-count-expression/m-p/253451#M1184808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hope this&lt;/P&gt;&lt;P&gt;count({$ &amp;lt;CONTRACT={$(='Négociation en cours en vue d'&amp;amp; chr(39) &amp;amp;'un contrat')}&amp;gt;}PRODUCT)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({$ &amp;lt;CONTRACT={"$(='Négociation en cours en vue d'&amp;amp; chr(39) &amp;amp;'un contrat')"}&amp;gt;}PRODUCT)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2011 11:26:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Single-quote-in-a-count-expression/m-p/253451#M1184808</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2011-10-17T11:26:53Z</dc:date>
    </item>
    <item>
      <title>Single quote in a count expression</title>
      <link>https://community.qlik.com/t5/QlikView/Single-quote-in-a-count-expression/m-p/253452#M1184809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Miguel, this works perfectly well.&lt;/P&gt;&lt;P&gt;I take your advise also, I will change my datas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fred&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2011 11:32:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Single-quote-in-a-count-expression/m-p/253452#M1184809</guid>
      <dc:creator />
      <dc:date>2011-10-17T11:32:19Z</dc:date>
    </item>
    <item>
      <title>Single quote in a count expression</title>
      <link>https://community.qlik.com/t5/QlikView/Single-quote-in-a-count-expression/m-p/253453#M1184810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunil. The first solution doesn't work but the second does. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fred&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2011 11:33:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Single-quote-in-a-count-expression/m-p/253453#M1184810</guid>
      <dc:creator />
      <dc:date>2011-10-17T11:33:09Z</dc:date>
    </item>
  </channel>
</rss>

