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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

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.