<?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 in Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-in-Expression/m-p/1104731#M917153</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Although, I am not going to force you to reconsider, but just so you know the if statement is not performance friendly. The reason the above expression might not have worked for you is because you might have copy pasted my expression. Your field name is Student Number and not STUDENT NUMBER (which you gave in your initial post). But if you try this, it might work for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=COUNT({&amp;lt;[Student Number]= {"=SCHOOL = HOME_SCHOOL"}&amp;gt;} DISTINCT [Student Number])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QlikView is case sensitive and those two fields are read and understood differently by qlikview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am attaching a sample for you to look at.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/124013_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 May 2016 18:14:02 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-05-09T18:14:02Z</dc:date>
    <item>
      <title>Count in Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Count-in-Expression/m-p/1104726#M917148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;please help to solve the issue: &lt;/P&gt;&lt;P&gt;I need to count students with school = home_school only. &lt;/P&gt;&lt;P&gt;Statement : =&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;COUNT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;SCHOOL&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;HOME_SCHOOL&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;} DISTINCT &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[STUDENT NUMBER]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;does not give any results.&lt;/P&gt;&lt;P&gt;If I hard code it works&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/123970_pastedImage_4.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/123969_pastedImage_3.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;L&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-in-Expression/m-p/1104726#M917148</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Count in Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Count-in-Expression/m-p/1104727#M917149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;Can you try this may be:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #575757;"&gt;&lt;STRONG&gt;=&lt;/STRONG&gt;&lt;STRONG&gt;COUNT(&lt;SPAN style="color: #ff0000;"&gt;{&amp;lt;[STUDENT NUMBER] = {"=SCHOOL = HOME_SCHOOL"}&amp;gt;}&lt;/SPAN&gt; DISTINCT [STUDENT NUMBER]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;) &lt;/SPAN&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2016 17:00:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-in-Expression/m-p/1104727#M917149</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-09T17:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: Count in Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Count-in-Expression/m-p/1104728#M917150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;your statement returns the same result as &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;COUNT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Student Number]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;), means it doesn't work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;This one works:&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;COUNT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;HOME_SCHOOL&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;SCHOOL&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Student Number]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;What are the rules? Where to learn the syntax from?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; L&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2016 17:18:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-in-Expression/m-p/1104728#M917150</guid>
      <dc:creator />
      <dc:date>2016-05-09T17:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: Count in Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Count-in-Expression/m-p/1104729#M917151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #575757;"&gt;&lt;STRONG&gt;=COUNT(&lt;SPAN style="color: #ff0000;"&gt;{&amp;lt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #575757;"&gt;&lt;STRONG style="color: #ff0000;"&gt;SCHOOL &lt;/STRONG&gt;&lt;/SPAN&gt; = {"=SCHOOL = HOME_SCHOOL"}&amp;gt;}&lt;/SPAN&gt; DISTINCT [STUDENT NUMBER]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;) &lt;/SPAN&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2016 17:28:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-in-Expression/m-p/1104729#M917151</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-05-09T17:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: Count in Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Count-in-Expression/m-p/1104730#M917152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;This one works:&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;COUNT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;HOME_SCHOOL&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;SCHOOL&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Student Number]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2016 17:35:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-in-Expression/m-p/1104730#M917152</guid>
      <dc:creator />
      <dc:date>2016-05-09T17:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: Count in Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Count-in-Expression/m-p/1104731#M917153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Although, I am not going to force you to reconsider, but just so you know the if statement is not performance friendly. The reason the above expression might not have worked for you is because you might have copy pasted my expression. Your field name is Student Number and not STUDENT NUMBER (which you gave in your initial post). But if you try this, it might work for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=COUNT({&amp;lt;[Student Number]= {"=SCHOOL = HOME_SCHOOL"}&amp;gt;} DISTINCT [Student Number])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QlikView is case sensitive and those two fields are read and understood differently by qlikview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am attaching a sample for you to look at.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/124013_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2016 18:14:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-in-Expression/m-p/1104731#M917153</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-09T18:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: Count in Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Count-in-Expression/m-p/1104732#M917154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny, I am going to consider your new statement and your advise.&lt;/P&gt;&lt;P&gt;The prev one didn't work because it is not the same and I did change &lt;STRONG&gt;STUDENT NUMBER&lt;/STRONG&gt; to &lt;STRONG&gt;Student Number.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Old:&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="color: #575757; font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;=COUNT(&lt;SPAN style="color: #ff0000;"&gt;{&amp;lt;&lt;SPAN style="color: #575757; font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;SCHOOL &lt;/SPAN&gt; = {"=SCHOOL = HOME_SCHOOL"}&amp;gt;}&lt;/SPAN&gt; DISTINCT [STUDENT NUMBER]&lt;/SPAN&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;New: =COUNT({&amp;lt;[Student Number]= {"=SCHOOL = HOME_SCHOOL"}&amp;gt;} DISTINCT [Student Number])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;Please advise on where to read/learn about scripting rules? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;Thanks again!!!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2016 18:29:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-in-Expression/m-p/1104732#M917154</guid>
      <dc:creator />
      <dc:date>2016-05-09T18:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: Count in Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Count-in-Expression/m-p/1104733#M917155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please explain your solution:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=COUNT({&amp;lt;[Student Number]= {"=SCHOOL = HOME_SCHOOL"}&amp;gt;} DISTINCT [Student Number])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;L&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2016 18:32:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-in-Expression/m-p/1104733#M917155</guid>
      <dc:creator />
      <dc:date>2016-05-09T18:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: Count in Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Count-in-Expression/m-p/1104734#M917156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did have Student Number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/124021_Capture.PNG" style="height: 197px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But that is beside the point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my expression, I am checking for each Student Number only include those where School = Home_School. It is like a search string on the Student Number field. The key here is that the field you are searching on should be unique for the search you are trying to do. If for a reason you have 2 student numbers where once it matches and other time it doesn't , then the above expression won't work. Example for where it won't work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Student Number, SCHOOL, HOME_SCHOOL&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;10, 2522, 2522&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;10, 2865, 2522&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Above we see same Student Number associated with two combination. This won't work now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this make sense &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2016 18:38:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-in-Expression/m-p/1104734#M917156</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-09T18:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: Count in Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Count-in-Expression/m-p/1104735#M917157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;It does make sense and it wasn't your statement I was referring to.&lt;/P&gt;&lt;P&gt;Where to learn the syntax from?&lt;/P&gt;&lt;P&gt;Please advise.&lt;/P&gt;&lt;P&gt;L&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2016 18:57:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-in-Expression/m-p/1104735#M917157</guid>
      <dc:creator />
      <dc:date>2016-05-09T18:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: Count in Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Count-in-Expression/m-p/1104736#M917158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This should do, in your scenario:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count({$&amp;lt;HOME_SCHOOL = p(SCHOOL)&amp;gt;} [Student Number])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2016 19:13:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-in-Expression/m-p/1104736#M917158</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2016-05-09T19:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: Count in Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Count-in-Expression/m-p/1104737#M917159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this out. Added a new row of data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * Inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Student Number, HOME_SCHOOL, SCHOOL&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;10417, 2522, 2522&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;78894, 2856, 2522&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;91282, 2522, 2522&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;23133, 2522, 2522&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;78256, 2522, 2522&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;46204, 2522, 2522&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;55106, 2522, 2522&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt;26372, 2522, 2856&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The output should still remain 6, I believe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/124030_Capture.PNG" style="height: 354px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2016 19:15:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-in-Expression/m-p/1104737#M917159</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-09T19:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: Count in Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Count-in-Expression/m-p/1104738#M917160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Apologize &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;You can learn some set analysis from the attached. But more advance stuff can be learned as you play around with it and try to help others on the community.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2016 19:20:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-in-Expression/m-p/1104738#M917160</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-09T19:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: Count in Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Count-in-Expression/m-p/1104739#M917161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the business rule might help:&lt;/P&gt;&lt;P&gt;Every student can have only one HOME_SCHOOL but many SCHOOLs (enrolment school) &lt;/P&gt;&lt;P&gt;Every SCHOOL counts students only if HOME_SCHOOL = SCHOOL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2016 19:51:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-in-Expression/m-p/1104739#M917161</guid>
      <dc:creator />
      <dc:date>2016-05-09T19:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: Count in Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Count-in-Expression/m-p/1104740#M917162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If a student can have a multiple SCHOOLs, you need to create a new key, Something like this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AutoNumber([Student Number]&amp;amp;HOME_SCHOOL&amp;amp;SCHOOL) as Key&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and use this as your expression:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=COUNT({&amp;lt;Key= {"=SCHOOL = HOME_SCHOOL"}&amp;gt;} DISTINCT [Student Number])&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2016 19:59:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-in-Expression/m-p/1104740#M917162</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-09T19:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: Count in Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Count-in-Expression/m-p/1104741#M917163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Sunny for your time!&lt;/P&gt;&lt;P&gt;L&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2016 13:35:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-in-Expression/m-p/1104741#M917163</guid>
      <dc:creator />
      <dc:date>2016-05-10T13:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: Count in Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Count-in-Expression/m-p/1104742#M917164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did it final work out for you?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I would ask you to mark any helpful answers.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-14806"&gt;Qlik Community Tip: Marking Replies as Correct or Helpful&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2016 13:37:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-in-Expression/m-p/1104742#M917164</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-10T13:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: Count in Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Count-in-Expression/m-p/1104743#M917167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It did work out for me.&lt;/P&gt;&lt;P&gt;Thanks for the Marking Replies reminder. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2016 14:40:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-in-Expression/m-p/1104743#M917167</guid>
      <dc:creator />
      <dc:date>2016-05-10T14:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: Count in Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Count-in-Expression/m-p/1104744#M917171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am glad it finally did &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2016 14:42:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-in-Expression/m-p/1104744#M917171</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-10T14:42:30Z</dc:date>
    </item>
  </channel>
</rss>

