<?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: Sum Sales Average per selected period in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-Sales-Average-per-selected-period/m-p/4328100#M171818</link>
    <description>&lt;P&gt;Try&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Last 4 weeks average =
VAR Weeks =
    CALCULATETABLE (
        VALUES ( 'Date'[Year-week] ),
        DATESINPERIOD ( 'Date'[Date], MAX ( 'Date'[Date] ), -28, DAY )
    )
VAR Result =
    AVERAGEX (
        Weeks,
        CALCULATE ( SUM ( 'Table'[Sales] ), ALLEXCEPT ( 'Date', 'Date'[Year-week] ) )
    )
RETURN
    Result
&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 13 Dec 2024 14:13:17 GMT</pubDate>
    <dc:creator>johnt75</dc:creator>
    <dc:date>2024-12-13T14:13:17Z</dc:date>
    <item>
      <title>Sum Sales Average per selected period</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-Sales-Average-per-selected-period/m-p/4326336#M171756</link>
      <description>&lt;P&gt;Hi !&lt;BR /&gt;&lt;BR /&gt;I have a daily snapshot of sales data, i am trying to count the average of sum of sales for last 4 and 12 weeks.&lt;/P&gt;&lt;P&gt;Unfortunately i am ending up having a 4weeks daily average for some reason... can somebody help me sorting that issue.&lt;BR /&gt;&lt;BR /&gt;in this case last 4 week average should be 688929. And due to daily snapshot i have 19.29...&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2024 15:29:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-Sales-Average-per-selected-period/m-p/4326336#M171756</guid>
      <dc:creator>Kopek</dc:creator>
      <dc:date>2024-12-12T15:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Sales Average per selected period</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-Sales-Average-per-selected-period/m-p/4326815#M171774</link>
      <description>&lt;P&gt;Please provide sample data that covers your issue or question &lt;STRONG&gt;completely&lt;/STRONG&gt;, in a &lt;STRONG&gt;usable&lt;/STRONG&gt; format (not as a screenshot).&lt;BR /&gt;Do not include sensitive information. Do not include anything that is unrelated to the issue or question. &lt;BR /&gt;Please show the expected outcome based on the sample data you provided. &lt;BR /&gt;&lt;BR /&gt;Need help uploading data? &lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt; &lt;BR /&gt;Want faster answers? &lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2024 22:26:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-Sales-Average-per-selected-period/m-p/4326815#M171774</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-12-12T22:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Sales Average per selected period</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-Sales-Average-per-selected-period/m-p/4328100#M171818</link>
      <description>&lt;P&gt;Try&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Last 4 weeks average =
VAR Weeks =
    CALCULATETABLE (
        VALUES ( 'Date'[Year-week] ),
        DATESINPERIOD ( 'Date'[Date], MAX ( 'Date'[Date] ), -28, DAY )
    )
VAR Result =
    AVERAGEX (
        Weeks,
        CALCULATE ( SUM ( 'Table'[Sales] ), ALLEXCEPT ( 'Date', 'Date'[Year-week] ) )
    )
RETURN
    Result
&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 13 Dec 2024 14:13:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-Sales-Average-per-selected-period/m-p/4328100#M171818</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2024-12-13T14:13:17Z</dc:date>
    </item>
  </channel>
</rss>

