How would i show which City as a Value has the highest sales ?
Not the sales number
FirstSortedValue(City , Sum(Sales))
I need it to show the city that has the highest sales
what object type are you using?
=Only( Aggr( if( Sum(Sales) = Max( total Aggr( Sum(Sales), City) ), City, Null() ), City) )
May be this
FirstSortedValue(City, -Aggr(Sum(Sales), City))
Concat(Aggr(If(Sum(Sales) = Max(TOTAL Aggr(Sum(Sales), City), City), City), ', ')
Try something like
IF(RANK(AGGR(SUM(SALES),CITY) = 1,ONLY(CITY))
Retrieving data ...