There currently are a variety of options to travel by night train from Ylivieska (Finland) to Helsinki (Finland), taking between approximately 7 and 10 hours: Namely the Yöjuna 262, the Yöjuna 264 and the Yöjuna 274. These lines are operated by VR.
VR is Finland's national railway company, operating passenger trains across Finland, including night trains connecting the south of the country with the north.