Joe Root continued his prolific start to the season with a record-breaking performance alongside Bradford’s Jonny Bairstow as they both prepare to leave Yorkshire for England commitments.

Sheffield born batsman Root took his tally of championship runs for the season to 467 in only three innings to establish himself as the first division’s leading run-scorer with a brilliant 236 that caused records to tumble.

His innings, which spanned three and a half hours at the crease, overshadowed an equally brilliant 186 from Bairstow that helped Yorkshire score 433 runs in a day, exploiting batsman-friendly conditions and the loss of Derbyshire seamer Tony Palladino from their attack with a side strain to secure a 122-run lead.

Their quick-scoring, which was also aided by Gary Ballance’s unbeaten 50 off 53 balls, ensured a dramatic turnaround in fortunes on the third day from a 311-run deficit at the start to give Yorkshire the chance of an amazing victory on the final day by reaching 597-5.

In spearheading that turnaround, records were shattered for most of the day.

Root’s innings was his career best, taking him past 2,000 championship runs in only 52 innings – the same number Geoff Boycott and Herbert Sutcliffe took to reach the milestone – and was the highest individual innings scored by a Yorkshire batsman at Headingley since Darren Lehmann’s 339 against Durham in 2006.

Their 231-run fourth wicket partnership, spanning 51 overs, was also Yorkshire’s highest fourth-wicket stand against Derbyshire, beating the 211 recorded by Vic Wilson and Willie Watson at Harrogate in 1961, while Bairstow also passed 4,000 first class runs after reaching 12.

Yorkshire’s day did not begin well, losing two wickets before lunch, with Phil Jacques being run out after a mix-up with Root over a quick single and was quickly followed by captain Andrew Gale after he picked out mid-off attempting to drive at spinner David Wainwright.

From then on Yorkshire dominated until Root was bowled around his legs by spinner Dan Redfern having hit 24 fours.

That was the signal for Bairstow and Ballance to accelerate, adding 212 in 30 overs in the final session until Bairstow holed out to the square leg boundary with seven balls remaining.