Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
hi all,
is it possible to aggregate from a variable?
tried it like this
=FirstSortedValue(PAYMENT_TYPE, -Aggr($(Amount$), PAYMENT_TYPE))
but didn't retrieve..
any ideas?
advanced thanks
retrieve PAYMENT_TYPE (Name) by the maximum amount (amount)
Then this should work unless you have duplicates
=FirstSortedValue(PAYMENT_TYPE, -Aggr(Sum(AMOUNT), PAYMENT_TYPE))
or you can do this if you have duplicates and you want to pick one name
=FirstSortedValue(DISTINCT PAYMENT_TYPE, -Aggr(Sum(AMOUNT), PAYMENT_TYPE))
or this if you wish to show all PAYMENT_TYPE separated by commas
=Concat(DISTINCT {<PAYMENT_TYPE = {"=Rank(Sum(AMOUNT)) < 2"}>} PAYMENT_TYPE)
!!!duplicates !!!
this was the issue
thank you very much!
Awesome