v3.24.3
Fair value of financial instruments - Additional Information (Detail) - CAD ($)
$ in Millions
12 Months Ended
Oct. 31, 2024
Oct. 31, 2023
Disclosure of fair value measurement of assets and liabilities [line Items]    
Changes in the fair value of the financial assets designated as at FVTPL attributable to changes in credit risk $ 45 $ 360
Transfers out of Level 2 to Level 1 0 0
Maximum exposure to credit risk 954 692
Cumulative change in fair value attributable to changes in credit risk (9) (102)
Banking services [member]    
Disclosure of fair value measurement of assets and liabilities [line Items]    
Fees received for services 6,347 6,112
Investment management, trust, custodial, underwriting, brokerage and other similar fiduciary services [member]    
Disclosure of fair value measurement of assets and liabilities [line Items]    
Fees received for services 17,467 15,319
Obligations related to securities sold short [member]    
Disclosure of fair value measurement of assets and liabilities [line Items]    
Transfers out of Level 1 to Level 2   151
Investment U.S. federal, state, municipal and agencies [member]    
Disclosure of fair value measurement of assets and liabilities [line Items]    
Transfers out of Level 1 to Level 2 822 435
Trading U.S. federal, state, municipal and agencies debt [Member]    
Disclosure of fair value measurement of assets and liabilities [line Items]    
Transfers out of Level 1 to Level 2 1,038 $ 763
Level 3 [member]    
Disclosure of fair value measurement of assets and liabilities [line Items]    
Positive fair value using reasonably possible alternatives 132  
Negative fair value using reasonably possible alternatives 126  
Positive fair value using other reasonably possible alternatives assets recorded in other components of equity 58  
Negative fair value using other reasonably possible alternatives assets recorded in other components of equity 56  
Negative fair value movement from using reasonably possible alternatives 72  
Positive fair value movement from using reasonably possible alternatives $ 69  
Significant unobservable inputs used in fair value measurement of assets and liabilities [member] | Level 3 [member]    
Disclosure of fair value measurement of assets and liabilities [line Items]    
Discount rate adjustment when discounted cash flow method is used to determine fair value 2.00%