Forum Discussion
Talal141218
Helper III
3 years agoYTD Last year
Hi everyone, I want to create a measure to select throgh it YTD for last year and i tryed but as below : =calculate( YTD, sameperiodlastyear(date))., but i did't got a result. Could you ple...
- 3 years ago
Hi Talal141218
please try
YTD LY =
CALCULATE (
[Measure],
FILTER (
SAMEPERIODLASTYEAR ( 'Date'[Date] ),
VALUE ( FORMAT ( [Date], "mmdd" ) ) <= VALUE ( FORMAT ( TODAY (), "mmdd" ) )
)
)
tamerj1
Community Champion
3 years agoHi Talal141218
please try
YTD LY =
CALCULATE (
[Measure],
FILTER (
SAMEPERIODLASTYEAR ( 'Date'[Date] ),
VALUE ( FORMAT ( [Date], "mmdd" ) ) <= VALUE ( FORMAT ( TODAY (), "mmdd" ) )
)
)