Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
I have the following expression that should return the name of the Bowler with the most wickets taken, however 2 Bowlers have the same amount, how can I show both names as the shared top Wicket taker
='Leading Wkt Taker '& chr(13) &
FirstSortedValue(Bowler,-Aggr(SUM(Wickets),Bowler))
& ' ' & MAX(AGGR(SUM(Wickets),Bowler))
Maybe:
concat({<Bowler = {'=rank(sum(Wickets))=1'}>}distinct Bowler, ',')
Hope this helps!
Maybe you could integrate rank() or/and concat() in your firstsortedvalue-expression.
- Marcus
You may need to add nodistinct to your aggr functions. Aggr(nodistinct SUM(Wickets),Bowler))
I tried that, no luck....
Load * Inline [
Dim, Amt
A, 100
B, 100
C, 99
D, 98]
=FirstSortedValue( Aggr(Concat(Dim,','),Amt),-Aggr(Amt,Amt))
Gives - A,B
Tried it with Rank and Concat, but I could not get it working
Maybe:
concat({<Bowler = {'=rank(sum(Wickets))=1'}>}distinct Bowler, ',')
Hope this helps!
Thanks this worked!