Roger Federer booked his spot in the last four of the ATP Finals for the 15th time in his career and claimed his opening loss to Kei Nishikori helped him to dig deep in his last two matches.
The 37-year-old overcame Kevin Anderson 6-4 6-3 to top his group, joining both the South African and Novak Djokovic in the semi-finals of the season-ending tournament in London.
Anderson and Djokovic sealed their last-four berths having won each of their first two matches, yet Federer's shock opening loss to Nishikori had left him up against it in his final two encounters.
However, having beaten Dominic Thiem on Tuesday, the Swiss was at his scintillating best on Thursday to see off Anderson, who had beaten Federer in the Wimbledon quarter-finals earlier this year.
"I'm very happy," Federer said in his on-court interview afterwards.
"The first match was tough against Kei, I never got going. With my back against the wall, maybe it is easier for me to play.
"I tried to come up with a good game plan against Dominic and also Kevin today. I'm happy it all worked out. I'm thrilled to be in the semis.
"These round-robin formats are not straightforward; you feel like you can lose a match and still go on.
"We're used to you lose, you leave, you don't hang around.
"From that standpoint, it was more straightforward for me today."
Thiem had done Federer a favour by beating Nishikori earlier in the day and the Swiss thought the group's situation impacted both him and Anderson in their contest.
"I think it was maybe different for Kevin because he knew he had qualified and Thiem winning helped me to be more relaxed," he added.
"But I always wanted to go out with a bang, win the match and if I go through, great."
|Halep takes positives despite Dubai defeat|
|Reigning champion Van Uytvanck progresses in Budapest|
|Brough stars for Wakefield on milestone outing|
|Serbia progress in the balance with one game to go|
|DeMarcus Cousins blasts college basketball after Zion Williamson injury|
|UEFA explains ´technical issue´ behind Schalke-City VAR delays|
|Coric, Verdasco humbled in Open 13|
|Inter 4 Rapid Vienna 0 (5-0 agg): Nerazzurri cruise into Europa League last 16|
|Chelsea 3 Malmo 0 (5-1 agg): Sarri´s side stroll into last 16|
|Halep out, Kvitova dominant in Dubai|
|Marotta ´very optimistic´ Godin will join Inter|
|Emery praises Arsenal´s game management after European progress|
|Valencia 1 Celtic 0 (3-0 agg): Toljan sent off as Bhoys crash out|
|Arsenal 3 BATE 0 (3-1 agg): Emery´s men ease through|
|Woods to skip Honda Classic, play Arnold Palmer Invitational|
|Sarri recalls Hudson-Odoi for Malmo match|
|Silverwood in line for England job|
|WATCH: Norwegian goalkeeper scores stunning free-kick|
|Bencic ends Halep´s Dubai dreams|
|Playing conditions confirmed for The Hundred, reveals ECB|
|Manchester City fan suffered ´traumatic brain injury´ in alleged assault|
|Afghanistan too strong for Ireland in T20 opener|
|History-chasing Sri Lanka edge Proteas on day one|
|Tottenham an ´exciting and brilliant´ team, says Kanoute|
|Klopp fined £45,000 referee comments|
|Mourinho to analyse Clasico for beIN SPORTS|
|Ronaldo has won three Champions Leagues, not five – Atletico president Cerezo hits back at Juventus|
|Greatest Wales side ever? Not in my book, says Gatland|
|FA charge Millwall over racist chanting|
|Saiss signs new Wolves deal|
|Klopp impressed by Solskjaer´s ´brilliant job´ at United|
|De Jong excited to join ´greatest ever´ Messi at Barca|
|Gattuso ´not building anything´ at AC Milan|
|Manchester City fan in critical condition after alleged assault following Schalke game|
|Kovac wants repeat of Bayern´s defensive efforts|
|Semenya sets record straight over government funding for IAAF case|
|Tottenham´s Kane to be assessed ahead of Burnley clash|
|McIlroy to skip Irish Open|
|England rest Stokes and Buttler for Windies T20s|
|Lambert given two-game touchline ban after East Anglian derby fracas|
|Gatland puts faith in Anscombe to face England|
|PSG terminate Diarra contract|
|Nantes grant Cardiff extension over Sala payment, Warnock confirms|
|Horne replaces Russell for injury-hit Scotland in Paris|
|Eriksen´s agent ignoring transfer speculation|
|Moon and Nowell to start for England against Wales|
|PSG announce new shirt sponsor|
|Hearn expects Joshua-Usyk fight in 2020|
|Van Dijk wants to be a ´legend of Liverpool´|
|India lose Pandya for Australia T20s and ODIs|
|KNVB postpones Ajax game to boost Real Madrid preparations|
|Tigers land Rabbitohs flyer Jennings|
|Man United have new flow under Solskjaer - Wijnaldum|
|Manchester United v Liverpool: Herrera the unsung hero of resurgence|
|Manchester United v Liverpool: Alexander-Arnold gets chance to show growth at Old Trafford|
|Duke players, Coach K react to Zion Williamson’s knee injury|
|Barack Obama wishes Zion Williamson a ´speedy recovery´|
|CONCACAF Champions League Review: Santos Laguna hit Marathon for six|
|Morgan praises Root, Roy after record chase|
|LeBron sends best wishes to top NBA prospect Zion Williamson after injury|
|Schwartzman the latest seed to fall in Rio|
|Duke star Williamson suffers knee injury|
|Koke: VAR will give Morata a goal one day|
|´Everybody wants to actually talk about bull****´ – Irving angry over Durant video rumours|
|Ronaldo had a good game – Allegri backs Juventus star|
|We weren´t at our best – Tuchel after PSG´s 5-1 rout|
|LeBron James ready for Lakers´ playoff push|
|Allegri: Juventus not dead yet|
|Ronaldo: I´ve won five Champions Leagues, Atletico have zero|
|Machado picking Padres over White Sox might´ve been a mistake – Anderson|