XML 58 R46.htm IDEA: XBRL DOCUMENT v3.7.0.1
Acquisitions - Additional Information (Details) - USD ($)
$ in Millions
3 Months Ended 9 Months Ended
May 31, 2017
May 31, 2017
May 31, 2017
Aug. 31, 2016
Business Acquisition [Line Items]        
Goodwill $ 15,516 $ 15,516 $ 15,516 $ 15,527
AllianceRx Walgreens Prime        
Business Acquisition [Line Items]        
Total consideration 720      
Goodwill 87 87 87  
Legal and other professional fees   4 8  
Intangible assets, net $ 331 $ 331 $ 331  
Payer contracts | AllianceRx Walgreens Prime        
Business Acquisition [Line Items]        
Weighted average useful life     15 years