Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
Hi There I have a measure where if I don't have an actual I use a forecast, this measure works well at the monthly level , but I am not sure why I can't get my total to work. Actuals - $8,335,806 (Jul to Oct), Forecast - $19,854,201 (Nov to Jun) Total should be $28,190,007 for col ACT/FCT
My formula is
Thanks All
Solved! Go to Solution.
Hi,
I am not sure how your datamodel looks like, but please try something like below whether it suits your requirement.
ACT / FCT =
SUMX (
DISTINCT ( 'TableName'[Period Month] ),
CALCULATE (
IF (
SUMX ( 'FY23 Data', 'FY23 Data'[ACT] ) = BLANK (),
SUMX ( 'FY23 Forecast', 'FY23 Forecast'[FCT] ),
SUMX ( 'FY23 Data', 'FY23 Data'[ACT] )
)
)
)
@B_Ed1978 Posting so hopefully you will vote for the idea.
First, please vote for this idea: https://ideas.powerbi.com/ideas/idea/?ideaid=082203f1-594f-4ba7-ac87-bb91096c742e
This looks like a measure totals problem. Very common. See my post about it here: https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376
Also, this Quick Measure, Measure Totals, The Final Word should get you what you need:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907
Also: https://youtu.be/uXRriTN0cfY
And: https://youtu.be/n4TYhF2ARe8
Hi,
I am not sure how your datamodel looks like, but please try something like below whether it suits your requirement.
ACT / FCT =
SUMX (
DISTINCT ( 'TableName'[Period Month] ),
CALCULATE (
IF (
SUMX ( 'FY23 Data', 'FY23 Data'[ACT] ) = BLANK (),
SUMX ( 'FY23 Forecast', 'FY23 Forecast'[FCT] ),
SUMX ( 'FY23 Data', 'FY23 Data'[ACT] )
)
)
)
Thankyou so much this worked 👍
@B_Ed1978 , try like
ACT / FCT =
var actuals = sumx('FY23 Data','FY23 Data'[ACT])
var forecast = sumx('FY23 Forecast','FY23 Forecast'[FCT])
var result = sumx(Values(Table[Period]) , calculate( if(actuals=blank(),forecast,actuals)) )
return
result
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 3 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 11 | |
| 9 | |
| 8 | |
| 7 | |
| 6 |