Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi there
I was wondering if you can shed some ligth on the following issue.
I have been building the table below using DAX Measures, but my FORECAST measure is not running properly.
02. Year-Month (Numeric) | MONTHLY ACTUALS | ACTUALS RUNNING TOTAL | ACTUALS MONTHLY AVERAGE | YTD ACTUAL MONTHLY AVERAGE | FORECAST | PROJECTED ACTUALS | PROJECTED ACTUALS RUNNING TOTAL |
2021-07 | 2,488,049.21 | 2,488,049.21 | 2,488,049.21 | 2,488,049.21 | 2,488,049.21 | 2,488,049.21 | |
2021-08 | 2,657,616.36 | 5,145,665.57 | 2,657,616.36 | 2,572,832.79 | 2,657,616.36 | 5,145,665.57 | |
2021-09 | 2,471,660.84 | 7,617,326.41 | 2,471,660.84 | 2,539,108.80 | 2,471,660.84 | 7,617,326.41 | |
2021-10 | 3,289.95 | 7,620,616.36 | 3,289.95 | 1,905,154.09 | 2,539,108.80 | 2,542,398.75 | 10,159,725.16 |
2021-11 | - | 7,620,616.36 | - | 1,524,123.27 | 2,539,108.80 | 2,539,108.80 | 10,159,725.16 |
2021-12 | - | 7,620,616.36 | - | 1,270,102.73 | 2,539,108.80 | 2,539,108.80 | 10,159,725.16 |
2022-01 | - | 7,620,616.36 | - | 1,088,659.48 | 2,539,108.80 | 2,539,108.80 | 10,159,725.16 |
2022-02 | - | 7,620,616.36 | - | 952,577.05 | 2,539,108.80 | 2,539,108.80 | 10,159,725.16 |
2022-03 | - | 7,620,616.36 | - | 846,735.15 | 2,539,108.80 | 2,539,108.80 | 10,159,725.16 |
2022-04 | - | 7,620,616.36 | - | 762,061.64 | 2,539,108.80 | 2,539,108.80 | 10,159,725.16 |
2022-05 | - | 7,620,616.36 | 692,783.31 | 2,539,108.80 | 2,539,108.80 | 10,159,725.16 | |
2022-06 | - | 7,620,616.36 | - | 635,051.36 | 2,539,108.80 | 2,539,108.80 | 10,159,725.16 |
Totals | 7,620,616.36 | 7,620,616.36 | 635,051.36 | 635,051.36 | 2,539,108.80 | 10,159,725.16 | 10,159,725.16 |
I would like to use the previous month YTD Monthly Average as the projected value for the following months and calculate a running total to come up with the FY Result.
The table is showing the forecast values in the correct months, but it's not showing the correct total per column.
Logic tells me that I have calculated the Forecast value for one month and that needs to be replicated to the subsequest month, but unsure how to do that.
I feel that I'm missing something, but I'm teaching myself to use Power BI and to be honest I don't know where to start.
I have used the following formulas:
******
******
I hope you can put me in the right direction.
Solved! Go to Solution.
Hi @Anonymous ,
Try this:
FORECAST =
IF (
ISBLANK ( SUM ( 'Fact Table'[MONTHLY ACTUALS] ) ),
CALCULATE (
[YTD ACTUAL MONTHLY AVERAGE],
DATES[YearMonth] < MAX ( DATES[YearMonth] )
)
)
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you Icey.
I changed my approach and did the calculation a bit different and now is working.
Here is the code I used to arrive to the EOFY Expected Result based on YTD Actual Monthly Average:
FULL YEAR EXPECTED OUTCOME =
VAR MonthstoEOFY =
CALCULATE( MEDIAN ( DATES[02. FY Periods Remaining] ) ,
KEEPFILTERS ( VALUES ( 'DATES'[Date] ) ) )
RETURN
CALCULATE([YTD ACTUAL] + ([YTD ACTUAL MONTHLY AVERAGE] * MonthstoEOFY),
'DATES'[02. Offset - CurMonth] < 0 )
I created a remaining months column in my Dates table to help me with this measure.
A bit of rounded way, but it is giving me the results I need. So much to learn 😅
Thank you so much for your help.
Cheers
Jose M
Hi @Anonymous ,
Try this:
FORECAST =
IF (
ISBLANK ( SUM ( 'Fact Table'[MONTHLY ACTUALS] ) ),
CALCULATE (
[YTD ACTUAL MONTHLY AVERAGE],
DATES[YearMonth] < MAX ( DATES[YearMonth] )
)
)
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you Icey.
I changed my approach and did the calculation a bit different and now is working.
Here is the code I used to arrive to the EOFY Expected Result based on YTD Actual Monthly Average:
FULL YEAR EXPECTED OUTCOME =
VAR MonthstoEOFY =
CALCULATE( MEDIAN ( DATES[02. FY Periods Remaining] ) ,
KEEPFILTERS ( VALUES ( 'DATES'[Date] ) ) )
RETURN
CALCULATE([YTD ACTUAL] + ([YTD ACTUAL MONTHLY AVERAGE] * MonthstoEOFY),
'DATES'[02. Offset - CurMonth] < 0 )
I created a remaining months column in my Dates table to help me with this measure.
A bit of rounded way, but it is giving me the results I need. So much to learn 😅
Thank you so much for your help.
Cheers
Jose M
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
15 | |
11 | |
11 | |
10 | |
10 |
User | Count |
---|---|
19 | |
14 | |
14 | |
11 | |
8 |