<?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: Help with running totals (cumulative daily attendance) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-running-totals-cumulative-daily-attendance/m-p/3671853#M142436</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="683332" data-lia-user-login="JoKelly3" class="lia-mention lia-mention-user"&gt;JoKelly3&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on the sample and description you provided,&lt;BR /&gt;you might consider using the following code to create two Calculated Columns.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Cumulative Present = CALCULATE(SUM('Table'[Present]),
                               FILTER(ALLEXCEPT('Table','Table'[Unique OD]),
                               'Table'[Date] &amp;lt;= EARLIER('Table'[Date]))
                               )&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Cumulative Possible = CALCULATE(SUM('Table'[Possible]),
                                FILTER(ALLEXCEPT('Table','Table'[Unique OD]),
                                'Table'[Date] &amp;lt;= EARLIER('Table'[Date]))
                                )&lt;/LI-CODE&gt;
&lt;P&gt;Result is as below.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Yulia Yan&lt;BR /&gt;&lt;BR /&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Thu, 01 Feb 2024 03:19:21 GMT</pubDate>
    <dc:creator>v-weiyan1-msft</dc:creator>
    <dc:date>2024-02-01T03:19:21Z</dc:date>
    <item>
      <title>Help with running totals (cumulative daily attendance)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-running-totals-cumulative-daily-attendance/m-p/3670282#M142347</link>
      <description>&lt;P&gt;I am fairly new to Power Bi so forgive my ignorance. I have some student attendance data and I would like to see it cumulatively (the reason for this is I have another calculation to work out the number of students per week that are below 90% attendance which would run from the cumulative attendance). I need a way to calculate the 'cumulative present' and 'cumulative possible' for each student for each day. I've tried a few different ways so far but not had any luck with any of them.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would be massively grateful for some help!- Thanks, Jo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my data:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Date&amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Unique ID&amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Present&amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Possible&amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Cumulative Present&amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Cumulative Possible&amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Attendance&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;05/09/2023&lt;/TD&gt;&lt;TD&gt;101&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;cumulative present/cumulative possible&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;05/09/2023&lt;/TD&gt;&lt;TD&gt;102&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;cumulative present/cumulative possible&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;05/09/2023&lt;/TD&gt;&lt;TD&gt;103&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;cumulative present/cumulative possible&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;05/09/2023&lt;/TD&gt;&lt;TD&gt;104&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;cumulative present/cumulative possible&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;06/09/2023&lt;/TD&gt;&lt;TD&gt;101&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;cumulative present/cumulative possible&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;06/09/2023&lt;/TD&gt;&lt;TD&gt;102&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;cumulative present/cumulative possible&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;06/09/2023&lt;/TD&gt;&lt;TD&gt;103&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;cumulative present/cumulative possible&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;06/09/2023&lt;/TD&gt;&lt;TD&gt;104&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;cumulative present/cumulative possible&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Wed, 31 Jan 2024 12:45:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-running-totals-cumulative-daily-attendance/m-p/3670282#M142347</guid>
      <dc:creator>JoKelly3</dc:creator>
      <dc:date>2024-01-31T12:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: Help with running totals (cumulative daily attendance)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-running-totals-cumulative-daily-attendance/m-p/3670448#M142352</link>
      <description>&lt;P&gt;I have now managed to create a grouped index column in Power Query but I still need to create the cumulative totals&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2024 13:57:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-running-totals-cumulative-daily-attendance/m-p/3670448#M142352</guid>
      <dc:creator>JoKelly3</dc:creator>
      <dc:date>2024-01-31T13:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: Help with running totals (cumulative daily attendance)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-running-totals-cumulative-daily-attendance/m-p/3671853#M142436</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="683332" data-lia-user-login="JoKelly3" class="lia-mention lia-mention-user"&gt;JoKelly3&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on the sample and description you provided,&lt;BR /&gt;you might consider using the following code to create two Calculated Columns.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Cumulative Present = CALCULATE(SUM('Table'[Present]),
                               FILTER(ALLEXCEPT('Table','Table'[Unique OD]),
                               'Table'[Date] &amp;lt;= EARLIER('Table'[Date]))
                               )&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Cumulative Possible = CALCULATE(SUM('Table'[Possible]),
                                FILTER(ALLEXCEPT('Table','Table'[Unique OD]),
                                'Table'[Date] &amp;lt;= EARLIER('Table'[Date]))
                                )&lt;/LI-CODE&gt;
&lt;P&gt;Result is as below.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Yulia Yan&lt;BR /&gt;&lt;BR /&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2024 03:19:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-running-totals-cumulative-daily-attendance/m-p/3671853#M142436</guid>
      <dc:creator>v-weiyan1-msft</dc:creator>
      <dc:date>2024-02-01T03:19:21Z</dc:date>
    </item>
  </channel>
</rss>

