Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
scorrera
Regular Visitor

DAX Formula Help

Hello,

 

I am compare last years actual spend to this years actual spend. So I'd like to take FY24 - FY23. I was able to accomplish something similiar by using this DAX:

 

FY24 Actual vs. FY24 Budget =
VAR ActualAmount = SUM('FY24 Trial Balances'[Actual Spend])
VAR BudgetAmount = SUM('FY24 Budget'[Budget])
RETURN ActualAmount - BudgetAmount
 
This compares FY24 actual spend to the budgeted amount for FY24. The problem I run into when I do this for FY24 - FY23 is an issue with dates. I currentl doing this:
 
FY24 vs. FY23 =
VAR ActualAmount = SUM('FY24 Trial Balances'[Actual Spend])
VAR ActualAmount23 = SUM('FY23 Trial Balances'[Actual Spend])
RETURN ActualAmount - ActualAmount23
 
But what I return if I look at a table visual is something like this:
scorrera_0-1713228382604.png

 

What I actually want is take the Septmeber 2023, which is FY24, and subtract Septmber 2022, which is FY23. So I'd want 4-5 which would result in -1. Again showing that actual spend in FY24 is less than was actual spend in FY23.

 

Anything helps and thanks in advance!!!

 

Steve

 
 
1 ACCEPTED SOLUTION
ChiragGarg2512
Solution Sage
Solution Sage

Try removing the year column from the table visual. The year column breaks the months into two parts, i.e., in Sept 2022 the FY24 is 0, and Sept 2023 FY23 is blank.

 

View solution in original post

2 REPLIES 2
scorrera
Regular Visitor

Thank you! I should have thought of that lol. 

ChiragGarg2512
Solution Sage
Solution Sage

Try removing the year column from the table visual. The year column breaks the months into two parts, i.e., in Sept 2022 the FY24 is 0, and Sept 2023 FY23 is blank.

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors