You can't perform the victory dance until you've defeated a Cog. Once you win a battle against one, the dance becomes available.