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.
Hey!
I am trying to calculate a measure that takes the sum of values from last years max month (December) and compares it against this years latest visible month sum and then calculates the % change between these two value. The current year returns a correct value but previous year returns blank. Previous year and max month variables return correct values but when I wrap this up in a calculation it stops working. I've been stuck here for quite a some time so help is highly appreciated. Here is the DAX measure that I have created.
Fleet Growth % =
VAR current_year =
SELECTEDVALUE ( vDimCalendar[Year] )
VAR _LATEST =
CALCULATE (
SUM ( Assets[TotalAssets] ),
FILTER (
vDimCalendar,
vDimCalendar[Month] = MAX ( vDimCalendar[Month] )
&& vDimCalendar[Year] = current_year
)
)
VAR previous_year = current_year - 1
VAR max_month =
MAXX ( vDimCalendar, vDimCalendar[MonthNumber] )
VAR _PREVIOUS =
CALCULATE (
SUM ( Assets[TotalAssets] ),
FILTER (
vDimCalendar,
( vDimCalendar[MonthNumber] = max_month )
&& ( vDimCalendar[Year] = previous_year )
)
)
RETURN
DIVIDE ( _LATEST - _PREVIOUS, _PREVIOUS, 0 )
Hi,
Here is how to do this:
Data:
Dax:
(50-30)/(30)= 0.67
Proud to be a Super User!
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 | |
| 6 | |
| 6 |