Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello dear community,
I'm stuck on a silly problem.
I have the following table:
In a straight table I wish to display only the lines which confirm to the following rule:
Max of sequence for a given key.
I tried aggr(max(Sequence),Key), but it is for some weird reason picking out line 1 and 5.
Attached a sample app.
Thank you in advance for getting me unstuck!
Cheers
Hi,
check firstsortedvalue()
Regards
ok, trying to figure out usage.
Remove sequence from your dimensions
hth
Sasi
The expected result is to keep row 6, and 7
If you use Aggr() in a table, then all the table dimension should be included in the Aggr()
aggr(max(Sequence),Key,Status,Sequence,product)
(but you need to remove Sequence from the table dimensions and the aggr)
PS the Aggr() is redundant - =Max(Sequence) is enough
But I think what you are perhaps after is to use the Aggr as a calculated dimension?
Tried it. It's picking out line 1, 5 and 6 ... ?
Please remove sequence from dimension and it should give you your result
Sorry i think i didnt express myself clearly.
Actually I dont need the expression field, i'm just using it to sort the table.
The expected result is as follows.
Thank you