Make linking between date and result table work