Question: why gandalf is better than dumbledore?
Answer: Gandalf is greater than Dumbledore although (or perhaps because) he had less power. He rallied all the free peoples of Middle-Earth to the cause, gave them heart, and sacrificed himself to save his friends and the quest in Moria. He worked tirelessly for centuries.