<?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 A simple average ?? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-simple-average/m-p/3092897#M108410</link>
    <description>&lt;P&gt;This is an example of my data and current output:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;BoNummer is a unique key.&lt;BR /&gt;&lt;BR /&gt;My current measure is this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Time from creation to death in Years = 
    CALCULATE (
            VAR TestamentCreationDate = MAX( FactArvesager[Testament creation date] )
            VAR DeathDate = MAX( FactArvesager[Death of testament creator] )

            RETURN

            DATEDIFF( TestamentCreationDate , DeathDate , YEAR ),
            USERELATIONSHIP(DimDato[DatoKey], FactArvesager[Date of start] )
        )&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;As can be seen it works fine on row level, but I need to find the Average on the 'Date of start' = 53&lt;BR /&gt;&lt;BR /&gt;I think I have complicated things in my head :.(&lt;BR /&gt;&lt;BR /&gt;Plz help&lt;/P&gt;</description>
    <pubDate>Wed, 22 Feb 2023 12:56:28 GMT</pubDate>
    <dc:creator>Bokazoit</dc:creator>
    <dc:date>2023-02-22T12:56:28Z</dc:date>
    <item>
      <title>A simple average ??</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-simple-average/m-p/3092897#M108410</link>
      <description>&lt;P&gt;This is an example of my data and current output:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;BoNummer is a unique key.&lt;BR /&gt;&lt;BR /&gt;My current measure is this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Time from creation to death in Years = 
    CALCULATE (
            VAR TestamentCreationDate = MAX( FactArvesager[Testament creation date] )
            VAR DeathDate = MAX( FactArvesager[Death of testament creator] )

            RETURN

            DATEDIFF( TestamentCreationDate , DeathDate , YEAR ),
            USERELATIONSHIP(DimDato[DatoKey], FactArvesager[Date of start] )
        )&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;As can be seen it works fine on row level, but I need to find the Average on the 'Date of start' = 53&lt;BR /&gt;&lt;BR /&gt;I think I have complicated things in my head :.(&lt;BR /&gt;&lt;BR /&gt;Plz help&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 12:56:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-simple-average/m-p/3092897#M108410</guid>
      <dc:creator>Bokazoit</dc:creator>
      <dc:date>2023-02-22T12:56:28Z</dc:date>
    </item>
  </channel>
</rss>

