<?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 I need to create a universal forecast measure that would take into account any interval set in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-need-to-create-a-universal-forecast-measure-that-would-take/m-p/3075529#M156916</link>
    <description>&lt;P&gt;There is a table with a plan for months. There is also a table with a fact by day. It is necessary to calculate the forecast for the end of the period, which is defined by the filter. Let's say there is a fact by day for January and a fact by day until February 7th. The time filter is set to January 1 - February 28. The formula for calculating the linear forecast that I use is: Fact for the month I clicked on/number of sale days * number of days in the month. Below pictures:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&amp;nbsp;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&amp;nbsp;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&amp;nbsp;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;This is the same product that was sold in January and February.&lt;BR /&gt;Overhead bold cumulative sales on Feb. 7, followed by down January sales and February sales.&lt;BR /&gt;In the case of selecting sales for February, I received a correct forecast (green card). When choosing for January, in theory, I got a figure of what sales could be in terms of a linear forecast, but the period is already closed. The biggest problem is the result of the forecast when choosing total current sales. The formula considers an incorrect prediction.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Obviously, I need to create a condition that will evaluate the presence of the fact of a closed period (months) and calculate the forecast until the end of the current period. I need to create a universal measure that would take into account any interval set by the time filter.&lt;BR /&gt;The forecast measure, in my opinion, might look like this: Fact of the closed period + (Fact for the month I clicked on / number of sales days * number of days in the month.)&lt;BR /&gt;This is where I have a problem(&lt;BR /&gt;I would be very grateful for an example solution.&lt;/P&gt;</description>
    <pubDate>Fri, 10 Feb 2023 21:23:13 GMT</pubDate>
    <dc:creator>Sergii22</dc:creator>
    <dc:date>2023-02-10T21:23:13Z</dc:date>
    <item>
      <title>I need to create a universal forecast measure that would take into account any interval set</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-need-to-create-a-universal-forecast-measure-that-would-take/m-p/3075529#M156916</link>
      <description>&lt;P&gt;There is a table with a plan for months. There is also a table with a fact by day. It is necessary to calculate the forecast for the end of the period, which is defined by the filter. Let's say there is a fact by day for January and a fact by day until February 7th. The time filter is set to January 1 - February 28. The formula for calculating the linear forecast that I use is: Fact for the month I clicked on/number of sale days * number of days in the month. Below pictures:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&amp;nbsp;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&amp;nbsp;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&amp;nbsp;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;This is the same product that was sold in January and February.&lt;BR /&gt;Overhead bold cumulative sales on Feb. 7, followed by down January sales and February sales.&lt;BR /&gt;In the case of selecting sales for February, I received a correct forecast (green card). When choosing for January, in theory, I got a figure of what sales could be in terms of a linear forecast, but the period is already closed. The biggest problem is the result of the forecast when choosing total current sales. The formula considers an incorrect prediction.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Obviously, I need to create a condition that will evaluate the presence of the fact of a closed period (months) and calculate the forecast until the end of the current period. I need to create a universal measure that would take into account any interval set by the time filter.&lt;BR /&gt;The forecast measure, in my opinion, might look like this: Fact of the closed period + (Fact for the month I clicked on / number of sales days * number of days in the month.)&lt;BR /&gt;This is where I have a problem(&lt;BR /&gt;I would be very grateful for an example solution.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 21:23:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-need-to-create-a-universal-forecast-measure-that-would-take/m-p/3075529#M156916</guid>
      <dc:creator>Sergii22</dc:creator>
      <dc:date>2023-02-10T21:23:13Z</dc:date>
    </item>
  </channel>
</rss>

