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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
swanpaws
Frequent Visitor

Forecast value measure

I'm trying to generate a measure which will track the amount of approved jobs out of all jobs forecasted for the current month.

 

 

 

swanpaws_1-1720104335953.png

The problem

 

In the guage visual above I currently have approved documents out of max approved (monthly) historically. This is because I have to look back in time for the denominator (i.e. max value) because jobs are generated on an ongoing basis. So I can't know at the beginning of each month how many jobs will be created. And the max value only gives an approximation of how many jobs will be created and is therefore not very accruate.

 

swanpaws_2-1720104531188.png

 

The issue with using max is that it's backward-looking and as is clear from the historical time series, the # of jobs each month are growing. What I really would like is a measure which gives an estimate value of jobs to be expected for the current month which is forecasted from the count of jobs historcially approved each month.

 

The solution would be a measure version of the forecasting available in analytics which will give a numerical value of jobs forecasted to be generated this month.

 

swanpaws_3-1720104604432.png

 

Is there a way to generate this forecast with DAX code in Powerbi?

 

Thanks in advance!

 

 

 

 

 

 

1 ACCEPTED SOLUTION
swanpaws
Frequent Visitor

Solved in the end with the following:

 

CurrentMonthForecast =
VAR PreviousMonth = EOMONTH(TODAY(), -1)
VAR FirstMonthStatusCount = 64
VAR LastMonthStatusCount = [StatusCountPreviousMonth]
VAR NumberOfMonths = DATEDIFF(DATE(2023, 7, 31), PreviousMonth, MONTH)
VAR GrowthRate = ( LastMonthStatusCount / FirstMonthStatusCount) ^ (1 / NumberOfMonths) - 1
RETURN LastMonthStatusCount * (1 + GrowthRate)
 
StatusCountPreviousMonth was a count measure of a column which checked for previous month and returned status. 

View solution in original post

1 REPLY 1
swanpaws
Frequent Visitor

Solved in the end with the following:

 

CurrentMonthForecast =
VAR PreviousMonth = EOMONTH(TODAY(), -1)
VAR FirstMonthStatusCount = 64
VAR LastMonthStatusCount = [StatusCountPreviousMonth]
VAR NumberOfMonths = DATEDIFF(DATE(2023, 7, 31), PreviousMonth, MONTH)
VAR GrowthRate = ( LastMonthStatusCount / FirstMonthStatusCount) ^ (1 / NumberOfMonths) - 1
RETURN LastMonthStatusCount * (1 + GrowthRate)
 
StatusCountPreviousMonth was a count measure of a column which checked for previous month and returned status. 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.