Hi Belinda,
This sounds like a chi-square test of independence, which can be obtained in Fit Y b X as Karen noted. I wanted to add that your data can be in raw or summarized form, but if you have summary data you will need to use the "Freq" role in Fit Y by X. I've attached a screenshot of example data, both in raw and summary format, with the setup in Fit Y by X and the output.
I hope this helps!
Julian