Here's a neat little trick..

=IFERROR(1/(1/SUMIFS(RESULT[RaceTime],RESULT[Gala],P$12, RESULT[Event],$C13, RESULT[SwimmerName],$D$8)),"")