Create a calculated field
Use this calculated field in the view to get the desired result.
On top of the country dimension, create a group
Right Click on the dimension -> Create Group
Wow, thanks for this and the helpful screenshots.
These nested LODs are tricky!
You are welcome.
Don't try to create the logic by one formula.
Create multiple calc fields step by step with understandable failed name.
That's the easier way to keep tracking.