My requirement is to find CITYwise,Top VENDORSHORTNAME according to sum(trade_value) and then count of LOCATIONID
i have create a Variable with following expression : vTopVendorCitywise: FirstSortedValue(VENDORSHORTNAME,-aggr(Sum(TRADE_VALUE),VENDORSHORTNAME,CITY))
below is the expression in using in Straight table with Dimension CIty