thanks for the quick reply. I tried but it doesn't work. By the way, the min() is only used because the chart has a second dimension. So what I I want to do: give the change to sort either by dimension 1 (Country) or by the min() of the all y-values, prices for different customers (dimension 2) in a country.
I tried with a simplified example with one dimension and a simple expression:
LOAD * INLINE [
x, y1, y2
a, 2, 4
b, 1, 4
c, 3, 2
Dimension = x, Expression = y1 * y2
Var: SortBy VarValues: (Name; Value)
Sort by expression:
if( SortBy = 'Value',
(y1 * y2),
Doesn't work either. Each statement alone works...