This trial is conducted globally. The aim of this trial is to compare the efficacy and safety of insulin degludec/liraglutide (IDegLira) versus insulin degludec (IDeg) and liraglutide (Lira) in subjects with type 2 diabetes. Subjects are to continue their pre-trial treatment with metformin or metformin + pioglitazone throughout the entire trial.