Please see if this is closer to the goal.
You could try using a Parameter of a list of your metrics.
Then the Value to sort by will be [Sort Value]:
CASE [Select Sort Metric]
WHEN "Visitas" THEN [Visitas]
WHEN "Minutos" THEN [Minutos]
WHEN "Min/Vis" THEN [Min/Vis]
Now in the Sort of Segmento, you can select
Descending and Sort Value summed.
This field can also be placed on your legend sheet.
Likewise here you can
Segmento, you can select sort by [Sort Value] summed
Please see workbook v9.1 attached in the Forum Thread.
274899sort.twbx 38.2 KB