<?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: To find out school year in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-find-out-school-year/m-p/2274185#M55428</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Could you mark my post as a solution? That helps other to find the answer easier in the future.&lt;/P&gt;</description>
    <pubDate>Sun, 09 Jan 2022 18:55:37 GMT</pubDate>
    <dc:creator>ValtteriN</dc:creator>
    <dc:date>2022-01-09T18:55:37Z</dc:date>
    <item>
      <title>To find out school year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-find-out-school-year/m-p/2273770#M55398</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;In UK, children start school in September after their 4th birthday. In a given cohort I need to filter only reception age group. For e.g. children starting in Sep 2021, will have their DOB between 01/09/ 2016 to 31/08/2017&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am able to filter the cohort using excel as shown in the attached snapshot. I am interested in only Year 0 (Reception) cohort. However, when I tried to upload the data and tried to calcualte the school year in Power BI I get different result which isn't correct. Attached Power BI snapshot too. Can you please advise where I could have got it wrong?&amp;nbsp; Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Jan 2022 22:25:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-find-out-school-year/m-p/2273770#M55398</guid>
      <dc:creator>uc</dc:creator>
      <dc:date>2022-01-08T22:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: To find out school year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-find-out-school-year/m-p/2273823#M55401</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Here is a modified DAX that should work:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Year = &lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ISBLANK&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[DOB]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;BLANK&lt;/SPAN&gt;&lt;SPAN&gt;(),&lt;/SPAN&gt;&lt;SPAN&gt;"Year "&lt;/SPAN&gt;&lt;SPAN&gt;&amp;amp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;MONTH&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;DOB[DOB]&lt;/SPAN&gt;&lt;SPAN&gt;)&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;9&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;DATEDIFF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;DOB[DOB]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;TODAY&lt;/SPAN&gt;&lt;SPAN&gt;(),&lt;/SPAN&gt;&lt;SPAN&gt;YEAR&lt;/SPAN&gt;&lt;SPAN&gt;)-&lt;/SPAN&gt;&lt;SPAN&gt;4&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DATEDIFF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;DOB[DOB]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;TODAY&lt;/SPAN&gt;&lt;SPAN&gt;(),&lt;/SPAN&gt;&lt;SPAN&gt;YEAR&lt;/SPAN&gt;&lt;SPAN&gt;)-&lt;/SPAN&gt;&lt;SPAN&gt;5&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;End result:&lt;/STRONG&gt;&lt;BR /&gt;&lt;img /&gt;&lt;P&gt;So in this example the only child starting this year would be the one born in 1.1.2018. This checks out since during this year's September they have turned four.&lt;BR /&gt;&lt;BR /&gt;Regarding your original formula. It is not usually a good idea to use days in formulas (like with 122) so I used different method in my example.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I hope this helps to solve your issue and if it does consider accepting this as a solution and giving the post a thumbs up!&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 09 Jan 2022 00:28:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-find-out-school-year/m-p/2273823#M55401</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2022-01-09T00:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: To find out school year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-find-out-school-year/m-p/2274000#M55418</link>
      <description>&lt;P&gt;Thankyou. It works.&lt;/P&gt;</description>
      <pubDate>Sun, 09 Jan 2022 12:37:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-find-out-school-year/m-p/2274000#M55418</guid>
      <dc:creator>uc</dc:creator>
      <dc:date>2022-01-09T12:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: To find out school year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-find-out-school-year/m-p/2274185#M55428</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Could you mark my post as a solution? That helps other to find the answer easier in the future.&lt;/P&gt;</description>
      <pubDate>Sun, 09 Jan 2022 18:55:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-find-out-school-year/m-p/2274185#M55428</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2022-01-09T18:55:37Z</dc:date>
    </item>
  </channel>
</rss>

