I'll chime in, however I think my situation may be different.
I bought my brand new 2016 Micra SR on October 31st 2016. I can't remember how many km exactly but it was probably around 500. Whenever I would shift my car into drive, there was a similar knocking sound. I took it four times to the dealership and they finally found out it was the shifter cable. Since I've had it replaced, it's been running without the knocking sound.
It's kind of upsetting that on a brand new car the shifter cable was already damaged. And when they ordered a new shifter cable, that one came already broken so I had to wait for a new one to come in (and cross my fingers that one wasn't broken, too).
I think I'm going to keep an ear out for this knocking sound now, though. Just in case.