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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hello Friends, Can you help me on this issue. I have 2 measures actuals and forecast and 2 columns cost and fiscal year. I want to visual a matrix with this data with a condition for fiscal year 2024 actuals needs to show and for others forecast. see the below screenshot . I have created new measure
Solved! Go to Solution.
I got the answer
Result =
var a = CALCULATE([Actuals],FILTER('Calendar','Calendar'[Fiscal Year]=2024))
var b = CALCULATE([Forecsst],FILTER('Calendar','Calendar'[Fiscal Year]<>2024))
var c = a+b
return c
I got the answer
Result =
var a = CALCULATE([Actuals],FILTER('Calendar','Calendar'[Fiscal Year]=2024))
var b = CALCULATE([Forecsst],FILTER('Calendar','Calendar'[Fiscal Year]<>2024))
var c = a+b
return c
Hi @RENJITH_R_S , this issue you're facing is a classic DAX total vs. row context problem in Power BI. Your current measure using:
IF(SELECTEDVALUE('Calendar'[Fiscal Year]) = 2024, [Actuals], [Forecast])
works for individual fiscal years in the row context, but fails at the total level because SELECTEDVALUE('Calendar'[Fiscal Year]) returns blank when multiple years are in context (like in the Total row), so it defaults to [Forecast].
What we need:
Instead of relying on SELECTEDVALUE which fails in totals, use SUMX to evaluate row-wise logic:
Final Cost = SUMX( VALUES('Calendar'[Fiscal Year]), IF( 'Calendar'[Fiscal Year] = 2024, [Actuals], [Forecast] ) )
VALUES('Calendar'[Fiscal Year]) gets a list of individual years (even in the Total row).
SUMX(...) iterates over each year and applies your logic.
It adds [Actuals] for 2024 and [Forecast] for other years.
@GrowthNatives - Thanks for the response. As per your formula, only actuals means fiscal year 2024 data is showing. no other years are showing
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.