@timmy555 wrote:
How do I use by group processing to create new variables which shows the number of successes for a country and then another variable which shows the of another variable for that country.
Assume we have no idea what you're working on, how your source data and the desired result should look like. Do you believe you're telling us enough to give you some guidance or even to provide code?