Is he, like, a supreme wizard? I'm asking this because I just got done (over the past day) binge-watching all 3 parts of The Hobbit. And there's a scene in it where (forgive my lack of Middle Earth knowledge) Gandalf goes to this abandoned castle where The Necromancer is. And he kinda gets his butt kicked, until Galadriel shows up and cleans house.
Then, in the Battle of the Five Armies, he's confronted by some large creature in Dale. He muddles around trying to get his staff to glow until Al ends up accidentally catapulting himself into the monster's throat, thus saving Gandalf.
So, is there some Middle Earth canon that explains why Gandalf is one of five great wizards (him, Saruman, the brown wizard and two brothers that only get mentioned once in The Hobbit), yet seems to be rather poor at wizardry?