<?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 Help with measure that will show the forecast for the next 12 months in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-measure-that-will-show-the-forecast-for-the-next-12/m-p/3163900#M113710</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am looking for a solution to creating a metric to predict the needs (forecast) of an item for use in a linear visualisation or in a table. I tried to use forecasting in visualisation, but the data is too irregular...&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;For the x-axis data, I am using years and months and this metric is Sale &amp;amp; Cons Qty. for the Y axis&lt;SPAN&gt;. This gives a nice visualisation of how items are sold or consumed in the time period, from here I would like to add forecasting from today forward to the next 12 months.&lt;BR /&gt;&lt;BR /&gt;Currently these are my measures:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Same period last year = 
CALCULATE(
    [Sale &amp;amp; Cons. Qty.],
    SAMEPERIODLASTYEAR(dim_Dates[Date]))



Forecast_CM-PYM = 
DIVIDE(
    ([Sale &amp;amp; Cons. Qty.] - [Same period last year]),[Same period last year])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;From here i would like to somehow&amp;nbsp;get forecasting for only upcoming 12 months (secondary line in visualization)&lt;BR /&gt;Bacisly what i am trying to achive is calculation:&lt;BR /&gt;From measure Forecast_CM-PYM I get the % diff, between same months in this and previous year.&lt;BR /&gt;Here i am missing one measure which would give me average&amp;nbsp;Forecast_CM-PYM % for the current year. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Form this new measure i would than add previous&amp;nbsp;years months data - and this would give me some basic forecasting for upcoming 12 months. And this measure should only be calculated from today to next 12 months (so the line would continue&amp;nbsp;from Sale &amp;amp; Cons. Qty to Forecasting)&lt;BR /&gt;&lt;BR /&gt;something like this:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for the help&lt;BR /&gt;BR, Maln&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 30 Mar 2023 16:30:20 GMT</pubDate>
    <dc:creator>Maln</dc:creator>
    <dc:date>2023-03-30T16:30:20Z</dc:date>
    <item>
      <title>Help with measure that will show the forecast for the next 12 months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-measure-that-will-show-the-forecast-for-the-next-12/m-p/3163900#M113710</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am looking for a solution to creating a metric to predict the needs (forecast) of an item for use in a linear visualisation or in a table. I tried to use forecasting in visualisation, but the data is too irregular...&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;For the x-axis data, I am using years and months and this metric is Sale &amp;amp; Cons Qty. for the Y axis&lt;SPAN&gt;. This gives a nice visualisation of how items are sold or consumed in the time period, from here I would like to add forecasting from today forward to the next 12 months.&lt;BR /&gt;&lt;BR /&gt;Currently these are my measures:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Same period last year = 
CALCULATE(
    [Sale &amp;amp; Cons. Qty.],
    SAMEPERIODLASTYEAR(dim_Dates[Date]))



Forecast_CM-PYM = 
DIVIDE(
    ([Sale &amp;amp; Cons. Qty.] - [Same period last year]),[Same period last year])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;From here i would like to somehow&amp;nbsp;get forecasting for only upcoming 12 months (secondary line in visualization)&lt;BR /&gt;Bacisly what i am trying to achive is calculation:&lt;BR /&gt;From measure Forecast_CM-PYM I get the % diff, between same months in this and previous year.&lt;BR /&gt;Here i am missing one measure which would give me average&amp;nbsp;Forecast_CM-PYM % for the current year. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Form this new measure i would than add previous&amp;nbsp;years months data - and this would give me some basic forecasting for upcoming 12 months. And this measure should only be calculated from today to next 12 months (so the line would continue&amp;nbsp;from Sale &amp;amp; Cons. Qty to Forecasting)&lt;BR /&gt;&lt;BR /&gt;something like this:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for the help&lt;BR /&gt;BR, Maln&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 16:30:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-measure-that-will-show-the-forecast-for-the-next-12/m-p/3163900#M113710</guid>
      <dc:creator>Maln</dc:creator>
      <dc:date>2023-03-30T16:30:20Z</dc:date>
    </item>
  </channel>
</rss>

