<?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: Calculating days in school in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-days-in-school/m-p/1213615#M19574</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="244894" data-lia-user-login="michelleburke1" class="lia-mention lia-mention-user"&gt;michelleburke1&lt;/a&gt;&amp;nbsp;- Well, it ought to be something along the lines of this then:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
  COUNTROWS(
    FILTER(
      'InstructionalDaysTable',
      [Date] &amp;gt;= MAX('StudentsTable'[StartDate]) &amp;amp;&amp;amp;
        [Date] &amp;lt;= TODAY()
    )
  )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are lots of assumptions in here because you really haven't provided the information required to provide you with a specific solution but basically, you are figuring out the start date of the student and then just counting the rows in your "instructional days" table that fall between that date and today. You would put that measure in a table along with your student names or ID's or what not.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Again, difficult to be specific with the information provided.&lt;/P&gt;</description>
    <pubDate>Fri, 10 Jul 2020 05:37:06 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2020-07-10T05:37:06Z</dc:date>
    <item>
      <title>Calculating days in school</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-days-in-school/m-p/1212794#M19549</link>
      <description>&lt;P&gt;I have a file of days that were instructional days in school and a file that shows what days students were enrolled and what date they left the district.&amp;nbsp; I am trying to calculate how many instructional days a student was enrolled.&amp;nbsp; Is there a DAX command that would help me accomplish this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2020 18:08:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-days-in-school/m-p/1212794#M19549</guid>
      <dc:creator>michelleburke1</dc:creator>
      <dc:date>2020-07-09T18:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating days in school</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-days-in-school/m-p/1212842#M19554</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="244894" data-lia-user-login="michelleburke1" class="lia-mention lia-mention-user"&gt;michelleburke1&lt;/a&gt;&amp;nbsp;-&amp;nbsp;Not really enough information to go on, please first check if your issue is a common issue listed here: &lt;A href="https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, please see this post regarding How to Get Your Question Answered Quickly: &lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The most important parts are:&lt;BR /&gt;1. Sample data as text, use the table tool in the editing bar&lt;BR /&gt;2. Expected output from sample data&lt;BR /&gt;3. Explanation in words of how to get from 1. to 2.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2020 18:38:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-days-in-school/m-p/1212842#M19554</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-07-09T18:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating days in school</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-days-in-school/m-p/1212862#M19556</link>
      <description>&lt;P&gt;Thank you.&amp;nbsp; I have two files - one that contains a date and the Day type&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;School&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Date&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Day Type&lt;/P&gt;&lt;P&gt;123School&amp;nbsp; &amp;nbsp; 9/4/2019&amp;nbsp; &amp;nbsp; Instructional Day&lt;/P&gt;&lt;P&gt;123School&amp;nbsp; &amp;nbsp;9/5/2019&amp;nbsp; &amp;nbsp; &amp;nbsp;Instructional Day&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have another file that has student information including the day they started school.&amp;nbsp; Some start at the beginning of the year but many come later in the school year.&amp;nbsp; So I need to calculate how many days the student has been in school based on todays date minus their start date but only counting days that are in the instructional day file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I then use this to calculate a percentage of absent days.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2020 18:57:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-days-in-school/m-p/1212862#M19556</guid>
      <dc:creator>michelleburke1</dc:creator>
      <dc:date>2020-07-09T18:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating days in school</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-days-in-school/m-p/1213615#M19574</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="244894" data-lia-user-login="michelleburke1" class="lia-mention lia-mention-user"&gt;michelleburke1&lt;/a&gt;&amp;nbsp;- Well, it ought to be something along the lines of this then:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
  COUNTROWS(
    FILTER(
      'InstructionalDaysTable',
      [Date] &amp;gt;= MAX('StudentsTable'[StartDate]) &amp;amp;&amp;amp;
        [Date] &amp;lt;= TODAY()
    )
  )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are lots of assumptions in here because you really haven't provided the information required to provide you with a specific solution but basically, you are figuring out the start date of the student and then just counting the rows in your "instructional days" table that fall between that date and today. You would put that measure in a table along with your student names or ID's or what not.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Again, difficult to be specific with the information provided.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2020 05:37:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-days-in-school/m-p/1213615#M19574</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-07-10T05:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating days in school</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-days-in-school/m-p/1275631#M21598</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="244894" data-lia-user-login="michelleburke1" class="lia-mention lia-mention-user"&gt;michelleburke1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;are you still having issues with this, or is it solved?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;BR /&gt;Sturla&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 20:04:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-days-in-school/m-p/1275631#M21598</guid>
      <dc:creator>sturlaws</dc:creator>
      <dc:date>2020-08-05T20:04:18Z</dc:date>
    </item>
  </channel>
</rss>

