<?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: Turning year to date sum to year to date average in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Turning-year-to-date-sum-to-year-to-date-average/m-p/4010143#M157780</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="765955" data-lia-user-login="ashsandwich" class="lia-mention lia-mention-user"&gt;ashsandwich&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I think you can use AVERAGE function. Here is the changed DAX codes.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;YTD Average =
CALCULATE (
    AVERAGE ( data[Headcount Count Calc] ),
    DATESYTD ( data[Extract Date] )
)&lt;/LI-CODE&gt;
&lt;P&gt;If you want to learn more about AVERAGE function. I think you can read this document:&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/dax/average-function-dax" target="_blank"&gt;AVERAGE function (DAX) - DAX | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Yilong Zhou&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 26 Jun 2024 02:09:36 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-06-26T02:09:36Z</dc:date>
    <item>
      <title>Turning year to date sum to year to date average</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Turning-year-to-date-sum-to-year-to-date-average/m-p/4009814#M157720</link>
      <description>&lt;P&gt;Hi, I have a measure that sums the data year to date. I'm now looking to have an average year to date. This is my formula, is there anything I can do here to average instead of sum? Thanks very much.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;YTD Sum =&lt;/SPAN&gt; &lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[Headcount Count Calc]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;DATESINPERIOD&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;data&lt;/SPAN&gt;&lt;SPAN&gt;[Extract Date]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;max&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;data&lt;/SPAN&gt;&lt;SPAN&gt;[Extract Date]&lt;/SPAN&gt;&lt;SPAN&gt;), -&lt;/SPAN&gt;&lt;SPAN&gt;12&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;MONTH&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 25 Jun 2024 20:58:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Turning-year-to-date-sum-to-year-to-date-average/m-p/4009814#M157720</guid>
      <dc:creator>ashsandwich</dc:creator>
      <dc:date>2024-06-25T20:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: Turning year to date sum to year to date average</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Turning-year-to-date-sum-to-year-to-date-average/m-p/4010143#M157780</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="765955" data-lia-user-login="ashsandwich" class="lia-mention lia-mention-user"&gt;ashsandwich&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I think you can use AVERAGE function. Here is the changed DAX codes.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;YTD Average =
CALCULATE (
    AVERAGE ( data[Headcount Count Calc] ),
    DATESYTD ( data[Extract Date] )
)&lt;/LI-CODE&gt;
&lt;P&gt;If you want to learn more about AVERAGE function. I think you can read this document:&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/dax/average-function-dax" target="_blank"&gt;AVERAGE function (DAX) - DAX | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Yilong Zhou&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2024 02:09:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Turning-year-to-date-sum-to-year-to-date-average/m-p/4010143#M157780</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-26T02:09:36Z</dc:date>
    </item>
  </channel>
</rss>

