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.
What I am trying to accomplish is the following:
Doing projections for months that have not occured by using the past averages of those months like the following:
In this picutre the projected december average is all the previous December average's and January is previous January etc.
Here are the following tables and calculations I created
'Actuals :'
'Calendar'
What I also need as well is if there is a number in there for the actuals already than it is blank. I have the following formula thus far:
Solved! Go to Solution.
Hi,
Something like this should work:
End result:
I hope this helps and if it does consider accepting this as a solution and giving the post a thumbs up!
Proud to be a Super User!
Hi @Anonymous
You could have a measure like this.
Projections =
IF(ISBLANK([Actuals :]),
CALCULATE(
AVERAGEX(
VALUES('Calendar'[Year]),
[Actuals :]
),
REMOVEFILTERS('Calendar'),
VALUES('Calendar'[Month])
)
)
Actually I am idiot this is working, but one quick question. Where do I need to put the sum feature so it sums total like:
Do you mean having a projection value on the grant total line?
If so, the first problem is the if condition used so far: ISBLANK([Actuals :]). this stops the measure returning a value for the Total row.
Next, for a SUM to work we'll need to iterate a table of years and months for which we want a projection.
I've split this into 2 measures, but you could combine them if you wish.
First the measure used before, but removing the IF condition
Monthly Projection =
CALCULATE(
AVERAGEX(
VALUES('Calendar'[Year]),
[Actuals :]
),
REMOVEFILTERS('Calendar'),
VALUES('Calendar'[Month])
)
Then the measure that assumes we want a projection for months later than the last actuals amount.
Projections =
VAR _MaxActualDate = CALCULATE(EOMONTH(MAX(Actuals[Date]), 0), REMOVEFILTERS())
VAR _CurrentDate = MAX('Calendar'[Date])
VAR _Result =
CALCULATE(
SUMX(
SUMMARIZE('Calendar','Calendar'[Year],'Calendar'[Month]),
[Monthly Projection]
),
KEEPFILTERS(DATESBETWEEN('Calendar'[Date], _MaxActualDate +1, _CurrentDate))
)
RETURN
_Result
Question on second part of your formula: On the
VAR _MaxActualDate = CALCULATE(EOMONTH(MAX(Actuals[Date]), 0), REMOVEFILTERS())
I have a calculated field of actuals and a calendar table to where they are on seperate tables to where I do not have a actulas[date] column identifier. What actuallly needs to go here?
Actuals[Date] is the column in your amounts table used in the relationship to the calendar table
Thanks I believe I figured it out had to switch some references around. Thanks I will mark as solution once i am 100% sure.
Hi,
Something like this should work:
End result:
I hope this helps and if it does consider accepting this as a solution and giving the post a thumbs up!
Proud to be a Super User!
Here is how I have it written I am having trouble getting it to translate:
Any advice the first submission did not work.
User | Count |
---|---|
15 | |
11 | |
6 | |
6 | |
5 |
User | Count |
---|---|
29 | |
17 | |
11 | |
7 | |
5 |