You'll want to use a rank function for this, similar to the one you already defined:
This is a table calculation, so you'll need to make sure it runs within the right scope (country or pane in this situation):
If you use that on filter, you are good to go. See attached.
Hope this helps!
Plot 3 _v10.5.twbx 1.4 MB