Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

firstsortedvalue and P()

How can I combine these:


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


Client = P({1<order={2}>} Client)


Hope someone can help!


liivi




Labels (1)
1 Solution

Accepted Solutions
MarcoWedel
MVP
MVP

Hi,

maybe one solution could be:

=avg(aggr(firstsortedvalue({$<Client = P({1<order={2}>} Client)>} value,-date),Client))


hope this helps

regards


Marco

View solution in original post

2 Replies
Anonymous
Not applicable
Author

Did you try this?

avg({<Client = P({1<order={2}>}>} aggr(firstsortedvalue(value,-date),Client))

MarcoWedel
MVP
MVP

Hi,

maybe one solution could be:

=avg(aggr(firstsortedvalue({$<Client = P({1<order={2}>} Client)>} value,-date),Client))


hope this helps

regards


Marco