<?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: Average Last 6 months accumulated in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Last-6-months-accumulated/m-p/1908960#M41240</link>
    <description>&lt;P&gt;Muchas gracias&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="250150" data-lia-user-login="CNENFRNL" class="lia-mention lia-mention-user"&gt;CNENFRNL&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 18 Jun 2021 12:15:32 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-06-18T12:15:32Z</dc:date>
    <item>
      <title>Average Last 6 months accumulated</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Last-6-months-accumulated/m-p/1906690#M41172</link>
      <description>&lt;P&gt;Hello dear community, I come to you so that you can help me with this DAX calculation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need a Calculated Column to show me:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;the average of the last 6 months accumulated for each collaborator (in case the collaborator appears&amp;gt; = 6 times in the year);&lt;/LI&gt;&lt;LI&gt;or in the event that the employee in the current year period appears less than 6 months, showing the average based on the number of months that the employee has been in the company in the current period, for example:&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;Year Filter: 2021&lt;BR /&gt;Current month: May2021 (5)&lt;BR /&gt;Seniority of the collaborator to May2021:&lt;STRONG&gt; 3 months&lt;/STRONG&gt; (that is, the collaborator appears 3 times until May, &lt;BR /&gt;if in June it becomes active, the collaborator when we are in June then it will appear 4 times, and so on)&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;So the average will be = (Mar + Apr + May) / 3&lt;/STRONG&gt;&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Also consider that I already have a calendar table in my Power BI.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here I have an example sample of what I want exactly (column "Average Last 6 months), you can download the file &lt;A title="Download File" href="https://drive.google.com/file/d/1fznbt7sCgVWqjSHoN8Z5SfF9a_tmDg-z/view?usp=sharing" target="_blank" rel="noopener"&gt;here&lt;/A&gt;:&lt;/P&gt;&lt;P&gt;I also leave the extract here:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I read them, I hope they can help me as soon as possible. and thank you very much in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nestor Reyes&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jun 2021 13:35:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Last-6-months-accumulated/m-p/1906690#M41172</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-17T13:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: Average Last 6 months accumulated</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Last-6-months-accumulated/m-p/1907288#M41198</link>
      <description>&lt;LI-CODE lang="markup"&gt;AVG 6M = 
CALCULATE(
    AVERAGEX( DATA, DATA[Compensation] ),
    DATESINPERIOD( DATA[Date], MAX( DATA[Date] ), -6, MONTH )
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jun 2021 18:44:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Last-6-months-accumulated/m-p/1907288#M41198</guid>
      <dc:creator>CNENFRNL</dc:creator>
      <dc:date>2021-06-17T18:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: Average Last 6 months accumulated</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Last-6-months-accumulated/m-p/1908960#M41240</link>
      <description>&lt;P&gt;Muchas gracias&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="250150" data-lia-user-login="CNENFRNL" class="lia-mention lia-mention-user"&gt;CNENFRNL&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 12:15:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Last-6-months-accumulated/m-p/1908960#M41240</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-18T12:15:32Z</dc:date>
    </item>
  </channel>
</rss>

