<?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: How to calculate average age of a group of persons in XX years? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-average-age-of-a-group-of-persons-in-XX-years/m-p/2859011#M92001</link>
    <description>&lt;P&gt;Hi john,&lt;/P&gt;&lt;P&gt;Indeed, I was using two tables. Now it has been solved. Thanks&lt;/P&gt;</description>
    <pubDate>Mon, 24 Oct 2022 11:31:22 GMT</pubDate>
    <dc:creator>Steph83</dc:creator>
    <dc:date>2022-10-24T11:31:22Z</dc:date>
    <item>
      <title>How to calculate average age of a group of persons in XX years?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-average-age-of-a-group-of-persons-in-XX-years/m-p/2855705#M91778</link>
      <description>&lt;P&gt;I have a group of 300 people ("Artists") for whom I have their date of birth ("date of birth").&lt;/P&gt;&lt;P&gt;I would like to know the average age of this group on a specific date that I would select in a dashboard filter.&lt;/P&gt;&lt;P&gt;In fact my data base gathered all persons, but all are not available all the time. So I need to know, among the persons who are there, at a specific date, the average age of the persons&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thnaks in advance for your support&lt;/P&gt;&lt;P&gt;Stephane&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2022 12:46:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-average-age-of-a-group-of-persons-in-XX-years/m-p/2855705#M91778</guid>
      <dc:creator>Steph83</dc:creator>
      <dc:date>2022-10-21T12:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate average age of a group of persons in XX years?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-average-age-of-a-group-of-persons-in-XX-years/m-p/2855721#M91780</link>
      <description>&lt;P&gt;You could create a measure like&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Average age =
VAR ReferenceDate =
    SELECTEDVALUE ( 'Slicer date'[Date] )
VAR Result =
    AVERAGEX ( Artists, DATEDIFF ( Artists[Date of birth], ReferenceDate, YEAR ) )
RETURN
    Result
&lt;/LI-CODE&gt;
&lt;P&gt;where 'Slicer date'[Date] is the column you are using on the slicer.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2022 13:04:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-average-age-of-a-group-of-persons-in-XX-years/m-p/2855721#M91780</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-10-21T13:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate average age of a group of persons in XX years?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-average-age-of-a-group-of-persons-in-XX-years/m-p/2855765#M91784</link>
      <description>&lt;P&gt;Hello John,&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I read your proposal, it seems so easy, but I wouldn't have been able to find it!!!&lt;/P&gt;&lt;P&gt;That's work perfectly, thank you&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2022 13:29:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-average-age-of-a-group-of-persons-in-XX-years/m-p/2855765#M91784</guid>
      <dc:creator>Steph83</dc:creator>
      <dc:date>2022-10-21T13:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate average age of a group of persons in XX years?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-average-age-of-a-group-of-persons-in-XX-years/m-p/2857477#M91898</link>
      <description>&lt;P&gt;Good day,&lt;/P&gt;&lt;P&gt;Something is missing. I have well the average of the list of persons at a selected date however, it gives the average of all the persons whatever the filter applied on the page (gender, above 30....). How can I include the selected filters in the formula so as to calculate the average on the selected persons only?&lt;/P&gt;</description>
      <pubDate>Sun, 23 Oct 2022 14:12:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-average-age-of-a-group-of-persons-in-XX-years/m-p/2857477#M91898</guid>
      <dc:creator>Steph83</dc:creator>
      <dc:date>2022-10-23T14:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate average age of a group of persons in XX years?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-average-age-of-a-group-of-persons-in-XX-years/m-p/2858509#M91957</link>
      <description>&lt;P&gt;The code I posted should respect any filters placed on the Artists table. If it is not doing that can you post a link to a sample PBIX ?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2022 08:13:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-average-age-of-a-group-of-persons-in-XX-years/m-p/2858509#M91957</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-10-24T08:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate average age of a group of persons in XX years?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-average-age-of-a-group-of-persons-in-XX-years/m-p/2859011#M92001</link>
      <description>&lt;P&gt;Hi john,&lt;/P&gt;&lt;P&gt;Indeed, I was using two tables. Now it has been solved. Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2022 11:31:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-average-age-of-a-group-of-persons-in-XX-years/m-p/2859011#M92001</guid>
      <dc:creator>Steph83</dc:creator>
      <dc:date>2022-10-24T11:31:22Z</dc:date>
    </item>
  </channel>
</rss>

