<?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: Calculate  Comulative Average Headcount in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Comulative-Average-Headcount/m-p/3154445#M113099</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;I changed the numerator but the result is the same&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I am trying to do this operation&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 26 Mar 2023 15:58:13 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-03-26T15:58:13Z</dc:date>
    <item>
      <title>Calculate  Comulative Average Headcount</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Comulative-Average-Headcount/m-p/3153405#M113023</link>
      <description>&lt;P&gt;Hi Everyone!&lt;/P&gt;&lt;P&gt;Sorry if my english is not good.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to calculate cumulative average headcount.&lt;/P&gt;&lt;P&gt;I have two tables&lt;/P&gt;&lt;P&gt;The Data_Table have the records of employees(&lt;EM&gt;termination date(fecha de baja [fix]), Hiredate(fecha de ingreso [fix]&lt;/EM&gt;))&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The Calendario_Table have the date (1/1/1979-12/31/2026)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have related two fields with date table(terminationdate,hiredate)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First, I created a measure to calculate the headcount&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After, I created a measure to&amp;nbsp;calculate the cumulative headcount&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when I created the measure for the cumulative average, the result is not correct.&lt;/P&gt;&lt;P&gt;But i dont know&amp;nbsp; where i am wrong.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The correct cumulative avg is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you tell me how I can solve it?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 21:50:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Comulative-Average-Headcount/m-p/3153405#M113023</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-24T21:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate  Comulative Average Headcount</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Comulative-Average-Headcount/m-p/3153777#M113054</link>
      <description>&lt;P&gt;That's because you have used acumulado headcount while calculating cumulative average try using Headcount instead of&amp;nbsp;acumulado headcount.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;if it solves your issue please accept my answer as solution.&lt;/P&gt;</description>
      <pubDate>Sat, 25 Mar 2023 10:29:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Comulative-Average-Headcount/m-p/3153777#M113054</guid>
      <dc:creator>rautaniket0077</dc:creator>
      <dc:date>2023-03-25T10:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate  Comulative Average Headcount</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Comulative-Average-Headcount/m-p/3154445#M113099</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;I changed the numerator but the result is the same&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I am trying to do this operation&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Mar 2023 15:58:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Comulative-Average-Headcount/m-p/3154445#M113099</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-26T15:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate  Comulative Average Headcount</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Comulative-Average-Headcount/m-p/3155186#M113147</link>
      <description>&lt;P&gt;Try replacing "Date" inside allselected with "Date[year]" because for me with similar kind of data these below 2 measures are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R /&gt;&lt;/SPAN&gt;&lt;BR /&gt;2)&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;cumulative average = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Var&lt;/SPAN&gt;&lt;SPAN&gt; a = &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;STRONG&gt;ALLSELECTED('Date'[Year]), ---- in your case calendario with calendario[Ano]&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'Date'[Year] &amp;lt;= &lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;('Date'[Year])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;return&lt;/SPAN&gt; &lt;SPAN&gt;DIVIDE&lt;/SPAN&gt;&lt;SPAN&gt;([Cummulative count], &lt;/SPAN&gt;&lt;SPAN&gt;COUNTROWS&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;(a))&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 27 Mar 2023 06:11:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Comulative-Average-Headcount/m-p/3155186#M113147</guid>
      <dc:creator>rautaniket0077</dc:creator>
      <dc:date>2023-03-27T06:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate  Comulative Average Headcount</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Comulative-Average-Headcount/m-p/3170364#M114248</link>
      <description>&lt;P&gt;I tried the measure.The measure does work when I take the date from the same table where the data is.&lt;/P&gt;&lt;P&gt;But when I take the date from the calendar table, the measure doesnt work.&lt;/P&gt;&lt;P&gt;It should work, because is the same step,only I add the instruction&amp;nbsp; &lt;EM&gt;userelationship&amp;nbsp;&lt;/EM&gt;to connect the tables, but it doesn´t work&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could I share the exercise with you by email?&lt;/P&gt;&lt;P&gt;We could review the exercise together.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2023 22:02:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Comulative-Average-Headcount/m-p/3170364#M114248</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-03T22:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate  Comulative Average Headcount</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Comulative-Average-Headcount/m-p/3170841#M114285</link>
      <description>&lt;P&gt;Sure please share the exercise&amp;nbsp;&lt;BR /&gt;Email -- aniketraut0077@gmail.com&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2023 05:32:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Comulative-Average-Headcount/m-p/3170841#M114285</guid>
      <dc:creator>rautaniket0077</dc:creator>
      <dc:date>2023-04-04T05:32:02Z</dc:date>
    </item>
  </channel>
</rss>

