Shareholders' Equity (Additional Information) (Details) - USD ($) |
3 Months Ended | 9 Months Ended | ||||
|---|---|---|---|---|---|---|
Apr. 27, 2019 |
Apr. 28, 2018 |
Apr. 27, 2019 |
Apr. 28, 2018 |
Jul. 28, 2018 |
Feb. 14, 2018 |
|
| Class of Stock [Line Items] | ||||||
| Cash dividends paid per common share (in dollars per share) | $ 0.35 | $ 0.33 | $ 1.01 | $ 0.91 | ||
| Payments of dividends | $ 1,500,000,000 | $ 1,600,000,000 | $ 4,489,000,000 | $ 4,433,000,000 | ||
| Authorized additional repurchase amount | $ 15,000,000,000 | |||||
| Remaining authorized repurchase amount | 18,000,000,000 | 18,000,000,000 | ||||
| Stock repurchase program | ||||||
| Class of Stock [Line Items] | ||||||
| Stock repurchases pending settlement | $ 200,000,000 | $ 200,000,000 | $ 180,000,000 | |||