For example, if I have two artists with the same name...
Wait...As it stands, how are you differentiating them in other areas...
For the first question, I use a custom tag for grouping and as a preset for the file organizer, both of which reference a country tag when it exists.
This is what my file organizer preset is: $IsNull(<Country>,<Album Artist>,<Album Artist>" ("<Country>")")\<Album>\<Disc-Track#> <Title>.
Alright, I think I get it now. What caught me out at first was that I thought you meant two different artists had the same literal <artist> value.
But I now see that you mean one could have an artist value like <Mike Jackson> for one artist and <Michael Jackson> for another totally different artist.
And to make things easier, you'd wanna group them as <Mike Jackson (Country 1)> and <Michael Jackson (Country 2)> ?
Do I have that right?
Yes, 100% correct.
For instance, there are two Skid Rows, one Irish and one American.
I would use a conditional "country" tag to get "Skid Row (USA)" and "Skid Row (Ireland)", for instance. If the "country" tag were blank, the album artist would just be "Skid Row."
What this enables is avoiding the "Album Artist" field getting mangled with a bunch of (Country) qualifiers that impacts searching, for instance. It also works well with various sorting orders when using Album Artist, which I prefer as my Artist tag is where featured or guest artists are listed. I use the country tag when and where I need to through custom tags/sorting/display columns/file naming conventions.
However, the Library limits the group options, so I cannot use the custom tag - as a result, all of my "Skid Row" albums are grouped together even though they are distinct artists.
I've been contemplating a few other ways to achieve the same or similar effect, one of which being the ability to use custom tags in the custom sorting field, but this is also not possible. I don't know enough yet to figure out if there is a way to use a custom tag in the Display Artist field, if that is even possible...but that was my next angle to explore.