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."
|Nets top Lakers in Brooklyn, extend winning streak to six games|
|LeBron on Lakers potentially acquiring Davis: That would be amazing|
|Rain helps Sri Lanka claim draw against New Zealand|
|Mourinho had to ´take the consequences´, says Klopp|
|Ausilio: Icardi has offer on table, won´t be sold to Juve|
|Chargers lead NFL Pro Bowl selections, Brees named NFC starting QB|
|Pro Bowl 2019: Chargers lead NFL with 7 selections, Drew Brees named NFC starting QB|
|Savea re-signs with All Blacks, Hurricanes|
|Flanagan facing de-registration as Sharks, Tigers cop huge fines|
|Napoli rejected £95m offer for Koulibaly amid United links – De Laurentiis|
|Kovac feels for axed United boss Mourinho|
|Rabiot, we do not need you – PSG fans respond to wantaway midfielder|
|Guardiola hails assured debut from Man City youngster Garcia|
|He´s very happy at Tottenham – Arsenal boss Emery wants Pochettino to reject Manchester United|
|Rams sign RB C.J. Anderson|
|Good luck with the Red Devils - Norway PM´s message for Solskjaer|
|Pogba was ´dancing on the grave´ of Mourinho - Neville|
|Solskjaer set to replace Mourinho after Man United gaffe|
|City signing Steffen up to Guardiola´s goalkeeper demands, says Berhalter|
|Mourinho is so strong - Guardiola backing for fallen rival|
|Mourinho? Ausilio dismisses Inter return after United sacking|
|Whyte needs to raise his game to beat Chisora again - Haye|
|Brussino leads late Tenerife rally as Venezia down Holon|
|Orleans 1 Paris Saint-Germain 2: Super sub Diaby sends holders through|
|Leicester City 1 Manchester City 1 (1-3 on penalties): Muric stands tall in poor shoot-out|
|Middlesbrough 0 Burton Albion 1: League One side reach semi-finals|
|Bologna 0 AC Milan 0: Bakayoko sent off as Inzaghi claims point against former side|
|Fortuna Dusseldorf 2 Borussia Dortmund 1: Bundesliga leaders suffer shock first loss|
|Rivera yet to make a call on sitting Panthers QB Newton|
|Pulisic would thrive in Premier League, but Berhalter expects Dortmund stay|
|Raptors coach Nurse fined by NBA for criticising referees|
|Solari ´loves´ struggling Real Madrid star Isco|
|Mourinho sacked: Pogba, Lukaku, Fred and his other Man United signings rated|
|Mourinho sacked: What does it mean for Manchester United players?|
|Ibrahimovic provides short-term pain, long-term gain for US - Berhalter|
|River Plate 2 Al Ain 2 (aet, 4-5 on penalties): Perez misses decisive spot kick|
|De Bruyne and Aguero back for City, surprise debut for Garcia|
|Uncapped Varun ´panicked a little´ after huge IPL deal|
|Replays scrapped for FA Cup fifth round|
|Pochettino readies big guns for Gunners|
|Ex-Wasps star Wade struggling with NFL transition|
|BCCI rejects ´baseless´ claims over Kohli-Paine ´banter´|
|Ibrahimovic re-signs with LA Galaxy for 2019|
|Mourinho sacked: Solari not worried for Real Madrid job|
|Mourinho sacked: 895 days and more than £700,000 in five-star luxury|
|ES Tunis 1 Guadalajara 1 (6-5 on penalties): Dhaouadi holds nerve to settle ill-tempered affair|
|Murphy lands permanent Tigers role|
|Mourinho sacked: Real Madrid´s Marcelo lauds ´great coach´ after United exit|
|Unadkat, Varun the top buys at IPL auction|
|Emery prepared to give youth a chance in north London derby|
|Tottenham extend Vertonghen contract until 2020|
|Panthers safety Reid receives seventh random drug test of 2018|
|Kovac relishing Klopp challenge in Champions League|
|Bancroft to return, teenager Lamichhane to fly the flag for Nepal in Big Bash|
|Liverpool still have plenty of work to do - Klopp|
|Messi ´never imagined´ his success after winning record fifth Golden Shoe|
|WATCH: Timberwolves´ Gibson tries to block shot with his trainer|
|Mourinho sacked: Klopp praises departed Manchester United boss|
|Mourinho sacked: Jose the best Manchester United manager since Ferguson - Gerrard|
|Mourinho sacked: Ferdinand calls for ´fresh ideas´ at Man United|
|Mourinho sacked: The mystique has gone as United spell ends in divorce|
|´He´s an interest not only for us but for many´ - Zola praises rumoured Chelsea target Wilson|
|Mourinho sacked: Pochettino focused on Spurs amid Manchester United rumours|
|Mendis eyes double-century for departing Samaraweera|
|Mourinho sacked: Zola expects Jose to be in another job ´soon´|
|Mourinho sacked: Five reasons it went wrong at Manchester United|
|Mourinho sacked: Jose´s Manchester United record in Opta stats|
|Mourinho sacked: Pogba, Ronaldo and Jose´s biggest bust-ups|
|Mourinho sacked: Blanc, Solskjaer - the men who could steady the United ship short-term|
|Mourinho sacked: The football world reacts|