<?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 pass/fail students in pivot table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/count-pass-fail-students-in-pivot-table/m-p/1004844#M961959</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;!&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please see file attached for a solution i have altered your formula to&lt;/P&gt;&lt;P&gt;Failed 1 Unit = sum(if((Aggr(sum(if(PASS_FAIL = 'F',1,0)), People_ID))=1,1,0))&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Failed 2 Unit = sum(if((Aggr(sum(if(PASS_FAIL = 'F',1,0)), People_ID))=2,1,0))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Failed 3 Unit = sum(if((Aggr(sum(if(PASS_FAIL = 'F',1,0)), People_ID))=3,1,0))&amp;nbsp; .... etc . &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would recomend that you change your script to add a new field that does the count on the back end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use Script Below:&lt;/P&gt;&lt;P&gt;RawLoad:&lt;/P&gt;&lt;P&gt;SQL SELECT "DEGREE" as "Degree",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "EVENT_LONG_NAME" as "Event",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "ACADEMIC_TERM" as "Academic_Term",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "ACADEMIC_YEAR" as "Academic_Year",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "CURRICULUM" as "Curriculum",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "CLASS_LEVEL" as "Class_Level",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "PEOPLE_ID" as "People_ID",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "FINAL_GRADE" as "Grade"&lt;/P&gt;&lt;P&gt;FROM "PCDB_PROD20150906".dbo."VW_TotalRegistration";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT "ACADEMIC_TERM",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "ACADEMIC_YEAR",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "EVENT_ID",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "FINAL_GRADE",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "PASS_FAIL",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "PEOPLE_ID" as "People_ID"&lt;/P&gt;&lt;P&gt;FROM "PCDB_PROD20150906".dbo."VW_Pass/Fail";&lt;/P&gt;&lt;P&gt;Left Join&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;People_ID,&lt;/P&gt;&lt;P&gt;Count(if("PASS_FAIL"= 'F', 1, 0)) as Sub_Failed&lt;/P&gt;&lt;P&gt;Resident RawLoad&lt;/P&gt;&lt;P&gt;Group By People_ID;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Oct 2015 07:39:36 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-10-19T07:39:36Z</dc:date>
    <item>
      <title>count pass/fail students in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/count-pass-fail-students-in-pivot-table/m-p/1004840#M961955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/154543"&gt;maverjannet&lt;/A&gt;‌&lt;A href="https://community.qlik.com/qlik-users/178638"&gt;bunnyqlik&lt;/A&gt;‌ &lt;A href="https://community.qlik.com/qlik-users/61824"&gt;MarcoWedel&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;this is live example for count pass/fail students..&lt;/P&gt;&lt;P&gt;i need to count the failed students in pivot table like the example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 05:55:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-pass-fail-students-in-pivot-table/m-p/1004840#M961955</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-19T05:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: count pass/fail students in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/count-pass-fail-students-in-pivot-table/m-p/1004841#M961956</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;Can you please explain what you want exactly in pivot . &lt;STRONG&gt;Which count ?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 06:05:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-pass-fail-students-in-pivot-table/m-p/1004841#M961956</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-19T06:05:01Z</dc:date>
    </item>
    <item>
      <title>Re: count pass/fail students in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/count-pass-fail-students-in-pivot-table/m-p/1004842#M961957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use this Expression in pivot table &lt;/P&gt;&lt;P&gt;count({&amp;lt;Result_field={"fail"}&amp;gt;}&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Result_field&lt;/SPAN&gt; )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 06:09:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-pass-fail-students-in-pivot-table/m-p/1004842#M961957</guid>
      <dc:creator>ahmar811</dc:creator>
      <dc:date>2015-10-19T06:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: count pass/fail students in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/count-pass-fail-students-in-pivot-table/m-p/1004843#M961958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Ahmar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think it's wrong to use only pass_fail field = fail ?! because i need to count the students which failed in 1 unit only, and 2 units, and 3 units.. so i need something like this:&lt;/P&gt;&lt;P&gt;count(aggr(-(count({&amp;lt;[Pass_Fail]={'f'}&amp;gt;} People_ID) =2), People_ID))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but this expression doesn't give me actual result !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 07:00:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-pass-fail-students-in-pivot-table/m-p/1004843#M961958</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-19T07:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: count pass/fail students in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/count-pass-fail-students-in-pivot-table/m-p/1004844#M961959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;!&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please see file attached for a solution i have altered your formula to&lt;/P&gt;&lt;P&gt;Failed 1 Unit = sum(if((Aggr(sum(if(PASS_FAIL = 'F',1,0)), People_ID))=1,1,0))&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Failed 2 Unit = sum(if((Aggr(sum(if(PASS_FAIL = 'F',1,0)), People_ID))=2,1,0))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Failed 3 Unit = sum(if((Aggr(sum(if(PASS_FAIL = 'F',1,0)), People_ID))=3,1,0))&amp;nbsp; .... etc . &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would recomend that you change your script to add a new field that does the count on the back end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use Script Below:&lt;/P&gt;&lt;P&gt;RawLoad:&lt;/P&gt;&lt;P&gt;SQL SELECT "DEGREE" as "Degree",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "EVENT_LONG_NAME" as "Event",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "ACADEMIC_TERM" as "Academic_Term",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "ACADEMIC_YEAR" as "Academic_Year",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "CURRICULUM" as "Curriculum",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "CLASS_LEVEL" as "Class_Level",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "PEOPLE_ID" as "People_ID",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "FINAL_GRADE" as "Grade"&lt;/P&gt;&lt;P&gt;FROM "PCDB_PROD20150906".dbo."VW_TotalRegistration";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT "ACADEMIC_TERM",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "ACADEMIC_YEAR",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "EVENT_ID",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "FINAL_GRADE",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "PASS_FAIL",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "PEOPLE_ID" as "People_ID"&lt;/P&gt;&lt;P&gt;FROM "PCDB_PROD20150906".dbo."VW_Pass/Fail";&lt;/P&gt;&lt;P&gt;Left Join&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;People_ID,&lt;/P&gt;&lt;P&gt;Count(if("PASS_FAIL"= 'F', 1, 0)) as Sub_Failed&lt;/P&gt;&lt;P&gt;Resident RawLoad&lt;/P&gt;&lt;P&gt;Group By People_ID;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 07:39:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-pass-fail-students-in-pivot-table/m-p/1004844#M961959</guid>
      <dc:creator />
      <dc:date>2015-10-19T07:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: count pass/fail students in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/count-pass-fail-students-in-pivot-table/m-p/1004845#M961961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot for help &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&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;what about this expression to count "Failed at Least One Unit"&amp;nbsp; &amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count(DISTINCT{&amp;lt;Pass_Fail = {'F'}&amp;gt;} People_ID)&lt;/P&gt;&lt;P&gt;can you please send me the right expression because this one is wrong&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regard.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 09:48:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-pass-fail-students-in-pivot-table/m-p/1004845#M961961</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-19T09:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: count pass/fail students in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/count-pass-fail-students-in-pivot-table/m-p/1004846#M961962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;and for the first query you give it to me, when i reload the data in qlikview this error is appear:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script Error:&lt;/P&gt;&lt;P&gt;Field not fount - &amp;lt;PASS_FAIL&amp;gt;&lt;/P&gt;&lt;P&gt;left Join&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;People_IDm&lt;/P&gt;&lt;P&gt;Count(if("PASS_FAIL" ='F',1,0)) as Sub_Failed&lt;/P&gt;&lt;P&gt;Resident RawLoad&lt;/P&gt;&lt;P&gt;Group By People_ID&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 09:55:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-pass-fail-students-in-pivot-table/m-p/1004846#M961962</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-19T09:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: count pass/fail students in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/count-pass-fail-students-in-pivot-table/m-p/1004847#M961964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try &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;&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: 13px;"&gt;Count(if(PASS_FAIL ='F',&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;PASS_FAIL &lt;/SPAN&gt;,0)) as Sub_Failed&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 10:06:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-pass-fail-students-in-pivot-table/m-p/1004847#M961964</guid>
      <dc:creator />
      <dc:date>2015-10-19T10:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: count pass/fail students in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/count-pass-fail-students-in-pivot-table/m-p/1004848#M961965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try &lt;/P&gt;&lt;P&gt;count(DISTINCT if(PASS_FAIL = 'F', People_ID)) or &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;count(DISTINCT{&amp;lt;&lt;SPAN style="font-size: 13.3333px;"&gt;PASS_FAIL &lt;/SPAN&gt;= {'F'}&amp;gt;} People_ID)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 10:07:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-pass-fail-students-in-pivot-table/m-p/1004848#M961965</guid>
      <dc:creator />
      <dc:date>2015-10-19T10:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: count pass/fail students in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/count-pass-fail-students-in-pivot-table/m-p/1004849#M961967</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,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(if((Aggr(sum(if(PASS_FAIL = 'F',1,0)), People_ID))=1,1,0))+&lt;/P&gt;&lt;P&gt;sum(if((Aggr(sum(if(PASS_FAIL = 'F',1,0)), People_ID))=2,1,0))+&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;sum(if((Aggr(sum(if(PASS_FAIL = 'F',1,0)), People_ID))=3,1,0))+&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;sum(if((Aggr(sum(if(PASS_FAIL = 'F',1,0)), People_ID))=4,1,0))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Hope including all failed&amp;nbsp; is the desired value .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Bunny&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 10:18:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-pass-fail-students-in-pivot-table/m-p/1004849#M961967</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-19T10:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: count pass/fail students in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/count-pass-fail-students-in-pivot-table/m-p/1004850#M961969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's work thanks &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;what about [ Passed all unit] i try to use this two expression but it's all wrong &amp;gt;&amp;gt; &lt;/P&gt;&lt;P&gt;=if(Pass_Fail &amp;lt;&amp;gt; 'F',count( Pass_Fail))&lt;/P&gt;&lt;P&gt;=count(DISTINCT if(PASS_FAIL &amp;lt;&amp;gt; 'F', People_ID))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regard.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 10:21:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-pass-fail-students-in-pivot-table/m-p/1004850#M961969</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-19T10:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: count pass/fail students in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/count-pass-fail-students-in-pivot-table/m-p/1004851#M961970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mohammed, maybe with:&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;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;count(DISTINCT People_ID)-&lt;/SPAN&gt;count(DISTINCT{&amp;lt;&lt;SPAN style="font-size: 13.3333px;"&gt;PASS_FAIL &lt;/SPAN&gt;= {'F'}&amp;gt;} People_ID)&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: 13px;"&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: 13px;"&gt;Or:&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: 13px;"&gt;count(DISTINCT People_ID)-count(DISTINCT if(PASS_FAIL &amp;lt;&amp;gt; 'F', People_ID))&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: 13px;"&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: 13px;"&gt;If it can be people_Id without evalutions you should filter those:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;count(DISTINCT&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;{&amp;lt;&lt;SPAN style="font-size: 13.3333px;"&gt;PASS_FAIL &lt;/SPAN&gt;= {'F','P'}&amp;gt;}&lt;/SPAN&gt; People_ID)-&lt;/SPAN&gt;count(DISTINCT{&amp;lt;&lt;SPAN style="font-size: 13.3333px;"&gt;PASS_FAIL &lt;/SPAN&gt;= {'F'}&amp;gt;} People_ID)&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: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 10:34:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-pass-fail-students-in-pivot-table/m-p/1004851#M961970</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-10-19T10:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: count pass/fail students in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/count-pass-fail-students-in-pivot-table/m-p/1004852#M961971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if i was you i would use: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count(distinct if((Aggr(sum(if(PASS_FAIL = 'F',1,0)), People_ID))=0,People_ID,0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason being, we want to calculate this over People_ID. Hope that makes sense. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RL &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 10:39:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-pass-fail-students-in-pivot-table/m-p/1004852#M961971</guid>
      <dc:creator />
      <dc:date>2015-10-19T10:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: count pass/fail students in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/count-pass-fail-students-in-pivot-table/m-p/1004853#M961972</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;There at total it should be passed + Failed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because there are some records which are not either comes under &lt;EM&gt;&lt;STRONG&gt;Passed or Failed&lt;/STRONG&gt;&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 10:42:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-pass-fail-students-in-pivot-table/m-p/1004853#M961972</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-19T10:42:34Z</dc:date>
    </item>
  </channel>
</rss>

