<?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: Under 18 at any point during a time Frame? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Under-18-at-any-point-during-a-time-Frame/m-p/1390936#M25496</link>
    <description>&lt;P&gt;Please see full solution below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table1&lt;/STRONG&gt; contains two columns, with "&lt;STRONG&gt;Persons Name&lt;/STRONG&gt;" and "&lt;STRONG&gt;Birthdate&lt;/STRONG&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;WasUnderage:=IF(COUNTROWS(Table1) &amp;lt;&amp;gt; 1, BLANK(), 

VAR DateOfBirth = VALUES(Table1[Birthdate])

VAR Date18 = DATE(YEAR(DateOfBirth)+18, MONTH(DateOfBirth), DAY(DateOfBirth))

VAR result = AND(DateOfBirth &amp;lt;= DATE(2020,30,6), Date18 &amp;gt; DATE(2019,7,1))

RETURN
result
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Sep 2020 17:29:09 GMT</pubDate>
    <dc:creator>Regex</dc:creator>
    <dc:date>2020-09-23T17:29:09Z</dc:date>
    <item>
      <title>Under 18 at any point during a time Frame?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Under-18-at-any-point-during-a-time-Frame/m-p/1390700#M25487</link>
      <description>&lt;P&gt;I'm trying to figure out a way to see if a person we served was, at any point, under the age of 18 during a given time frame....7/1/19 - 6/30/20.&amp;nbsp; Age would be calculated off of a Birthdate field.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2020 15:44:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Under-18-at-any-point-during-a-time-Frame/m-p/1390700#M25487</guid>
      <dc:creator>pdoucette</dc:creator>
      <dc:date>2020-09-23T15:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: Under 18 at any point during a time Frame?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Under-18-at-any-point-during-a-time-Frame/m-p/1390813#M25492</link>
      <description>&lt;P&gt;Well you're only interested in the earliest part of the time frame - I don't know where that's coming from and it doesn't really matter, try something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;18check = var earliesttimeframe = min(however you are defining your time frame)&lt;/P&gt;
&lt;P&gt;var whenpersonis18 = dateadd([birthdate],18,year)&lt;/P&gt;
&lt;P&gt;return if (earliesttime&amp;lt;whenpersonis18,"was under 18","wasn't under 18")&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2020 16:27:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Under-18-at-any-point-during-a-time-Frame/m-p/1390813#M25492</guid>
      <dc:creator>jthomson</dc:creator>
      <dc:date>2020-09-23T16:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: Under 18 at any point during a time Frame?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Under-18-at-any-point-during-a-time-Frame/m-p/1390936#M25496</link>
      <description>&lt;P&gt;Please see full solution below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table1&lt;/STRONG&gt; contains two columns, with "&lt;STRONG&gt;Persons Name&lt;/STRONG&gt;" and "&lt;STRONG&gt;Birthdate&lt;/STRONG&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;WasUnderage:=IF(COUNTROWS(Table1) &amp;lt;&amp;gt; 1, BLANK(), 

VAR DateOfBirth = VALUES(Table1[Birthdate])

VAR Date18 = DATE(YEAR(DateOfBirth)+18, MONTH(DateOfBirth), DAY(DateOfBirth))

VAR result = AND(DateOfBirth &amp;lt;= DATE(2020,30,6), Date18 &amp;gt; DATE(2019,7,1))

RETURN
result
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2020 17:29:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Under-18-at-any-point-during-a-time-Frame/m-p/1390936#M25496</guid>
      <dc:creator>Regex</dc:creator>
      <dc:date>2020-09-23T17:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: Under 18 at any point during a time Frame?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Under-18-at-any-point-during-a-time-Frame/m-p/1393087#M25551</link>
      <description>&lt;P&gt;Thank You, I think this is close but I am returning all False values but feel I met the Result...I will keep playing with it&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2020 12:54:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Under-18-at-any-point-during-a-time-Frame/m-p/1393087#M25551</guid>
      <dc:creator>pdoucette</dc:creator>
      <dc:date>2020-09-24T12:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: Under 18 at any point during a time Frame?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Under-18-at-any-point-during-a-time-Frame/m-p/1393521#M25572</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is a mistake in the order of one of the dates:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try changing DATE(2020, 30, 6) to&amp;nbsp;DATE(2020, 6, 30)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2020 15:51:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Under-18-at-any-point-during-a-time-Frame/m-p/1393521#M25572</guid>
      <dc:creator>Regex</dc:creator>
      <dc:date>2020-09-24T15:51:56Z</dc:date>
    </item>
  </channel>
</rss>

