Who is the dependent? We need more information. You have not told us their age or whether they were a full-time student, or whether they were related to you.
IRS interview to help determine who can be claimed:
https://www.irs.gov/help/ita/who-can-i-claim-as-a-dependent