This was already answered, the data from the main are always present in the merged header as well

https://forum.jsreport.net/topic/1377/accessing-data-from-header-footer/6
https://forum.jsreport.net/topic/2487/share-body-data-in-header/7