<?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 average weekly sales of current quarter to estimate quarter sales in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-average-weekly-sales-of-current-quarter-to-estimate/m-p/2675751#M79947</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291628" data-lia-user-login="Jihwan_Kim" class="lia-mention lia-mention-user"&gt;Jihwan_Kim&lt;/a&gt;&amp;nbsp;Thank you for the help!&amp;nbsp; This solution worked.&amp;nbsp; Much appreciated.&lt;/P&gt;</description>
    <pubDate>Tue, 02 Aug 2022 13:48:09 GMT</pubDate>
    <dc:creator>jhenscheid1</dc:creator>
    <dc:date>2022-08-02T13:48:09Z</dc:date>
    <item>
      <title>Calculate average weekly sales of current quarter to estimate quarter sales</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-average-weekly-sales-of-current-quarter-to-estimate/m-p/2673931#M79832</link>
      <description>&lt;P&gt;Hello, I am trying to calculate average weekly sales of the current fiscal quarter so that I can use those results to estimate what the quarterly results will be.&amp;nbsp; I think I am making this more difficult that what it needs to be, but am coming up at a loss to figure this out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In excel, I could go to the formula and simply divide out by the number of the current fiscal week to get the average, but I want to be able to do that automatically within Power BI using a dax formula.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is a screen shot of the current numbers.&amp;nbsp; And so for quarter 3, I want to take the total ($1,804,215 so far) and divide that by the number of fiscal weeks (5) to get my average.&amp;nbsp; Easy enough to do with a formula, but when fiscal week 32 rolls around, I want to have the same formula calulate the average.&amp;nbsp; I would then want that average to be in its own column so that it can represent the pace for that quarter.&amp;nbsp; &amp;nbsp;When the 4th quarter starts, I would need the process to start over.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&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;</description>
      <pubDate>Mon, 01 Aug 2022 21:20:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-average-weekly-sales-of-current-quarter-to-estimate/m-p/2673931#M79832</guid>
      <dc:creator>jhenscheid1</dc:creator>
      <dc:date>2022-08-01T21:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate average weekly sales of current quarter to estimate quarter sales</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-average-weekly-sales-of-current-quarter-to-estimate/m-p/2674296#M79851</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure how your caledar table looks like, but I tried to create a sample pbix file like below.&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file. I hope the below can provide some ideas on how to create a solution for your dataset.&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;LI-CODE lang="markup"&gt;Avg quarterly: =
