Without using time intelligence functions, you can probably write something like this:
LastMonthMTD =
VAR DateSelected = SELECTEDVALUE ( 'Calendar'[Date] )
VAR PrevMonth = EOMONTH ( DateSelected, -1 )
VAR PrevDate = DATE ( YEAR ( PrevMonth ), MONTH ( PrevMonth ), DAY ( DateSelected ) )
VAR StartDate = EOMONTH ( DateSelected, -2 )
RETURN
CALCULATE (
[Sum_Covid_Cases],
'Calendar'[Date] > StartDate,
'Calendar'[Date] <= PrevDate
)
Using time intelligence, you could try something like this:
LastMonthMTD =
CALCULATE (
[Sum_Covid_Cases],
DATEADD ( DATESMTD ( 'Calendar'[Date] ), -1, MONTH )
)
I haven't tested these, so let me know if they work or not.