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."
|Finland to face Canada in final after downing Russia|
|Valverde not to blame for Barcelona´s Copa defeat, says president Bartomeu|
|Rummenigge reaffirms Bayern Munich´s Kovac stance after DFB-Pokal triumph|
|Barcelona season bittersweet after Copa loss, says Pique|
|Ribery proud after making victorious Bayern Munich farewell|
|Centurion Smith unfazed by England boos|
|Warrington battle past Wigan as Giants humiliate Hull|
|Barcelona 1 Valencia 2: Valverde pressure increases as Catalans denied historic Copa win|
|Leinster retain Pro14 title to spoil Hogg farewell|
|F1 Raceweek: Hamilton hopes rain will not scupper likely Monaco glory|
|Bayern Munich 3 RB Leipzig 0: Lewandowski´s brace helps secure domestic double|
|Crusaders march on as Sharks enjoy derby delight|
|Champions League failure would be ´huge disappointment´ for Atalanta - Gasperini|
|Lennon offered full-time Celtic job after treble-treble|
|Paris Saint-Germain must pull together in one direction to improve - Tuchel|
|Toulon end Castres´ reign, La Rochelle and Montpellier seal play-off spots|
|Coutinho, Semedo & Arthur start Copa del Rey final after injury problems|
|Yastremska shrugs off Garcia to claim maiden clay title|
|Gasly handed Monaco grid penalty|
|Without him, I would have one title – Hamilton dedicates Monaco pole to Lauda|
|Neymar, Mbappe and how to help Kimpembe: Tuchel´s Paris Saint-Germain to-do list|
|Outgoing Ribery and Robben on Bayern bench as Neuer starts DFB-Pokal final|
|Carapaz takes Maglia Rosa after climbing to stage 14 win|
|Injured Keita named in Guinea´s provisional AFCON squad|
|Wiesberger leads at Made in Denmark after Schwab struggles|
|Edouard brace fires Celtic to historic treble-treble|
|Paire picks off Auger Aliassime in Lyon final|
|Leclerc demands Ferrari answers and prays for rain after Monaco farce|
|Putintseva claims first WTA title at Nuremberg Cup|
|Gattuso: Champions League not imperative for Milan job prospects|
|Mancini confident of taking Italy into a new era|
|Experience will serve Inter well in ´cup final´ - Spalletti|
|Hamilton beats out Bottas as Leclerc suffers Monaco nightmare|
|Reynolds hurt but Rabbitohs still too strong for Wests Tigers|
|Ronaldo rested before Allegri heads for the beach|
|Nagelsmann can establish Leipzig at the top - Rangnick|
|Europa League win would cap ´dream´ Chelsea season, says Emerson|
|Rebels have cause to celebrate, Waratahs hurt by Jaguares|
|Tuchel extends PSG contract to 2021|
|Marquinhos ´didn´t understand´ Mbappe´s PSG exit hint|
|Van Dijk out to improve on ´nuts´ Barca clash in Champions League final|
|Wood worry for England ahead of World Cup|
|Kompany takes Manchester City academy coach to Anderlecht|
|Terry will manage Chelsea before Lampard does, says Wise|
|Keary blow for Blues ahead of Origin opener in Brisbane|
|French Open 2019: Is clay king Nadal finally vulnerable at Roland Garros?|
|French Open 2019: Unburdened Federer has a free hit on Roland Garros return|
|Yelich first to 20 homers, Diamondbacks score 18 runs|
|Bucks won´t overuse Giannis in pursuit of NBA Finals – Budenholzer|
|MLS Review: LAFC roll on with Impact win, Galaxy end skid|
|Tabarez confident Suarez will be fit for Copa America|
|Ranieri to pay fine if De Rossi wears special armband in Roma farewell|
|Blue Jays team-mates Biggio and Guerrero make MLB history|
|Aulas: Fekir allowed to leave Lyon|
|Lionel Messi wins sixth European Golden Shoe|
|Mets sign Kemp after losing Cespedes to injury|
|Jaguars´ Fournette happy to have fresh start with new season|
|Curry: Warriors will carry on when Durant returns|
|Blixt leads Charles Schwab Challenge|
|Wydad Casablanca 1 ES Tunis 1: 10-man hosts earn draw in Champions League final opener|
|Yelich´s beer chugging skills convinced Brewers of his back health|
|´That´s not facts´ – Durant disputes idea Warriors are better in his absence|
|Tuchel expects PSG stay despite late-season wobble|
|Afghanistan pull off Pakistan upset|
|Caen relegated to Ligue 2 as Dijon book play-off|
|Teenager Yastremska stands between Garcia and Strasbourg success|
|LeBron ´likes´ Instagram photo of Kyrie in Lakers jersey|
|How Weaver and City´s Wembley heroes paved the way for Guardiola glory|
|Mbappe ensures PSG make Ligue 1 history despite defeat|
|Zverev to face Jarry in Geneva Open final|