<?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: Calculate Student Journey in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Student-Journey/m-p/2684876#M80554</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="420699" data-lia-user-login="nik1" class="lia-mention lia-mention-user"&gt;nik1&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I have built my measure on top of&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291628" data-lia-user-login="Jihwan_Kim" class="lia-mention lia-mention-user"&gt;Jihwan_Kim&lt;/a&gt;'s sample file. However, as per my understanding&amp;nbsp;of your requirement I followed a completely different approach.&amp;nbsp;&lt;A href="https://www.dropbox.com/t/AMTGGmXFHZTBDa79" target="_blank" rel="noopener"&gt;https://www.dropbox.com/t/AMTGGmXFHZTBDa79&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Count = 
VAR NumberOfCourses = COUNTROWS ( ALLSELECTED ( Course[CourseName] ) )
VAR CurrentDate = MAX ('Date'[Date] )
VAR Completed = 
    FILTER ( 
        ALL ( Data[StudentID] ), 
        VAR TableOnAndBefore = CALCULATETABLE ( Data,'Date'[Date] &amp;lt;= CurrentDate )
        VAR LastCompletedDate = MAXX ( TableOnAndBefore, Data[CompletedDate] )
        RETURN
            COUNTROWS ( TableOnAndBefore ) = NumberOfCourses 
                &amp;amp;&amp;amp; MONTH ( CurrentDate ) = MONTH ( LastCompletedDate )
    )
RETURN
    COUNTROWS ( Completed )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 05 Aug 2022 21:10:38 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2022-08-05T21:10:38Z</dc:date>
    <item>
      <title>Calculate Student Journey</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Student-Journey/m-p/2676804#M80023</link>
      <description>&lt;P&gt;So I need to show student journey - find the number of student completed all the course in each month.&lt;BR /&gt;There are 2 tables.&lt;BR /&gt;1)&amp;nbsp; Courses details(Course master)&amp;nbsp;Columns(ID, CourseName) 1-CourseA, 2-CourseB ...5-CourseE. 5 courses total.&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) Transaction Table. Having details StudentId, CourseID, CompletedDate(DateTimeStamp) etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lets say Student1 completed 2 courses(A and B) in May, 1 course(D) in June, 1 course(C) in July and 1 course(E) in Aug. Student Journey is completed in August.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Total student are 500, some will complete all 5 course in May, some in June etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample Data Screenshot for expected result&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Any help is appreciated&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2022 17:41:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Student-Journey/m-p/2676804#M80023</guid>
      <dc:creator>nik1</dc:creator>
      <dc:date>2022-08-03T17:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Student Journey</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Student-Journey/m-p/2677102#M80031</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="420699" data-lia-user-login="nik1" class="lia-mention lia-mention-user"&gt;nik1&lt;/a&gt; , Assume total courses are 5&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;then&lt;/P&gt;
