<?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: Quarterly Average from daily forecast data in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Quarterly-Average-from-daily-forecast-data/m-p/4307229#M171038</link>
    <description>&lt;P&gt;Thanks a lot Jayleny, it worked! &lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 29 Nov 2024 08:05:36 GMT</pubDate>
    <dc:creator>LillaF</dc:creator>
    <dc:date>2024-11-29T08:05:36Z</dc:date>
    <item>
      <title>Quarterly Average from daily forecast data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Quarterly-Average-from-daily-forecast-data/m-p/4297676#M170640</link>
      <description>&lt;P&gt;Guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need help in calculating the quarterly average forecast from my forecast values (need a DAX measure).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a fact table, 'Forecasted Value':&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;And a Calendar table:&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;The two are linked by the "Date" column in the Data model.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you help how I should go about this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Lilla&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2024 17:04:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Quarterly-Average-from-daily-forecast-data/m-p/4297676#M170640</guid>
      <dc:creator>LillaF</dc:creator>
      <dc:date>2024-11-22T17:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: Quarterly Average from daily forecast data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Quarterly-Average-from-daily-forecast-data/m-p/4298091#M170668</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="860157" data-lia-user-login="LillaF" class="lia-mention lia-mention-user"&gt;LillaF&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is your desired output? See if you create a matrix using the fact table, keeping date (hirerchey)&amp;nbsp; in the row , average of forcast in the value and family in the column, you should get quarterly avg values. hope you have already tried this. SO were are you stucking.&lt;/P&gt;</description>
      <pubDate>Sat, 23 Nov 2024 07:21:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Quarterly-Average-from-daily-forecast-data/m-p/4298091#M170668</guid>
      <dc:creator>Rupak_bi</dc:creator>
      <dc:date>2024-11-23T07:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: Quarterly Average from daily forecast data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Quarterly-Average-from-daily-forecast-data/m-p/4298255#M170678</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="583487" data-lia-user-login="Rupak_bi" class="lia-mention lia-mention-user"&gt;Rupak_bi&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for answering. Actually my customer wants to compare the 3-months rolling forecast with the quarterly average forecast value, that's why I would rather keep the monthly scales in the rows and not go for date hierarchy.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created the&amp;nbsp;3-months rolling forecast measure, see in Report view:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;3&lt;/SPAN&gt;&lt;SPAN&gt;-months Rolling Forecast =&amp;nbsp;&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;[Total Forecast]&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;Calendar_Lilla&lt;/SPAN&gt;&lt;SPAN&gt;[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;Calendar_Lilla&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;-&lt;/SPAN&gt;&lt;SPAN&gt;3&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;MONTH&lt;/SPAN&gt;&lt;SPAN&gt;)&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 I would need to add the quarterly average forecast to this matrix. So I'm not looking for the monthly forecast like this:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I need the qly avg forecast in this column, while keeping the monthly scale in the matrix. (So for Oct'24, Nov'24 and Dec'24, I would need avg $660,767 to be displayed. For Jan'25, Feb'25, Mar'25, I would need $1,784,158 to be displayed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wondering if it's feasible somehow..?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If not, I will go for changing the dates for dates (hierarchy).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Lilla&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 23 Nov 2024 13:03:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Quarterly-Average-from-daily-forecast-data/m-p/4298255#M170678</guid>
      <dc:creator>LillaF</dc:creator>
      <dc:date>2024-11-23T13:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: Quarterly Average from daily forecast data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Quarterly-Average-from-daily-forecast-data/m-p/4298344#M170687</link>
      <description>&lt;P&gt;Can you post some sample data ?&lt;/P&gt;</description>
      <pubDate>Sat, 23 Nov 2024 18:23:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Quarterly-Average-from-daily-forecast-data/m-p/4298344#M170687</guid>
      <dc:creator>SachinNandanwar</dc:creator>
      <dc:date>2024-11-23T18:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Quarterly Average from daily forecast data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Quarterly-Average-from-daily-forecast-data/m-p/4300118#M170760</link>
      <description>&lt;P&gt;Hi Sachin,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sure, please see here:&amp;nbsp;&lt;A href="https://docs.google.com/spreadsheets/d/1Gn-cXFcAoEMto5wqLRj2Tp62gu9JEuaEGXJdVvDJrbY/edit?usp=sharing" target="_blank"&gt;https://docs.google.com/spreadsheets/d/1Gn-cXFcAoEMto5wqLRj2Tp62gu9JEuaEGXJdVvDJrbY/edit?usp=sharing&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the desired output. I'm not sure how to make this look kinda the same in Power BI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks:&lt;/P&gt;&lt;P&gt;Lilla&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2024 15:05:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Quarterly-Average-from-daily-forecast-data/m-p/4300118#M170760</guid>
      <dc:creator>LillaF</dc:creator>
      <dc:date>2024-11-25T15:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: Quarterly Average from daily forecast data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Quarterly-Average-from-daily-forecast-data/m-p/4301314#M170795</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="860157" data-lia-user-login="LillaF" class="lia-mention lia-mention-user"&gt;LillaF&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Please try the following measure:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
VAR _quarter = QUARTER(SELECTEDVALUE('Table'[Date]))
VAR _year = YEAR(SELECTEDVALUE('Table'[Date]))
RETURN
CALCULATE(AVERAGEX(FILTER(ALL('Table'),QUARTER('Table'[Date]) = _quarter &amp;amp;&amp;amp; YEAR('Table'[Date]) = _year),'Table'[Total Forecast]))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Result:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Jayleny&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2024 05:56:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Quarterly-Average-from-daily-forecast-data/m-p/4301314#M170795</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-26T05:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: Quarterly Average from daily forecast data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Quarterly-Average-from-daily-forecast-data/m-p/4307229#M171038</link>
      <description>&lt;P&gt;Thanks a lot Jayleny, it worked! &lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2024 08:05:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Quarterly-Average-from-daily-forecast-data/m-p/4307229#M171038</guid>
      <dc:creator>LillaF</dc:creator>
      <dc:date>2024-11-29T08:05:36Z</dc:date>
    </item>
  </channel>
</rss>

