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

Announcements
Now accepting applications for the Qlik Luminary and Partner Ambassador Programs: Apply by July 6!
cancel
Showing results for 
Search instead for 
Did you mean: 
jduluc12
Creator
Creator

firstsortedvalue and concat

Hi

I want to show name of top 5 customers who recently have bought some items.

So the first function that come to my mind is to FirstSortedValue but it returns only 1 value at a time and i need to use it concat function to show 5 top customers.

Is there any solutions for it?

Regards,

Jean

Labels (1)
2 Replies
sunny_talwar
MVP
MVP

May be use Rank function instead of FirstSortedValue() function here

robert_mika
MVP
MVP

Maybe something along is line?

concat(distinct IF(aggr(rank(count(Items),0,1),Customers)<6,Customers))

Post a sample or qvw if that will not work.