I failed one portion of the IL broker exam. Do I have to retake both?

No, you can just retake the one section that you failed. However, you still need to pay the full broker exam fee of $58.