Measure | CFYTD =
// current fiscal year to date of [BaseMeasure]
VAR _ytd =
CALCULATE ( MAX ( _Dates[LatestMTD] ), REMOVEFILTERS () )
VAR _result =
CALCULATE (
[BaseMeasure],
KEEPFILTERS ( _Dates[Date] <= _ytd )
// , Dates[IsCFY] = TRUE
)
RETURN
_result
// IF( NOT ISBLANK( [BaseMeasure] ) , _result )
Created
April 26, 2022 13:20
-
-
Save PBI-DataVizzle/2267a917ac9038d5965e2ed9eb46ea9c to your computer and use it in GitHub Desktop.
Latest MTD calculation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment