v3.19.2
Summary of Changes in Accumulated Other Comprehensive Income (Loss) by Component (Detail) - USD ($)
$ in Millions
12 Months Ended
Jun. 30, 2019
Jun. 30, 2018
Jun. 30, 2017
Accumulated Other Comprehensive Income (Loss) [Line Items]      
Balance, beginning of period $ 82,718 $ 87,711  
Net change related to other comprehensive income (loss) 1,914 (2,856) $ (1,167)
Balance, end of period 102,330 82,718 87,711
Derivatives      
Accumulated Other Comprehensive Income (Loss) [Line Items]      
Balance, beginning of period 173 134 352
Unrealized gains (losses), net of tax 160 218 328
Tax expense (benefit) included in provision for income taxes 8 6 9
Amounts reclassified from accumulated other comprehensive income (loss) (333) (179) (546)
Net change related to other comprehensive income (loss) (173) 39 (218)
Balance, end of period 0 173 134
Derivatives | Revenue      
Accumulated Other Comprehensive Income (Loss) [Line Items]      
Reclassification adjustments for (gains) losses (341) (185) (555)
Investments      
Accumulated Other Comprehensive Income (Loss) [Line Items]      
Balance, beginning of period (850) 1,825 2,941
Unrealized gains (losses), net of tax 2,331 (1,146) 517
Tax expense (benefit) included in provision for income taxes (19) 738 880
Amounts reclassified from accumulated other comprehensive income (loss) 74 (1,571) (1,633)
Net change related to other comprehensive income (loss) 2,405 (2,717) (1,116)
Cumulative effect of accounting changes (67) 42 0
Balance, end of period 1,488 (850) 1,825
Investments | Other income (expense), net      
Accumulated Other Comprehensive Income (Loss) [Line Items]      
Reclassification adjustments for (gains) losses 93 (2,309) (2,513)
Translation adjustments and other      
Accumulated Other Comprehensive Income (Loss) [Line Items]      
Balance, beginning of period (1,510) (1,332) (1,499)
Net change related to other comprehensive income (loss) (318) (178) 167
Balance, end of period (1,828) (1,510) (1,332)
Accumulated other comprehensive income (loss)      
Accumulated Other Comprehensive Income (Loss) [Line Items]      
Balance, beginning of period (2,187) 627 1,794
Net change related to other comprehensive income (loss) 1,914 (2,856) (1,167)
Cumulative effect of accounting changes (67) 42 0
Balance, end of period $ (340) $ (2,187) $ 627