The problem
Time-intelligence measures fail because the model has no continuous date table.
The fix
Modeling › New table, paste the expression, then Table tools › Mark as date table on the Date column.
Date =
ADDCOLUMNS (
CALENDAR ( DATE ( 2024, 1, 1 ), DATE ( 2026, 12, 31 ) ),
"Year", YEAR ( [Date] ),
"Month number", MONTH ( [Date] ),
"Month", FORMAT ( [Date], "mmm" ),
"Year-month", FORMAT ( [Date], "yyyy-mm" ),
"Weekday number", WEEKDAY ( [Date], 2 )
)
Relate 'Date'[Date] to the date column of your fact table (one to many), and sort Month by Month number.