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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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