Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Save $600 on Qlik Connect registration! Sign up by Dec. 6 to get an extra $100 off with code CYBERSAVE: REGISTER
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.