&lt;P&gt;countx(filter( summarize(Table, Table[Student ID], "_1", calculate(distintcount(Table[CourseName])) ) , [_1] =5), [Student ID])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;calculate(countx(filter( summarize(Table, Table[Student ID], "_1", calculate(distintcount(Table[CourseName])) ) , [_1] =5), [Student ID]), filter(Table, Table[Date] &amp;lt;= selectedvalue(Date[Date]) )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;assuming the date is an independent date table&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2022 03:41:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Student-Journey/m-p/2677102#M80031</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-08-03T03:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Student Journey</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Student-Journey/m-p/2677224#M80043</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file.&lt;/P&gt;
&lt;P&gt;I tried to create a sample pbix file like below. I hope the below can provide some ideas on how to create a solution for your dataset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;All courses finish month: =
FORMAT (
    MAXX (
        GROUPBY (
            Data,
            Data[CompletedDate],
            "@lastcompleteddate", MAXX ( CURRENTGROUP (), Data[CompletedDate] )
        ),
        [@lastcompleteddate]
    ),
    "MMMM-YYYY"
)
&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 03 Aug 2022 05:21:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Student-Journey/m-p/2677224#M80043</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-08-03T05:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Student Journey</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Student-Journey/m-p/2679443#M80189</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;for replying and taking time to help here.&lt;BR /&gt;tried your suggestion but measure did not retun any results.&lt;BR /&gt;I have update the post with sample data screenshot and expected results, if that can give more clarity.&lt;BR /&gt;Apprecaite your help&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2022 17:43:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Student-Journey/m-p/2679443#M80189</guid>
      <dc:creator>nik1</dc:creator>
      <dc:date>2022-08-03T17:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Student Journey</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Student-Journey/m-p/2679447#M80190</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291628" data-lia-user-login="Jihwan_Kim" class="lia-mention lia-mention-user"&gt;Jihwan_Kim&lt;/a&gt;&amp;nbsp;&amp;nbsp;for replying and taking time to help here.&lt;BR /&gt;Update - I tried this solution as well, but results no as expected&lt;BR /&gt;&lt;STRIKE&gt;Did not try you solution since it is not what the expected results&amp;nbsp; are.&lt;/STRIKE&gt;&lt;BR /&gt;I have update the post with sample data screenshot and expected results, if that can give more clarity.&lt;BR /&gt;Apprecaite your help&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2022 16:45:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Student-Journey/m-p/2679447#M80190</guid>
      <dc:creator>nik1</dc:creator>
      <dc:date>2022-08-08T16:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Student Journey</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Student-Journey/m-p/2684876#M80554</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="420699" data-lia-user-login="nik1" class="lia-mention lia-mention-user"&gt;nik1&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I have built my measure on top of&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291628" data-lia-user-login="Jihwan_Kim" class="lia-mention lia-mention-user"&gt;Jihwan_Kim&lt;/a&gt;'s sample file. However, as per my understanding&amp;nbsp;of your requirement I followed a completely different approach.&amp;nbsp;&lt;A href="https://www.dropbox.com/t/AMTGGmXFHZTBDa79" target="_blank" rel="noopener"&gt;https://www.dropbox.com/t/AMTGGmXFHZTBDa79&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Count = 
VAR NumberOfCourses = COUNTROWS ( ALLSELECTED ( Course[CourseName] ) )
VAR CurrentDate = MAX ('Date'[Date] )
VAR Completed = 
    FILTER ( 
        ALL ( Data[StudentID] ), 
        VAR TableOnAndBefore = CALCULATETABLE ( Data,'Date'[Date] &amp;lt;= CurrentDate )
        VAR LastCompletedDate = MAXX ( TableOnAndBefore, Data[CompletedDate] )
        RETURN
            COUNTROWS ( TableOnAndBefore ) = NumberOfCourses 
                &amp;amp;&amp;amp; MONTH ( CurrentDate ) = MONTH ( LastCompletedDate )
    )
RETURN
    COUNTROWS ( Completed )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2022 21:10:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Student-Journey/m-p/2684876#M80554</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-08-05T21:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Student Journey</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Student-Journey/m-p/2688131#M80848</link>
      <description>&lt;P&gt;Thanks you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;the solution is working good.&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is little more tweek required if you can help. We also need to show Cummulative total/Running total for each month.&lt;BR /&gt;Like in the solution file June 2022 has 1 count, July 2022 has 0 count but R.Total for July 2022 should be 1.&lt;BR /&gt;Example -&amp;gt; Current Month Count + previous month total&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2022 20:42:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Student-Journey/m-p/2688131#M80848</guid>
      <dc:creator>nik1</dc:creator>
      <dc:date>2022-08-08T20:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Student Journey</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Student-Journey/m-p/2691440#M81063</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="420699" data-lia-user-login="nik1" class="lia-mention lia-mention-user"&gt;nik1&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Here is the updated file as requested&amp;nbsp;&lt;A href="https://www.dropbox.com/t/3IXKtCQpmt9MwReQ" target="_blank"&gt;https://www.dropbox.com/t/3IXKtCQpmt9MwReQ&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Count = 
VAR CurrentMonth = MAX ( 'Date'[Year Month Number] )
VAR NumberOfCourses = COUNTROWS ( ALLSELECTED ( Course[CourseName] ) )
VAR CurrentDate = MAX ( 'Date'[Date] )
VAR T1 = FILTER ( All ( Data ), Data[CompletedDate] &amp;lt;= CurrentDate )
RETURN
    SUMX ( 
        ALL ( Data[StudentID] ),
        VAR Student = Data[StudentID]
        VAR T2 = FILTER ( T1, Data[StudentID] = Student )
        RETURN
            IF ( COUNTROWS ( T2 ) = NumberOfCourses, 1, 0 )
    )&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 10 Aug 2022 05:18:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Student-Journey/m-p/2691440#M81063</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-08-10T05:18:55Z</dc:date>
    </item>
  </channel>
</rss>

