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."
|Pochettino or Sarri for Juve? We´ll see – Lippi|
|Buccaneers release McCoy after nine seasons|
|England want to leave Europe and they´re in two finals – Mancini jokes about Brexit|
|Raptors star Leonard ´will be ready´ to face Bucks – Nurse|
|Iguodala out of Game 4 against Trail Blazers|
|Allegri inducted into Italian Football Hall of Fame|
|Steelers QB Roethlisberger ´genuinely sorry´ for Brown comments|
|Mets´ Cespedes fractures ankle in ranch accident|
|Italy remain at top table, Great Britain rally to relegate France|
|Guardiola convinced Kompany´s destined to return to Manchester City|
|Yastremska sets up Stosur clash in Strasbourg|
|Anderson stars for Lancashire on return from injury|
|Ebden and Seppi shocked in Geneva, Humbert shines at Lyon Open|
|AFC Champions League Review: Spain great Xavi ends playing career with defeat|
|Bernardo Silva makes Champions League pledge after winning Man City award|
|Henin impressed by Halep ahead of French Open defence|
|I love you, I´m out - Departing Kompany has his mic-drop moment in City´s trophy parade|
|Abelardo opts to leave post as Alaves coach|
|Magic Johnson points finger at Pelinka after Lakers power struggle|
|Junaid deletes inflammatory tweet following World Cup squad omission|
|Bosz: Champions League improves chances of keeping Brandt & Havertz|
|PSG insist Mbappe will stay despite forward´s ´new project´ comments|
|Former Salford forward Turgut hospitalised with ´severe injuries´|
|Potter takes over as Brighton and Hove Albion boss|
|Ancelotti happy at Napoli amid Juventus links|
|Hemel Stags on course for Ottawa relocation, New York club a work in progress|
|Nadal overtakes Federer´s top-10 streak|
|Omitting Wahab and Amir would have been foolish - Inzamam|
|Scotland appoint Kilmarnock boss Clarke|
|I´ll keep my place if Pogba arrives at Madrid – Kroos|
|Kroos: Madrid struggles ´normal´ after Champions League dominance|
|Pogba, Hazard and Mbappe in, Bale and Isco out? - Real Madrid set for busy close-season|
|Double amputee Monger stunned by Grand Prix de Pau triumph|
|Walter to take over Stuttgart from next season|
|Giannis expects Milwaukee to buck their ideas up after Game 3 loss|
|Bolivian FA confirms death of referee Victor Hugo Hurtado|
|Australia opener Burns leaves Lancashire for personal reasons|
|Record-breaking female driver Chadwick lands Williams development chance|
|Semedo cleared of concussion to boost Barcelona|
|Iguodala questionable for Game 4|
|Neymar should not captain Brazil at Copa America - Edmilson|
|Wahab, Amir and Asif named in final Pakistan World Cup squad|
|Bale staying at Madrid impossible as Zidane is ´not keen´ - Calderon|
|Kroos agrees Real Madrid extension to 2023|
|Gundogan to renew contract talks with Manchester City|
|Folau opts not to appeal against Rugby Australia ban, still considering options|
|Nadal clear French Open favourite – Djokovic|
|Nedved: No Juve decision amid Sarri and Inzaghi links|
|Gil Marin: We need players totally committed to Atletico|
|Gardner´s big game helps Yankees pull away from Rays|
|This is playoff basketball – Leonard on playing through injury in Raptors win|
|Second most NRL games and 99 tries – Cronk´s career in Opta numbers|
|Spieth: I´m almost back at my best|
|Three takeaways from Raptors´ key Game 3 win over Bucks|
|Trail Blazers star Lillard addresses rib injury|
|Raptors top Bucks in double-OT thriller|
|MLS Review: Nani brace lifts Orlando, Galaxy stunned by Rapids|
|Cronk: It´s been one hell of a ride|
|Johnson upbeat despite falling short|
|Koepka holds on at US PGA – how a dramatic back nine unfolded at Bethpage Black|
|´Phenomenal´ and ´mind-blowing´ – Koepka basks in US PGA triumph|
|NRL great Cronk to retire at season´s end|
|Kevin Muscat to leave Melbourne Victory|
|Bethpage wobble does little to deny Koepka´s status as golf´s dominant major force|
|Brooks Koepka´s timeline of major dominance following US PGA triumph|
|Koepka relieved to retain US PGA title after ´stressful´ finish|
|Allegri seeking a challenge, not a sabbatical|
|Koepka retains PGA title despite back-nine collapse|
|Spalletti tells players to prove they´ve the bottle to play for Inter|
|City want to dominate English football forever, says Laporte|