<?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: DAX Calculate age between two dates on two different tables in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calculate-age-between-two-dates-on-two-different-tables/m-p/3175130#M114591</link>
    <description>&lt;P&gt;Thank you, thats the first time its got a calculation out &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That gives me the average age, no quite what I was after.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess ideally i just want it to show the years difference between the start Date and the Born date&lt;/P&gt;</description>
    <pubDate>Thu, 06 Apr 2023 03:56:34 GMT</pubDate>
    <dc:creator>Chockers1</dc:creator>
    <dc:date>2023-04-06T03:56:34Z</dc:date>
    <item>
      <title>DAX Calculate age between two dates on two different tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calculate-age-between-two-dates-on-two-different-tables/m-p/3175052#M114585</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two multiple tables on a cricket dashboard and want to work out the players age at the start of a match.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first table is called "Bat" and this is what the dashboard is made up off. It has a column called start_date&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The other table is called "PP" and that has the player profiles detials and importnatly a date called "Born". These are linked on the data table by a player ID.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to add to my dashboard using the daa from "Bat" an age calucalation essentially being - Born - Start Date and leaving just the age.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've looked through heaps of forums and YT videos and cant quite work it out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Really hoping someone can help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 02:48:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calculate-age-between-two-dates-on-two-different-tables/m-p/3175052#M114585</guid>
      <dc:creator>Chockers1</dc:creator>
      <dc:date>2023-04-06T02:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Calculate age between two dates on two different tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calculate-age-between-two-dates-on-two-different-tables/m-p/3175073#M114586</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="542241" data-lia-user-login="Chockers1" class="lia-mention lia-mention-user"&gt;Chockers1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please try&lt;/P&gt;
&lt;P&gt;Average Age =&lt;BR /&gt;AVERAGEX ( Bat, INT ( Bat[Start_Date] - RELATED ( PP[Born] ) ) )&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 03:00:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calculate-age-between-two-dates-on-two-different-tables/m-p/3175073#M114586</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-04-06T03:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Calculate age between two dates on two different tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calculate-age-between-two-dates-on-two-different-tables/m-p/3175113#M114588</link>
      <description>&lt;P&gt;Thanks mate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error message based on that is below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sounds like the relationship isn't working?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 03:19:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calculate-age-between-two-dates-on-two-different-tables/m-p/3175113#M114588</guid>
      <dc:creator>Chockers1</dc:creator>
      <dc:date>2023-04-06T03:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Calculate age between two dates on two different tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calculate-age-between-two-dates-on-two-different-tables/m-p/3175120#M114589</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="542241" data-lia-user-login="Chockers1" class="lia-mention lia-mention-user"&gt;Chockers1&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please try&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Average Age =
AVERAGEX (
    Bat,
    INT ( Bat[Start_Date] - MAXX ( RELATEDTABLE ( PP ), PP[Born] ) )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 06 Apr 2023 03:28:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calculate-age-between-two-dates-on-two-different-tables/m-p/3175120#M114589</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-04-06T03:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Calculate age between two dates on two different tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calculate-age-between-two-dates-on-two-different-tables/m-p/3175130#M114591</link>
      <description>&lt;P&gt;Thank you, thats the first time its got a calculation out &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That gives me the average age, no quite what I was after.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess ideally i just want it to show the years difference between the start Date and the Born date&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 03:56:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calculate-age-between-two-dates-on-two-different-tables/m-p/3175130#M114591</guid>
      <dc:creator>Chockers1</dc:creator>
      <dc:date>2023-04-06T03:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Calculate age between two dates on two different tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calculate-age-between-two-dates-on-two-different-tables/m-p/3175207#M114596</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="542241" data-lia-user-login="Chockers1" class="lia-mention lia-mention-user"&gt;Chockers1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please present one example&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 05:03:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calculate-age-between-two-dates-on-two-different-tables/m-p/3175207#M114596</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-04-06T05:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Calculate age between two dates on two different tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calculate-age-between-two-dates-on-two-different-tables/m-p/3176556#M114682</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Thanks mate, this is what appears - is it possible to make that into how old a player is in just years?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 18:15:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calculate-age-between-two-dates-on-two-different-tables/m-p/3176556#M114682</guid>
      <dc:creator>Chockers1</dc:creator>
      <dc:date>2023-04-06T18:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Calculate age between two dates on two different tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calculate-age-between-two-dates-on-two-different-tables/m-p/3176585#M114684</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="542241" data-lia-user-login="Chockers1" class="lia-mention lia-mention-user"&gt;Chockers1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Average Age =&lt;BR /&gt;AVERAGEX (&lt;BR /&gt;Bat,&lt;BR /&gt;DATEDIFF ( Bat[Start_Date], MAXX ( RELATEDTABLE ( PP ), PP[Born] ), YEAR )&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 18:29:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calculate-age-between-two-dates-on-two-different-tables/m-p/3176585#M114684</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-04-06T18:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Calculate age between two dates on two different tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calculate-age-between-two-dates-on-two-different-tables/m-p/3176729#M114699</link>
      <description>&lt;P&gt;Awesome mate, that has got it working!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only thing left it shows as a minus age&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 20:26:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calculate-age-between-two-dates-on-two-different-tables/m-p/3176729#M114699</guid>
      <dc:creator>Chockers1</dc:creator>
      <dc:date>2023-04-06T20:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Calculate age between two dates on two different tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calculate-age-between-two-dates-on-two-different-tables/m-p/3176756#M114700</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="542241" data-lia-user-login="Chockers1" class="lia-mention lia-mention-user"&gt;Chockers1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Oh! Apologies for that&lt;/P&gt;
&lt;P&gt;Average Age =&lt;BR /&gt;AVERAGEX (&lt;BR /&gt;Bat,&lt;BR /&gt;DATEDIFF ( MAXX ( RELATEDTABLE ( PP ), PP[Born] ), Bat[Start_Date], YEAR )&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 20:45:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calculate-age-between-two-dates-on-two-different-tables/m-p/3176756#M114700</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-04-06T20:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Calculate age between two dates on two different tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calculate-age-between-two-dates-on-two-different-tables/m-p/3176833#M114706</link>
      <description>&lt;P&gt;thank you so much works beautfully!!!&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 22:13:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calculate-age-between-two-dates-on-two-different-tables/m-p/3176833#M114706</guid>
      <dc:creator>Chockers1</dc:creator>
      <dc:date>2023-04-06T22:13:37Z</dc:date>
    </item>
  </channel>
</rss>

