Hello friends. I have a dataset like this:
ID Qualification Score
A BS
A Graduated
A MS
B BS
B Graduated
B PhD
My question is about rows "Graduated"
For every ID (Identifier), I want to have a score of 0 for "Graduated" if ID already has BS.

I have tried the following code:
bysort ID : replace Score = 0 if Qualification=="Graduated" & Qualification=="BS"
But, sadly, it is not working. It says "(0 real changes made)"

Any suggestions?
I hope to hear from you.
Thank you very much.