Tata Motors has swung to a consolidated net profit in the fiscal year ended March 31 from a loss in the previous year.