Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
I have an input table like below
ID | Category | Coins | Rank |
1 | A | Silver | 2 |
1 | B | Gold | 1 |
1 | B | Silver | 2 |
1 | B | Bronze | 3 |
and I want the output table like below
ID | Category | Coins | Rank |
1 | A | Silver | 2 |
1 | B | Gold | 1 |
Rank is the expression field like aggr(max(Rank), ID, Category)
use FirstStoredValue(Distinct Category,-Rank)
May try this:
Dimensions:
1) ID
2) Category
Expression
1) Min(Rank)
2) FirstSortedValue(Coins, Rank)
use FirstStoredValue(Distinct Category,-Rank)
What do you mean with
"Rank is the expression field like aggr(max(Rank), ID, Category)"
Rank column is a calculated column, but self referencing?
When I used distinct its showing red line under the expression.
I have used without distinct its giving me the right output.
Thanks
Red line doesn't mean anything in this case. It just means that expression editor doesn't understand the syntax, but the expression should still work if you click okay.