<?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: Unable to get count of students who have submitted all assignments using DAX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unable-to-get-count-of-students-who-have-submitted-all/m-p/3881559#M151509</link>
    <description>Hey, It worked. Thanks a lot. Could you please explain why it was not working earlier, because as per my understanding that is also the same thing.</description>
    <pubDate>Wed, 01 May 2024 06:48:58 GMT</pubDate>
    <dc:creator>Aksh_1234</dc:creator>
    <dc:date>2024-05-01T06:48:58Z</dc:date>
    <item>
      <title>Unable to get count of students who have submitted all assignments using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unable-to-get-count-of-students-who-have-submitted-all/m-p/3879657#M151454</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table in which there are multiple entries of some students and what is the status of their subjects whether they have submitted the assignments or not.&lt;/P&gt;&lt;P&gt;And I have a dim table for all the subjects from which I can do DISTINCTCOUNT to check the total number of subjects/assignments. Now,&amp;nbsp; I want to find out the number of students who have completed all the assignment.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table looks like this:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;StudentName&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Assignment&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Status&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;s1&lt;/TD&gt;&lt;TD&gt;assignment1&lt;/TD&gt;&lt;TD&gt;completed&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;s2&lt;/TD&gt;&lt;TD&gt;assignment1&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;completed&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;s2&lt;/TD&gt;&lt;TD&gt;assignment2&lt;/TD&gt;&lt;TD&gt;pending&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;s3&lt;/TD&gt;&lt;TD&gt;assignment1&lt;/TD&gt;&lt;TD&gt;completed&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;s3&lt;/TD&gt;&lt;TD&gt;assignment2&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;completed&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lets say that we only have two assignments in the dim table. Now, if we see the example above, only student3 have completed both the assignments. So, my final measure should give the result as 1 as only one student has completed all assignments. This is just an example subset of data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The measure, that I am using is -&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;Students Completed =&lt;BR /&gt;VAR StudentwiseAssignmentSubmitted =&lt;BR /&gt;SUMMARIZE (&lt;BR /&gt;'Table',&lt;BR /&gt;'Table'[StudentName],&lt;BR /&gt;"SubmittedAssignmentCount",&lt;BR /&gt;CALCULATE (&lt;BR /&gt;DISTINCTCOUNT ( 'Table'[Assignment] ),&lt;BR /&gt;FILTER ( 'Table', 'Table'[Status] = "Completed" )&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;VAR TotalAssignments =&lt;BR /&gt;DISTINCTCOUNT ( dimAssignment[AssignmentName] )&lt;BR /&gt;RETURN&lt;BR /&gt;CALCULATE (&lt;BR /&gt;COUNTROWS ( StudentwiseAssignmentSubmitted ),&lt;BR /&gt;FILTER (&lt;BR /&gt;StudentwiseAssignmentSubmitted,&lt;BR /&gt;[SubmittedAssignmentCount] = TotalAssignments&lt;BR /&gt;)&lt;BR /&gt;)&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;But somehow this measure is always giving me total number of students present in the table. Tried various approaches but not getting the correct answer&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Can anybody please help where it is going wrong?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 30 Apr 2024 13:28:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unable-to-get-count-of-students-who-have-submitted-all/m-p/3879657#M151454</guid>
      <dc:creator>Aksh_1234</dc:creator>
      <dc:date>2024-04-30T13:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get count of students who have submitted all assignments using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unable-to-get-count-of-students-who-have-submitted-all/m-p/3880077#M151468</link>
      <description>&lt;P&gt;Remove everything in the RETURN statement and replace it with :&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;COUNTROWS ( FILTER (StudentwiseAssignmentSubmitted, [SubmittedAssignmentCount] = _TotalAssignments) )&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 30 Apr 2024 15:43:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unable-to-get-count-of-students-who-have-submitted-all/m-p/3880077#M151468</guid>
      <dc:creator>HotChilli</dc:creator>
      <dc:date>2024-04-30T15:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get count of students who have submitted all assignments using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unable-to-get-count-of-students-who-have-submitted-all/m-p/3881559#M151509</link>
      <description>Hey, It worked. Thanks a lot. Could you please explain why it was not working earlier, because as per my understanding that is also the same thing.</description>
      <pubDate>Wed, 01 May 2024 06:48:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unable-to-get-count-of-students-who-have-submitted-all/m-p/3881559#M151509</guid>
      <dc:creator>Aksh_1234</dc:creator>
      <dc:date>2024-05-01T06:48:58Z</dc:date>
    </item>
  </channel>
</rss>

