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

Announcements
Learn how to migrate to Qlik Cloud Analytics™: On-Demand Briefing!
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

2 Replies
sunny_talwar

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

robert_mika
Master III
Master III

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.