Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hello Community
I’m trying to forecast my current month revenue by (Average Rate * no of patient) derived from different business location Revenue dividing by number of patient to average rate . Is there any way my to forecast revenue based on last 15 to 30 days or last month for any new month? Currently, I have built the following calculation based on average daily revenue. But it’s not efficient and accurate.
Currently I’m averaging all the revenue starting from Feb. But forecasted number with the average looks off. Also used Forecasting PowerBI feature. But I’m not sure how to calculate the actual and forecasted value together in Power Bi to calculate total for the month.
Daily Revenue = CALCULATE(SUM(Census[Total_Estimate_Revenue]),DATEADD('Calendar'[Date],0,MONTH))
Forecasted = IF (
ISBLANK ( SUM ( Census[Total_Estimate_Revenue]) ),
AVERAGEX
(CALCULATETABLE (VALUES ( 'Calendar'[Date] ),
ALLEXCEPT ( 'Calendar', 'Calendar'[Date], 'Calendar'[Month] )),
(CALCULATE ( SUM ( Census[Total_Estimate_Revenue] ) ) )))
Actual +Forecast = ([Daily Revenue] + [Forecasted])
Current Forecast
Highlighted is not able to sum the calculation
Difficulties
Solved! Go to Solution.
Hi @Anonymous ,
1. Try to create formula like this.
Actual +Forecast =
IF (
ISBLANK ( SUM ( Census[Total_Estimate_Revenue] ) ),
AVERAGEX (
FILTER (
ALL ( census ),
[dateid] <= MAX ( [dateid] )
&& [dateid]
> MAX ( [dateid] ) - 15
),
[Daily Revenue]
),
[Daily Revenue]
)
3. After the data is refreshed, the measure will also be refreshed
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
1. Try to create formula like this.
Actual +Forecast =
IF (
ISBLANK ( SUM ( Census[Total_Estimate_Revenue] ) ),
AVERAGEX (
FILTER (
ALL ( census ),
[dateid] <= MAX ( [dateid] )
&& [dateid]
> MAX ( [dateid] ) - 15
),
[Daily Revenue]
),
[Daily Revenue]
)
3. After the data is refreshed, the measure will also be refreshed
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.