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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount 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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.