<?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: Monthly Average of Employees YTD/Rolling12 in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-Average-of-Employees-YTD-Rolling12/m-p/2217253#M52511</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to your description, I can roughly understand your requirement, you want to get the Rolling 12 monthly average of the sales month of the employees in your company, right? I think you can try this measure:&lt;/P&gt;
&lt;P&gt;This is the test data I created based on your description:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Rolling 12 monthly average =

CALCULATE (

    AVERAGE ( 'Table'[Sales] ),

    FILTER (

        ALL ( 'Table' ),

        [Employee] = MAX ( 'Table'[Employee] )

            &amp;amp;&amp;amp; [Date] &amp;gt; EOMONTH ( MAX ( 'Table'[Date] ), -13 )

            &amp;amp;&amp;amp; [Date] &amp;lt;= EOMONTH ( MAX ( 'Table'[Date] ), 0 )

    )

)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And you can create a table chart to place like this to get what you want.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can download my test pbix file below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this result is not what you want, you can post some sample data(without sensitive data) and your expected result.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;How to Get Your Question Answered Quickly&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Thank you very much!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Robert Qin&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Thu, 02 Dec 2021 03:30:33 GMT</pubDate>
    <dc:creator>v-robertq-msft</dc:creator>
    <dc:date>2021-12-02T03:30:33Z</dc:date>
    <item>
      <title>Monthly Average of Employees YTD/Rolling12</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-Average-of-Employees-YTD-Rolling12/m-p/2212796#M52261</link>
      <description>&lt;P&gt;Hello! I am working on a turnover report that will become a rolling 12 month report after January. I have lists of all of our employees for the first and last day of each month.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need the table to show the monthly average (currently only carrying over the one month information). This is this information in the table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Location --&amp;gt; Department --&amp;gt; Job Title --&amp;gt;Count and Calculations for Monthly Terms and FTE Reductions. All of the data for which employee is in the month is in one spreadsheet and is added to monthly. It is separated out by a column for Date which includes the first and last date for each month.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone know how to get the average to calculate right?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried separating them out and uploading them that way but it shows each month as a count in the table so January would show all the other months as well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have connected this information to a date table as well to attempt to make the count easier.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Nov 2021 23:20:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-Average-of-Employees-YTD-Rolling12/m-p/2212796#M52261</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-29T23:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: Monthly Average of Employees YTD/Rolling12</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-Average-of-Employees-YTD-Rolling12/m-p/2212878#M52268</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can you post sample data as text and expected output?&lt;BR /&gt;Not enough information to go on;&lt;BR /&gt;&lt;BR /&gt;please see this post regarding How to Get Your Question Answered Quickly:&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;SPAN&gt;The most important parts are:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;BR /&gt;1. Sample data as text, use the table tool in the editing bar&lt;BR /&gt;2. Expected output from sample data&lt;BR /&gt;3. Explanation in words of how to get from 1. to 2.&lt;BR /&gt;4. Relation between your tables&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;SPAN&gt;Appreciate your Kudos!!&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;SPAN&gt;LinkedIn:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;A href="https://www.linkedin.com/in/vahid-dm/" target="_blank"&gt;www.linkedin.com/in/vahid-dm/&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 01:24:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-Average-of-Employees-YTD-Rolling12/m-p/2212878#M52268</guid>
      <dc:creator>VahidDM</dc:creator>
      <dc:date>2021-11-30T01:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: Monthly Average of Employees YTD/Rolling12</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-Average-of-Employees-YTD-Rolling12/m-p/2217253#M52511</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to your description, I can roughly understand your requirement, you want to get the Rolling 12 monthly average of the sales month of the employees in your company, right? I think you can try this measure:&lt;/P&gt;
&lt;P&gt;This is the test data I created based on your description:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Rolling 12 monthly average =

CALCULATE (

    AVERAGE ( 'Table'[Sales] ),

    FILTER (

        ALL ( 'Table' ),

        [Employee] = MAX ( 'Table'[Employee] )

            &amp;amp;&amp;amp; [Date] &amp;gt; EOMONTH ( MAX ( 'Table'[Date] ), -13 )

            &amp;amp;&amp;amp; [Date] &amp;lt;= EOMONTH ( MAX ( 'Table'[Date] ), 0 )

    )

)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And you can create a table chart to place like this to get what you want.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can download my test pbix file below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this result is not what you want, you can post some sample data(without sensitive data) and your expected result.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;How to Get Your Question Answered Quickly&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Thank you very much!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Robert Qin&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2021 03:30:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-Average-of-Employees-YTD-Rolling12/m-p/2217253#M52511</guid>
      <dc:creator>v-robertq-msft</dc:creator>
      <dc:date>2021-12-02T03:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: Monthly Average of Employees YTD/Rolling12</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-Average-of-Employees-YTD-Rolling12/m-p/2262330#M54744</link>
      <description>&lt;P&gt;This is perfect- Thank you. Apologies for a late response. Illness had me on the sidelines.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Dec 2021 20:41:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-Average-of-Employees-YTD-Rolling12/m-p/2262330#M54744</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-12-31T20:41:49Z</dc:date>
    </item>
  </channel>
</rss>

