Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
tripatirao
Creator II
Creator II

Top 5 Customer

Hi all

I want to show top 5 customer in my textbox.

this is my expression.

=concat(DISTINCT if(aggr(rank(sum({<DELTYPE={SALES}>}AMT_TRANS*$(=Curr_Factor))),CUST_NAME)<=5,CUST_NAME)&  CHR(13))

the above expression gives me top 5 customer in a text box but not in proper ascending order.

for ex-

2nd top selling customer coming first

5th top selling customer coming second

but

I want in ascending order.

Thanks in advance.

7 Replies
sujeetsingh
Master III
Master III

Not applicable

Hi Tripati,

Go through the below link it might help u

Not able to sort correctly a top 10 in a bar chart

Not applicable

Digvijay_Singh

There is a sort weight option in Concat, try if you can identify one of you weight field to be used to sort your values.

Not applicable

Not applicable

tripatirao
Creator II
Creator II
Author

Hi

i am not able to get sort weight in concat function...

any solution

thanks