<?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 Re: count expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/count-expression/m-p/780352#M276516</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;Try this it will help you,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Chart Properties&amp;nbsp; -&amp;gt; Expressions -&amp;gt; Click on + symbol of expression and select text colour -&amp;gt; Give this statement in that&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Count(Distinct FileName) = Aggr (Count(Distinct FileName),FileName), Red(),Green())&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Amarnath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Mar 2015 04:48:49 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-03-16T04:48:49Z</dc:date>
    <item>
      <title>count expression</title>
      <link>https://community.qlik.com/t5/QlikView/count-expression/m-p/780346#M276510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry, I couldn't think of a better title &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have various EnvNames in different files. Now I want to find out if EnvNames are missing in a file.&lt;/P&gt;&lt;P&gt;In below screenshot I have a straight table. I would like to change the background color of the 2nd column if the count&lt;/P&gt;&lt;P&gt;is below the count of all filenames. &lt;/P&gt;&lt;P&gt;So in this example only &lt;STRONG&gt;EnvA&lt;/STRONG&gt; with a count of &lt;STRONG&gt;4&lt;/STRONG&gt; would be green, the rest is red.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't figure out the if-statement to get this job done.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="test.JPG" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/80441_test.JPG" style="height: 183px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you can help me out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Thorsten&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 07:47:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-expression/m-p/780346#M276510</guid>
      <dc:creator />
      <dc:date>2015-03-11T07:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: count expression</title>
      <link>https://community.qlik.com/t5/QlikView/count-expression/m-p/780347#M276511</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;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chart Properties&amp;nbsp; -&amp;gt; Expressions -&amp;gt; Click on + symbol of expression and select Background -&amp;gt; Give this statement in that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(Count(Distinct FileName) = 4, &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Green(), &lt;/SPAN&gt;Red())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not working attach some sample file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 07:57:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-expression/m-p/780347#M276511</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-03-11T07:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: count expression</title>
      <link>https://community.qlik.com/t5/QlikView/count-expression/m-p/780348#M276512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="bgColour.png" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/80445_bgColour.png" style="width: 620px; height: 549px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 08:09:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-expression/m-p/780348#M276512</guid>
      <dc:creator>chrislofthouse</dc:creator>
      <dc:date>2015-03-11T08:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: count expression</title>
      <link>https://community.qlik.com/t5/QlikView/count-expression/m-p/780349#M276513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;both of you use the hardcoded &lt;STRONG&gt;4&lt;/STRONG&gt;. How can I change this into an expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use count(DISTINCT FileName) everything turns green. I also tried count( {1} [FileName]) without luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 08:43:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-expression/m-p/780349#M276513</guid>
      <dc:creator />
      <dc:date>2015-03-12T08:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: count expression</title>
      <link>https://community.qlik.com/t5/QlikView/count-expression/m-p/780350#M276514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;count(total DISTINCT FileName) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 11:21:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-expression/m-p/780350#M276514</guid>
      <dc:creator>chrislofthouse</dc:creator>
      <dc:date>2015-03-12T11:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: count expression</title>
      <link>https://community.qlik.com/t5/QlikView/count-expression/m-p/780351#M276515</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;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;=If(Count(Distinct FileName) = &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;count(TOTAL DISTINCT FileName)&lt;/SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;Green(), &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;Red())&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;Jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 02:44:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-expression/m-p/780351#M276515</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-03-16T02:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: count expression</title>
      <link>https://community.qlik.com/t5/QlikView/count-expression/m-p/780352#M276516</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;Try this it will help you,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Chart Properties&amp;nbsp; -&amp;gt; Expressions -&amp;gt; Click on + symbol of expression and select text colour -&amp;gt; Give this statement in that&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Count(Distinct FileName) = Aggr (Count(Distinct FileName),FileName), Red(),Green())&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Amarnath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 04:48:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-expression/m-p/780352#M276516</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-16T04:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: count expression</title>
      <link>https://community.qlik.com/t5/QlikView/count-expression/m-p/780353#M276517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thorsten,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do This:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Define a Variable&lt;/P&gt;&lt;P&gt;Example : &lt;STRONG&gt;vMax&amp;nbsp; =Max(aggr(Count(EnvName),EnvName))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then,&lt;/P&gt;&lt;P&gt;In chart expressions , expression which gives &lt;STRONG&gt;count&lt;/STRONG&gt; of &lt;STRONG&gt;EnvNames&lt;/STRONG&gt;,&amp;nbsp;&amp;nbsp; define its background as &lt;STRONG&gt; if(Count(EnvName)=vMax,Green(),Red()).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This Works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 05:32:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-expression/m-p/780353#M276517</guid>
      <dc:creator>timanshu</dc:creator>
      <dc:date>2015-03-16T05:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: count expression</title>
      <link>https://community.qlik.com/t5/QlikView/count-expression/m-p/780354#M276518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thorsten,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you let me know how this expression worked:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;=If(Count(Distinct FileName) = &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12px;"&gt;count(TOTAL DISTINCT FileName)&lt;/SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;Green(), &lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;Red())&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;or just attach qvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to make this work but it's not working.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2015 04:53:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-expression/m-p/780354#M276518</guid>
      <dc:creator>timanshu</dc:creator>
      <dc:date>2015-03-19T04:53:27Z</dc:date>
    </item>
  </channel>
</rss>

