<?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: Calculating Yearly Forecast and show it by month in a bar chart in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Yearly-Forecast-and-show-it-by-month-in-a-bar-chart/m-p/4036624#M159992</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="390522" data-lia-user-login="Gabiiiii" class="lia-mention lia-mention-user"&gt;Gabiiiii&lt;/a&gt;&amp;nbsp;,First create a measure for Actual Cost Up&lt;/P&gt;
&lt;P&gt;ActualCostToDate = &lt;BR /&gt;CALCULATE(&lt;BR /&gt;SUM(Financials[ActualCost]),&lt;BR /&gt;DATESBETWEEN(&lt;BR /&gt;'Date'[Date],&lt;BR /&gt;DATE(YEAR(TODAY()), 1, 1),&lt;BR /&gt;EOMONTH(TODAY(), -1)&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BudgetCostToEndOfYear = &lt;BR /&gt;CALCULATE(&lt;BR /&gt;SUM(Financials[BudgetCost]),&lt;BR /&gt;DATESBETWEEN(&lt;BR /&gt;'Date'[Date],&lt;BR /&gt;EOMONTH(TODAY(), 0) + 1,&lt;BR /&gt;DATE(YEAR(TODAY()), 12, 31)&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;YearlyForecast = [ActualCostToDate] + [BudgetCostToEndOfYear]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use Yearly Forecast measure in Y axis&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jul 2024 08:27:13 GMT</pubDate>
    <dc:creator>bhanu_gautam</dc:creator>
    <dc:date>2024-07-11T08:27:13Z</dc:date>
    <item>
      <title>Calculating Yearly Forecast and show it by month in a bar chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Yearly-Forecast-and-show-it-by-month-in-a-bar-chart/m-p/4036603#M159989</link>
      <description>&lt;P&gt;I need to create a bar chart showing the Yearly Forecast for each month -&lt;/P&gt;&lt;P&gt;x axis: Month&lt;/P&gt;&lt;P&gt;y axis: Forecast&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Forecast = Actual Cost from Jan to previous month + Budget from this month to Dec.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The bar chart should show the &lt;STRONG&gt;yearly forecast&lt;/STRONG&gt; calculated &lt;STRONG&gt;on monthly basis&lt;/STRONG&gt; for both historically and prospectively&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to write the DAX function for it? Thank you!!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2024 08:18:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Yearly-Forecast-and-show-it-by-month-in-a-bar-chart/m-p/4036603#M159989</guid>
      <dc:creator>Gabiiiii</dc:creator>
      <dc:date>2024-07-11T08:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Yearly Forecast and show it by month in a bar chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Yearly-Forecast-and-show-it-by-month-in-a-bar-chart/m-p/4036624#M159992</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="390522" data-lia-user-login="Gabiiiii" class="lia-mention lia-mention-user"&gt;Gabiiiii&lt;/a&gt;&amp;nbsp;,First create a measure for Actual Cost Up&lt;/P&gt;
&lt;P&gt;ActualCostToDate = &lt;BR /&gt;CALCULATE(&lt;BR /&gt;SUM(Financials[ActualCost]),&lt;BR /&gt;DATESBETWEEN(&lt;BR /&gt;'Date'[Date],&lt;BR /&gt;DATE(YEAR(TODAY()), 1, 1),&lt;BR /&gt;EOMONTH(TODAY(), -1)&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BudgetCostToEndOfYear = &lt;BR /&gt;CALCULATE(&lt;BR /&gt;SUM(Financials[BudgetCost]),&lt;BR /&gt;DATESBETWEEN(&lt;BR /&gt;'Date'[Date],&lt;BR /&gt;EOMONTH(TODAY(), 0) + 1,&lt;BR /&gt;DATE(YEAR(TODAY()), 12, 31)&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;YearlyForecast = [ActualCostToDate] + [BudgetCostToEndOfYear]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use Yearly Forecast measure in Y axis&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2024 08:27:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Yearly-Forecast-and-show-it-by-month-in-a-bar-chart/m-p/4036624#M159992</guid>
      <dc:creator>bhanu_gautam</dc:creator>
      <dc:date>2024-07-11T08:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Yearly Forecast and show it by month in a bar chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Yearly-Forecast-and-show-it-by-month-in-a-bar-chart/m-p/4036692#M160001</link>
      <description>&lt;P&gt;Hi bhanu, really appreciate your reply! However, I have tried similar approach, it will only show the month-on-month value if I use month as the x axis. I need to show the yearly value for each month,&amp;nbsp;&lt;/P&gt;&lt;P&gt;for example:&lt;/P&gt;&lt;P&gt;Jan: Budget from Jan-Dec&lt;/P&gt;&lt;P&gt;Feb: Actual for Jan + Budget from Feb-Dec&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Also, I do not have a date column to use, only a single "month“ column in text format&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried with AllExcept function, it's also not working as expected...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2024 08:56:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Yearly-Forecast-and-show-it-by-month-in-a-bar-chart/m-p/4036692#M160001</guid>
      <dc:creator>Gabiiiii</dc:creator>
      <dc:date>2024-07-11T08:56:53Z</dc:date>
    </item>
  </channel>
</rss>

