<?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 Dynamic Average (calendar year to date) in Desktop</title>
    <link>https://community.fabric.microsoft.com/t5/Desktop/Dynamic-Average-calendar-year-to-date/m-p/1278330#M559677</link>
    <description>&lt;P&gt;Hi experts! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a &lt;STRONG&gt;dynamic average of the sales based on the current year sales (calendar year to date)&lt;/STRONG&gt;&lt;BR /&gt;&lt;FONT color="#FF6600"&gt;so it would be the average sales from jan'2020 until july'2020&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;and then when I ad August, it would add up August and calculate the new average based on the 8 months from the year&lt;BR /&gt;What formula should I use? I tried using Averagex, but I think I missed something.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for the help&lt;/P&gt;</description>
    <pubDate>Thu, 06 Aug 2020 18:40:27 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-08-06T18:40:27Z</dc:date>
    <item>
      <title>Dynamic Average (calendar year to date)</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Dynamic-Average-calendar-year-to-date/m-p/1278330#M559677</link>
      <description>&lt;P&gt;Hi experts! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a &lt;STRONG&gt;dynamic average of the sales based on the current year sales (calendar year to date)&lt;/STRONG&gt;&lt;BR /&gt;&lt;FONT color="#FF6600"&gt;so it would be the average sales from jan'2020 until july'2020&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;and then when I ad August, it would add up August and calculate the new average based on the 8 months from the year&lt;BR /&gt;What formula should I use? I tried using Averagex, but I think I missed something.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for the help&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2020 18:40:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Dynamic-Average-calendar-year-to-date/m-p/1278330#M559677</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-06T18:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Average (calendar year to date)</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Dynamic-Average-calendar-year-to-date/m-p/1278412#M559704</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you try this ----- YTD Avg = CALCULATE(AVERAGE(Table[Value]), DATESYTD(Table[Date], "mention the date here"))&lt;/P&gt;&lt;P&gt;In order to make YTD dynamic at the place of "mention the date here" you can use some time intelligence table probably.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2020 20:25:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Dynamic-Average-calendar-year-to-date/m-p/1278412#M559704</guid>
      <dc:creator>mhossain</dc:creator>
      <dc:date>2020-08-06T20:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Average (calendar year to date)</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Dynamic-Average-calendar-year-to-date/m-p/1278733#M559804</link>
      <description>&lt;P&gt;it didnt work &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="196265" data-lia-user-login="mhossain" class="lia-mention lia-mention-user"&gt;mhossain&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;this is my table set, I am trying to get the average of Sales from January2020 until the latest month that year.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2020 00:59:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Dynamic-Average-calendar-year-to-date/m-p/1278733#M559804</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-07T00:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Average (calendar year to date)</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Dynamic-Average-calendar-year-to-date/m-p/1279132#M559929</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Table:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may create&amp;nbsp; calculated columns and a measure as below to&amp;nbsp;&lt;SPAN&gt;get the average of Sales from January2020 until the latest month(August) that year.&lt;BR /&gt;Calculated column:&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Year = YEAR('Table'[Date])

Month = MONTH('Table'[Date])

YearMonth = YEAR('Table'[Date])*100+MONTH('Table'[Date])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Measure:&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Avg = 
DIVIDE(
    CALCULATE(
        SUM('Table'[Sell Out(MSU)]),
        FILTER(
            ALL('Table'),
            [Year]=YEAR(TODAY())&amp;amp;&amp;amp;
            [Month]&amp;gt;=1&amp;amp;&amp;amp;
            [Month]&amp;lt;=MONTH(TODAY())
        )
    ),
    CALCULATE(
        DISTINCTCOUNT('Table'[YearMonth]),
        FILTER(
            ALL('Table'),
            [Year]=YEAR(TODAY())&amp;amp;&amp;amp;
            [Month]&amp;gt;=1&amp;amp;&amp;amp;
            [Month]&amp;lt;=MONTH(TODAY())
        )
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Allan&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial',sans-serif;"&gt;If this post &lt;STRONG&gt;&lt;SPAN style="font-family: 'Arial',sans-serif;"&gt;helps&lt;/SPAN&gt;&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;I&gt;&lt;SPAN style="font-family: 'Arial',sans-serif;"&gt;Accept it as the solution&lt;/SPAN&gt;&lt;/I&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2020 05:18:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Dynamic-Average-calendar-year-to-date/m-p/1279132#M559929</guid>
      <dc:creator>v-alq-msft</dc:creator>
      <dc:date>2020-08-07T05:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Average (calendar year to date)</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Dynamic-Average-calendar-year-to-date/m-p/1306556#M567736</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you take the answer of someone, please mark it as the solution to help the other members who have same problems find it more quickly. If not, let me know and I'll try to help you further. Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Allan&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 07:53:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Dynamic-Average-calendar-year-to-date/m-p/1306556#M567736</guid>
      <dc:creator>v-alq-msft</dc:creator>
      <dc:date>2020-08-19T07:53:01Z</dc:date>
    </item>
  </channel>
</rss>

