Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Sergii22
Helper I
Helper I

I need to create a universal forecast measure that would take into account any interval set

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:

Date Interval.jpg

Actual 1.jpg Forecast 1.jpg

Actual 2.jpg Forecast 2.jpg

Actual 3.jpg Forecast 3.jpg

This is the same product that was sold in January and February.
Overhead bold cumulative sales on Feb. 7, followed by down January sales and February sales.
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.

 

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.
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.)
This is where I have a problem(
I would be very grateful for an example solution.

0 REPLIES 0

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.