Question: are gandalf and dumbledore the same actor?
Answer: No. Albus Dumbledore was portrayed by Richard Harris (Philosopher's Stone/Chamber of Secrets) and Michael Gambon (all other movies). Gandalf was portrayed by Ian McKellen.