XML 67 R48.htm IDEA: XBRL DOCUMENT v3.10.0.1
Acquisitions - narrative (Details)
$ in Millions
12 Months Ended
Sep. 19, 2017
USD ($)
distribution_center
store
Mar. 31, 2017
USD ($)
Aug. 31, 2018
USD ($)
distribution_center
store
Aug. 31, 2017
USD ($)
Aug. 31, 2016
USD ($)
Business Acquisition [Line Items]          
Goodwill     $ 16,914 $ 15,632 $ 15,527
Rite Aid          
Business Acquisition [Line Items]          
Number of stores expected to be acquired | store 1,932        
Number of distribution centers expected to be acquired | distribution_center 3   2    
Consideration to be transferred $ 4,375        
Number of stores acquired | store     1,932    
Consideration 4,330   $ 4,157    
Goodwill $ 1,344        
AllianceRx Walgreens Prime          
Business Acquisition [Line Items]          
Goodwill   $ 103      
Total consideration   $ 720      
Customer Contracts | AllianceRx Walgreens Prime          
Business Acquisition [Line Items]          
Weighted average useful life   15 years