Without a date table in your model, you'll need a measure similar to this:
Value YTD =
var sDate = CALCULATE( LASTDATE(Sheet1[Date]), REMOVEFILTERS('Sex') )
var result = TOTALYTD( SUM('Sheet1'[Value]), ALL('Sheet1'[Date]), 'Sheet1'[Date] <= sDate)
RETURN COALESCE(result, 0)