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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

sort number

I have a straight table .
This results in the table below:

rankrank2storeProductscolorQty
?????90
11Cat2Pdt2718
11Cat2Pdt4910
11Cat2Pdt389
11Cat2Pdt156
21Cat3Pdt4910
21Cat3Pdt389
21Cat3Pdt278
21Cat3Pdt156
31Cat1Pdt445
31Cat1Pdt334
31Cat1Pdt223
31Cat1Pdt112


I want to show three row for store is cat2 and cat1 and cat3.
I have created an expression using rowno() or rowno(total) but it didn't work
i use calcuate demension =aggr(rank(sum(Qty)),store,Products,color) but it only show 1
i want to show 1,2,3,4

i want to show the result below

rankrank2storeProductscolorQty
?????90
11Cat2Pdt2718
12Cat2Pdt4910
13Cat2Pdt389
14Cat2Pdt156
21Cat3Pdt4910
22Cat3Pdt389
23Cat3Pdt278
24Cat3Pdt156
31Cat1Pdt445
32Cat1Pdt334
33Cat1Pdt223
34Cat1Pdt112



Thanks in ADVANCE!

4 Replies
renjithpl
Specialist
Specialist

if i understood your question,

in Rank2 if color is one of your field then you can use below

= Rank(color)

Regards

Ranjit

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

It looks like you want to rank within store so the expression would be:

=aggr(rank(sum(Qty)),store)

-Rob

Not applicable
Author

Thanking you for your reply. but i want rank qty by store

Not applicable
Author

Thanking you for your reply .rob wunderlich very much thanks for you

but =aggr(rank(sum(Qty)),store) only show rank

i want show rank2

rankrank2storeProductscolorQty
?????90
11Cat2Pdt2718
12Cat2Pdt4918
13Cat2Pdt3818
14Cat2Pdt1518
21Cat3Pdt4910
22Cat3Pdt389
23Cat3Pdt278
24Cat3Pdt156
31Cat1Pdt445
32Cat1Pdt334
33Cat1Pdt223
34Cat1Pdt112