<?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 Chart Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Conditional-Count-in-Chart-Expression/m-p/214465#M68012</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Instead of using&lt;/P&gt;&lt;P&gt;=(If([Elapsed Days]&amp;lt;=100,Count(DISTINCT Number))/Count(DISTINCT Number))&lt;/P&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;=Count(DISTINCT if([Elapsed Days]&amp;lt;=100,Number))/Count(DISTINCT Number))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Best Regards,&lt;/P&gt;&lt;P&gt;Kuldeep Tak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Feb 2011 06:01:36 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-02-14T06:01:36Z</dc:date>
    <item>
      <title>Conditional Count in Chart Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Count-in-Chart-Expression/m-p/214464#M68011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to create a Gauge chart that will show the percentage of the total records that meet a certain condition. In this case the condition is the elapse days are less than a defined value.&lt;/P&gt;&lt;P&gt;I am using the following expression.&lt;/P&gt;&lt;P&gt;=(If([Elapsed Days]&amp;lt;=100,Count(DISTINCT Number))/Count(DISTINCT Number))&lt;/P&gt;&lt;P&gt;The issue seems to be when i have multiple records selected returned the expression does not a value. If i select a single value where [Elapsed Days] is less than 100 i get 100%. If I select a single value that is 100 or greater than [Elapsed Days] then the expression does not return a value.&lt;/P&gt;&lt;P&gt;Any help would be appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Feb 2011 05:43:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Count-in-Chart-Expression/m-p/214464#M68011</guid>
      <dc:creator />
      <dc:date>2011-02-14T05:43:25Z</dc:date>
    </item>
    <item>
      <title>Conditional Count in Chart Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Count-in-Chart-Expression/m-p/214465#M68012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Instead of using&lt;/P&gt;&lt;P&gt;=(If([Elapsed Days]&amp;lt;=100,Count(DISTINCT Number))/Count(DISTINCT Number))&lt;/P&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;=Count(DISTINCT if([Elapsed Days]&amp;lt;=100,Number))/Count(DISTINCT Number))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Best Regards,&lt;/P&gt;&lt;P&gt;Kuldeep Tak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Feb 2011 06:01:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Count-in-Chart-Expression/m-p/214465#M68012</guid>
      <dc:creator />
      <dc:date>2011-02-14T06:01:36Z</dc:date>
    </item>
  </channel>
</rss>

