Sorry, didn't notice that. But still, second approach should work. Here I have parametrized my dataset:

szymon_dybczak_0-1762535211275.png

Then on my bar chart visualization I applied that limit_number parameter. As you can see when I set limit_number = 5 then I 've got top 5 countries with the highest revenue at given year-month:

szymon_dybczak_2-1762535450785.png

 

When I changed my parameter number to 3 I've got different result (top 3 countries this time):

szymon_dybczak_3-1762535504302.png