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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
tajmohamed30
Creator III
Creator III

Rank function within FieldValue

Hi Qlikees,

How can I find 1st 3 positions of each customer in customer column by Sales.

Example

PersonSales

A

100
B547
C541
D624
E547
B214

A

569
C547
D214
D632
A845
A624
B854
B124
B365
C215
D847
C621
D321
C874

Output: Display top 3 by each same person also is there a way to choose topers seperately like only list of 2nd / 3rd / 1st.

PersonSales
A845
A624
A569
B854
B547
B365
C874
C621
C547
D847
D632
D624

Your help much appreciated in community.

Regards

Taj Mohamed

1 Solution

Accepted Solutions
antoniotiman
Master III
Master III

Hi,

See Attachment.

Regards,

Antonio

View solution in original post

3 Replies
antoniotiman
Master III
Master III

Hi,

See Attachment.

Regards,

Antonio

tajmohamed30
Creator III
Creator III
Author

Thank you Antonio Mancini

This is what exactly I'm looking for, hence closing this dicsussion.

Regards

Taj Mohamed

Anil_Babu_Samineni

You can use simply this after generating the Key

If(Rank(Sum(Sales)) <= 3, Sum(Sales))

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful