I'm not an expert but I think a doctor needs to first verify it's sleep walking and not something else. If you're appear conscious and alert then it could be DID.
From what I've read the main cause of dissociation is trauma or anxiety while sleepwalking is believed to be caused by other things but I read they don't know the cause of sleepwalking.