AVERAGEX (
    ADDCOLUMNS (
        CALCULATETABLE (
            SUMMARIZE ( 'Calendar', 'Calendar'[Fiscal Quarter], 'Calendar'[Fiscal Week] ),
            ALLEXCEPT ( 'Calendar', 'Calendar'[Fiscal Quarter] )
        ),
        "@sales", [Sales measure:]
    ),
    [@sales]
)
&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 02 Aug 2022 03:14:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-average-weekly-sales-of-current-quarter-to-estimate/m-p/2674296#M79851</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-08-02T03:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate average weekly sales of current quarter to estimate quarter sales</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-average-weekly-sales-of-current-quarter-to-estimate/m-p/2675751#M79947</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291628" data-lia-user-login="Jihwan_Kim" class="lia-mention lia-mention-user"&gt;Jihwan_Kim&lt;/a&gt;&amp;nbsp;Thank you for the help!&amp;nbsp; This solution worked.&amp;nbsp; Much appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 13:48:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-average-weekly-sales-of-current-quarter-to-estimate/m-p/2675751#M79947</guid>
      <dc:creator>jhenscheid1</dc:creator>
      <dc:date>2022-08-02T13:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate average weekly sales of current quarter to estimate quarter sales</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-average-weekly-sales-of-current-quarter-to-estimate/m-p/2693361#M81169</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291628" data-lia-user-login="Jihwan_Kim" class="lia-mention lia-mention-user"&gt;Jihwan_Kim&lt;/a&gt;&amp;nbsp;Hello.&amp;nbsp; I present the solution you provided and the results, but was informed I needed to carry forward the average value through the following quarter.&amp;nbsp; So in my original request where I stated "&lt;SPAN&gt;I would then want that average to be in its own column so that it can represent the pace for that quarter.&amp;nbsp; &lt;STRONG&gt;&lt;FONT color="#000000"&gt;&amp;nbsp;When the 4th quarter starts, I would need the process to start over..."&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT color="#000000"&gt;I was wrong in that the value would need to start over.&amp;nbsp; I tried to work through the calculations you provided, but am not getting it to work.&amp;nbsp; Could you take a look for me and provide a new solution?&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;FONT color="#000000"&gt;Thanks&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 19:18:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-average-weekly-sales-of-current-quarter-to-estimate/m-p/2693361#M81169</guid>
      <dc:creator>jhenscheid1</dc:creator>
      <dc:date>2022-08-10T19:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate average weekly sales of current quarter to estimate quarter sales</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-average-weekly-sales-of-current-quarter-to-estimate/m-p/2693885#M81196</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Sorry that I do not understand. Could you please provide a sample pbix file's link with Q4 data included and also with how the expected numbers/visualization look like? And then I can try to look into it to come up with a more accurate solution.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2022 03:38:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-average-weekly-sales-of-current-quarter-to-estimate/m-p/2693885#M81196</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-08-11T03:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate average weekly sales of current quarter to estimate quarter sales</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-average-weekly-sales-of-current-quarter-to-estimate/m-p/2695293#M81298</link>
      <description>&lt;P&gt;Hello and sorry for the confusion.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the previous solution you provided allowed me to create a measure called Weekly Avg where I am able to estimate future weeks based on actuals, but it currently only calculates for the current Fiscal Quarter.&amp;nbsp; I need to carry those values forward to the next Fiscal Quarter (see screen shot).&amp;nbsp; From that I can easily calculate a value for the Quarterly Pace column.&amp;nbsp;&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;STRONG&gt;Weekly Avg Formula:&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Weekly Avg = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;AVERAGEX&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ADDCOLUMNS&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATETABLE&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SUMMARIZE&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;'Datefile_Yesterday'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;Datefile_Yesterday[Fiscal Quarter]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;Datefile_Yesterday[Fiscal Week]&lt;/SPAN&gt;&lt;SPAN&gt; ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ALLEXCEPT&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;'Datefile_Yesterday'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;Datefile_Yesterday[Fiscal Quarter]&lt;/SPAN&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"@sales"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;[Netsales]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[@sales]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The other column, Cumulative Net Sales, which may be impacting the results is calculated by:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Cumulative Net Sales = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[Netsales]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&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;'Datefile_Yesterday'&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Datefile_Yesterday[Transaction Date]&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;Datefile_Yesterday[Transaction Date]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;amp;&amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;Datefile_Yesterday[Fiscal Year]&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;Datefile_Yesterday[Fiscal Year]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if more information is needed.&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2022 13:23:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-average-weekly-sales-of-current-quarter-to-estimate/m-p/2695293#M81298</guid>
      <dc:creator>jhenscheid1</dc:creator>
      <dc:date>2022-08-11T13:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate average weekly sales of current quarter to estimate quarter sales</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-average-weekly-sales-of-current-quarter-to-estimate/m-p/2696708#M81407</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Thank you for your explanation.&lt;/P&gt;
&lt;P&gt;However, in your screen capture, Quart-4 NetSales is blank. May I ask how do you want to see this as a weekly average?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 06:31:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-average-weekly-sales-of-current-quarter-to-estimate/m-p/2696708#M81407</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-08-12T06:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate average weekly sales of current quarter to estimate quarter sales</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-average-weekly-sales-of-current-quarter-to-estimate/m-p/2697493#M81474</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291628" data-lia-user-login="Jihwan_Kim" class="lia-mention lia-mention-user"&gt;Jihwan_Kim&lt;/a&gt;&amp;nbsp;.&amp;nbsp; See below screen shot.&amp;nbsp; I was able to reach out to one of our developers who solved this so I will mark this as solved.&amp;nbsp; For your reference, below are the DAX measurements they created for this.&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;Weekly Avg&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Quarter Pace&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 13:31:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-average-weekly-sales-of-current-quarter-to-estimate/m-p/2697493#M81474</guid>
      <dc:creator>jhenscheid1</dc:creator>
      <dc:date>2022-08-12T13:31:57Z</dc:date>
    </item>
  </channel>
</rss>

