Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

avg Last value per client in the selection

Hi,

how can i get the average of the latest value per client per selection?

In the case below the value will be 3,333 if I have the selection: feb 2014

Clientdatevalue
12014-01-012
12014-02-012
12014-02-153
12014-03-084
12014-09-012
12014-10-103
32014-01-011
32014-02-015
32014-02-154
32014-03-082
32014-09-013
32014-10-101
32014-09-014
32014-10-102
42014-02-083
42014-09-011
42014-10-104
42014-09-015
42014-10-101


1 Solution

Accepted Solutions
Gysbert_Wassenaar

avg(aggr(firstsortedvalue(value,-date),Client))


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar

avg(aggr(firstsortedvalue(value,-date),Client))


talk is cheap, supply exceeds demand
Not applicable
Author

Thank you Gysbert! It solved the problem!