v3.7.0.1
Allowance for Doubtful Accounts (Detail) - Allowance for doubtful accounts - USD ($)
$ in Millions
12 Months Ended
Jun. 30, 2017
Jun. 30, 2016
Jun. 30, 2015
Valuation and Qualifying Accounts Disclosure [Line Items]      
Balance, beginning of period $ 426 $ 335 $ 301
Charged to costs and other 85 146 77
Write-offs (106) (55) (43)
Balance, end of period $ 405 $ 426 $ 335