Dominating but not winning means the opposition got their orders spot on, while your formation & order did play a part in the downfall.

It's not only about formation, it's the tactics i.e orders + formation (plus of course the rarest odd results thrown in the mix)