Hi @mmwillingham ,
Welcome to the microsoft TSQL Q&A forum!Your question involves tsql, my colleague helped you add the tsql tag.
If you use user-id and country as the grouping conditions to get different results, I guess it may be that one user id corresponds to multiple countries,the country and user id should not correspond one-to-one.But since you did not provide specific data, these are just guesses.
If this does not solve your problem,please us your table structure (CREATE TABLE …) and some sample data(INSERT INTO …)along with your expected result. So that we’ll get a right direction and make some test.
If you have any question, please feel free to let me know.
Regards
Echo
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.