<?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 count(expression) doesn't work in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/count-expression-doesn-t-work/m-p/311681#M1197977</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 think that you need to expand your variable with the dollar sign:&lt;/P&gt;&lt;P&gt;=count(distinct if(min({1} total &amp;lt;PAT_Ipp&amp;gt; MOD_Date_debut)&amp;gt;=$(date_nvx_pat),PAT_Ipp) )&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Mar 2011 15:56:19 GMT</pubDate>
    <dc:creator>fosuzuki</dc:creator>
    <dc:date>2011-03-08T15:56:19Z</dc:date>
    <item>
      <title>count(expression) doesn't work</title>
      <link>https://community.qlik.com/t5/QlikView/count-expression-doesn-t-work/m-p/311680#M1197976</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've got an expression :&lt;/P&gt;&lt;P&gt;=if(min({1} total &amp;lt;PAT_Ipp&amp;gt; MOD_Date_debut)&amp;gt;=date_nvx_pat,PAT_Ipp)&lt;/P&gt;&lt;P&gt;'PAT_ipp' is a field,'MOD_Date_debut' is a field, 'date_nvx_pat' is a variable ('date_nvx_pat'=min(total{$} calendrier_date))&lt;/P&gt;&lt;P&gt;This expression works fine, i manage to see the field 'PAT_Ipp'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I want to count this field PAT_Ipp:&lt;/P&gt;&lt;P&gt;=count(distinct if(min({1} total &amp;lt;PAT_Ipp&amp;gt; MOD_Date_debut)&amp;gt;=date_nvx_pat,PAT_Ipp) )&lt;/P&gt;&lt;P&gt;It doesn't work and the expression editor tells me 'error in expression'. Can you tell me why ??? Because I have similar expressions (but with no variable) which works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2011 15:04:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-expression-doesn-t-work/m-p/311680#M1197976</guid>
      <dc:creator />
      <dc:date>2011-03-08T15:04:36Z</dc:date>
    </item>
    <item>
      <title>count(expression) doesn't work</title>
      <link>https://community.qlik.com/t5/QlikView/count-expression-doesn-t-work/m-p/311681#M1197977</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 think that you need to expand your variable with the dollar sign:&lt;/P&gt;&lt;P&gt;=count(distinct if(min({1} total &amp;lt;PAT_Ipp&amp;gt; MOD_Date_debut)&amp;gt;=$(date_nvx_pat),PAT_Ipp) )&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2011 15:56:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-expression-doesn-t-work/m-p/311681#M1197977</guid>
      <dc:creator>fosuzuki</dc:creator>
      <dc:date>2011-03-08T15:56:19Z</dc:date>
    </item>
    <item>
      <title>count(expression) doesn't work</title>
      <link>https://community.qlik.com/t5/QlikView/count-expression-doesn-t-work/m-p/311682#M1197978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried this with no success. I tried without the variable ('calendrier_date' is a field) :&lt;/P&gt;&lt;P&gt;=if(min({1} total &amp;lt;PAT_Ipp&amp;gt; MOD_Date_debut)&amp;gt;=min(total{$} calendrier_date),PAT_Ipp) &lt;B&gt;WORKS&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count(distinct if(min({1} total &amp;lt;PAT_Ipp&amp;gt; MOD_Date_debut)&amp;gt;=min(total{$} calendrier_date),PAT_Ipp) ) &lt;B&gt;DOESN'T WORK (still same error message)&lt;/B&gt;&lt;/P&gt;&lt;P&gt;An idea ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2011 11:47:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-expression-doesn-t-work/m-p/311682#M1197978</guid>
      <dc:creator />
      <dc:date>2011-03-09T11:47:07Z</dc:date>
    </item>
    <item>
      <title>count(expression) doesn't work</title>
      <link>https://community.qlik.com/t5/QlikView/count-expression-doesn-t-work/m-p/311683#M1197979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I' also tried this with no success :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count({$&amp;lt;Min({1} total &amp;lt;PAT_Ipp&amp;gt; MOD_Date_debut)&amp;gt;=min(total{$} calendrier_date)&amp;gt;} PAT_Ipp)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can someone help me plz ?? thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2011 08:59:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-expression-doesn-t-work/m-p/311683#M1197979</guid>
      <dc:creator />
      <dc:date>2011-03-14T08:59:35Z</dc:date>
    </item>
    <item>
      <title>count(expression) doesn't work</title>
      <link>https://community.qlik.com/t5/QlikView/count-expression-doesn-t-work/m-p/311684#M1197980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;Hi, sorry I forgot to follow up this thread.&lt;/P&gt;&lt;P&gt;The possible problem with yout expression is that you are nesting a min() inside a count() . You cannot directly nest aggregation functions. You have to use the aggr function 'between' them. Something like Count(Aggr(Min(...)..)).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Fernando&lt;/P&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Apr 2011 12:17:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-expression-doesn-t-work/m-p/311684#M1197980</guid>
      <dc:creator>fosuzuki</dc:creator>
      <dc:date>2011-04-02T12:17:57Z</dc:date>
    </item>
  </channel>
</rss>

