Dean Foods has swung to a third-quarter loss as a result of a goodwill impairment charge and flat volumes in the firm's Fresh Dairy Direct business.