He was guaranteed year end #1 after his Paris win over Chung. He first became #1 in 2017 after Federer withdrew from Cinci. They were going to battle for #1 had Roger not withdrawn due to back injury. Official date of published rankings oh him getting #1 was Mon Aug 21st, right after Cinci.