In the demo the avgOver( Sales , [Product, Country], PRE_AGG, [Country]), seems to use 4 arguments :
Sales = Measure
Product, Country = Partition Field
PRE_AGG = calculation level
What is [Country]? Is that the sort?
Docs seem only to mention 3 arguments : avgOver - Amazon QuickSight