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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Lookup in aggr

I'm having a hard time filtering out a result in a subdataset. Right about now I'm working with a gaming company and would need to filter out the game with the best score in a report. Consider this example:

PROBLEM

Capture.PNG

QUESTION

How do we write the formula for column "best game"?

Best Regards

1 Solution

Accepted Solutions
sunny_talwar

May be like this:

FirstSortedValue(game, -Aggr(Sum(Score), game, player))

UPDATE: May be you need date in there as well:

FirstSortedValue(game, -Aggr(Sum(Score), game, player, date))

View solution in original post

3 Replies
sunny_talwar

May be like this:

FirstSortedValue(game, -Aggr(Sum(Score), game, player))

UPDATE: May be you need date in there as well:

FirstSortedValue(game, -Aggr(Sum(Score), game, player, date))

marcus_sommer

Have you tried: rank(sum(score)) within such a table-chart?

- Marcus

Not applicable
Author

I was trying around with both aggr and FirstSorted but manage to fail. Thanks a lot guys, it was as simple as that