Quarterly Information (Unaudited) (Detail) - USD ($) $ / shares in Units, $ in Millions |
3 Months Ended | 12 Months Ended | |||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Jun. 30, 2017 |
[1] | Mar. 31, 2017 |
[1] | Dec. 31, 2016 |
[1] | Sep. 30, 2016 |
[1] | Jun. 30, 2016 |
Mar. 31, 2016 |
Dec. 31, 2015 |
Sep. 30, 2015 |
Jun. 30, 2017 |
[1] | Jun. 30, 2016 |
Jun. 30, 2015 |
||||||||||||||||
| Quarterly Financial Information [Line Items] | |||||||||||||||||||||||||||||||
| Revenue | $ 23,317 | [2] | $ 22,090 | [2] | $ 24,090 | [2] | $ 20,453 | [2] | $ 20,614 | [3] | $ 20,531 | [3] | $ 23,796 | [3] | $ 20,379 | [3] | $ 89,950 | [2] | $ 85,320 | [3] | $ 93,580 | ||||||||||
| Gross margin | 14,861 | 14,030 | 14,189 | 12,609 | 12,635 | 12,809 | 13,924 | 13,172 | 55,689 | 52,540 | 60,542 | ||||||||||||||||||||
| Operating income | 5,330 | 5,594 | 6,177 | 5,225 | 3,080 | 5,283 | 6,026 | 5,793 | 22,326 | 20,182 | 18,161 | ||||||||||||||||||||
| Net income | $ 6,513 | [4] | $ 4,801 | $ 5,200 | $ 4,690 | $ 3,122 | [5] | $ 3,756 | $ 5,018 | $ 4,902 | $ 21,204 | [4] | $ 16,798 | [5] | $ 12,193 | ||||||||||||||||
| Basic earnings per share | $ 0.84 | $ 0.62 | $ 0.67 | $ 0.60 | $ 0.40 | $ 0.48 | $ 0.63 | $ 0.61 | $ 2.74 | $ 2.12 | $ 1.49 | ||||||||||||||||||||
| Diluted earnings per share | $ 0.83 | [4] | $ 0.61 | $ 0.66 | $ 0.60 | $ 0.39 | [5] | $ 0.47 | $ 0.62 | $ 0.61 | $ 2.71 | [4] | $ 2.10 | [5] | $ 1.48 | ||||||||||||||||
| |||||||||||||||||||||||||||||||