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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
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

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

robert_mika

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.