Are you're referring to the transaction you want to categorize as an expense? I'd appreciate it if you could provide additional information so I could give you the most accurate resolution to your concern.
To categorize transaction as an expense:
Go to the Transactions menu.
Locate the transaction you want to categorize as Expense.
Choose the appropriate expense account.
I have here articles you can check about categorizing and editing transactions in QBSE: