<?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 Conditional COUNT in an expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Conditional-COUNT-in-an-expression/m-p/339384#M125218</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assume you want to use that expression in the front end, right? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try in a chart object this as expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count(distinct if( X &amp;lt;= 8, Y) )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Mar 2012 22:49:38 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2012-03-06T22:49:38Z</dc:date>
    <item>
      <title>Conditional COUNT in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-COUNT-in-an-expression/m-p/339383#M125217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;I need a variable with a value that comes from a counter that requires a simple condition. Please help me to create this expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;The condition is if a specific table field (X) is&amp;nbsp; &amp;lt;= 8. If yes, the expression most count distinct an other field&amp;nbsp; (Y).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;In SQL it will be like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select COUNT(Y) from TABLE where X &amp;lt;=8&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2012 22:32:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-COUNT-in-an-expression/m-p/339383#M125217</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-06T22:32:51Z</dc:date>
    </item>
    <item>
      <title>Conditional COUNT in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-COUNT-in-an-expression/m-p/339384#M125218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assume you want to use that expression in the front end, right? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try in a chart object this as expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count(distinct if( X &amp;lt;= 8, Y) )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2012 22:49:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-COUNT-in-an-expression/m-p/339384#M125218</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-03-06T22:49:38Z</dc:date>
    </item>
    <item>
      <title>Conditional COUNT in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-COUNT-in-an-expression/m-p/339385#M125219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Worked well. Thanks !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2012 22:52:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-COUNT-in-an-expression/m-p/339385#M125219</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-06T22:52:35Z</dc:date>
    </item>
  </channel>
</rss>

