Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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.
User | Count |
---|---|
25 | |
12 | |
8 | |
7 | |
7 |
User | Count |
---|---|
25 | |
12 | |
11 | |
10 | |
6 |