<?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: DAX for Average the result of the measure by month in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-Average-the-result-of-the-measure-by-month/m-p/3244306#M119445</link>
    <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It worked.&lt;/P&gt;&lt;P&gt;Thank you so much.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":folded_hands:"&gt;🙏&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":folded_hands:"&gt;🙏&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":folded_hands:"&gt;🙏&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 19 May 2023 13:00:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-05-19T13:00:02Z</dc:date>
    <item>
      <title>DAX for Average the result of the measure by month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-Average-the-result-of-the-measure-by-month/m-p/3242171#M119325</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to average the result from one of my measure (Column B).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;According to the above picture, column B is the result from this measure&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF00FF"&gt;&lt;SPAN&gt;HC&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;-&lt;/SPAN&gt;&lt;FONT color="#00CCFF"&gt;&lt;SPAN&gt;Resign&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;FONT color="#FF00FF"&gt;HC&lt;/FONT&gt;&amp;nbsp;= CALCULATE(COUNT('HC'[Employee ID]),'Attrition'[PE]="1")&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;FONT color="#00CCFF"&gt;Resign&lt;/FONT&gt; =&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[Resign]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;filter&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Data as of_LookUp'[Data as of]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;'Data as of_LookUp'[Data as of]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Data as of_LookUp'[Data as of]&lt;/SPAN&gt;&lt;SPAN&gt;)))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;And after I got the column B, I tried to average them to result in column D, using ALL / FILTER anything that I can think of but it doesn't work.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;So anyone please give me the light.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thank youu!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 18 May 2023 11:38:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-Average-the-result-of-the-measure-by-month/m-p/3242171#M119325</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-18T11:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: DAX for Average the result of the measure by month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-Average-the-result-of-the-measure-by-month/m-p/3242692#M119351</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please try&lt;/P&gt;
&lt;P&gt;Average =&lt;BR /&gt;VAR CurrentDate =&lt;BR /&gt;MAX ( 'Data as of_LookUp'[Data as of] )&lt;BR /&gt;VAR SelectedMonths =&lt;BR /&gt;CALCULATETABLE (&lt;BR /&gt;VALUES ( 'Data as of_LookUp'[YearMonth] ),&lt;BR /&gt;ALLSELECTED ( 'Data as of_LookUp' ),&lt;BR /&gt;'Data as of_LookUp'[Data as of] &amp;lt;= CurrentDate&lt;BR /&gt;)&lt;BR /&gt;RETURN&lt;BR /&gt;AVERAGEX (&lt;BR /&gt;SelectedMonths,&lt;BR /&gt;VAR CurrentMonth = 'Data as of_LookUp'[YearMonth]&lt;BR /&gt;RETURN&lt;BR /&gt;CALCULATE (&lt;BR /&gt;[HC],&lt;BR /&gt;'Data as of_LookUp'[YearMonth] = CurrentMonth,&lt;BR /&gt;ALLSELECTED ( 'Data as of_LookUp' )&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2023 16:03:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-Average-the-result-of-the-measure-by-month/m-p/3242692#M119351</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-05-18T16:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: DAX for Average the result of the measure by month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-Average-the-result-of-the-measure-by-month/m-p/3244306#M119445</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It worked.&lt;/P&gt;&lt;P&gt;Thank you so much.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":folded_hands:"&gt;🙏&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":folded_hands:"&gt;🙏&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":folded_hands:"&gt;🙏&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2023 13:00:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-Average-the-result-of-the-measure-by-month/m-p/3244306#M119445</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-19T13:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: DAX for Average the result of the measure by month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-Average-the-result-of-the-measure-by-month/m-p/3309405#M123654</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry to bother you again.&lt;/P&gt;&lt;P&gt;It worked at first but after I played around with something else and came back, I found that the result has changed and it's not correct anymore&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":crying_face:"&gt;😢&lt;/span&gt;&amp;nbsp;&lt;BR /&gt;Could you help me figure this out again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The result column was from the DAX you provided earlier, it looks like it was divided by 1 in January, 1.99 in February, 2.98 in March, while it should be divided by 1 2 3 respectively in order to calculate the average.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 05:23:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-Average-the-result-of-the-measure-by-month/m-p/3309405#M123654</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-06-30T05:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: DAX for Average the result of the measure by month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-Average-the-result-of-the-measure-by-month/m-p/3309456#M123658</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;It is difficult to tell without working on the actual report.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 05:58:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-Average-the-result-of-the-measure-by-month/m-p/3309456#M123658</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-06-30T05:58:50Z</dc:date>
    </item>
  </channel>
</rss>

