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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Function 'Rank'

Hi Experts,

      I have a question about ranking. In my qvw app, there is only one table, as below 'table data' shows.

I want to calculate the rank of each area in each month, like 'what i want table' shows.

How to edit this expression?

Attached please find my qvw file. Thanks

what i want table:

areaabc
monthvrkvrkvrk
16382101
2714362

table data:

monthareasales
1a6
1b8
1c10
1d8
1e1
1f9
1g9
1h10
2a7
2b4
2c6
2d5
2e6
2f2
2g7
2h7
1 Solution

Accepted Solutions
lironbaram
Partner - Master III
Partner - Master III

hi

have a look at the attach example

all you need to do is use hrank function instead of rank

PIC1.jpg

View solution in original post

9 Replies
Not applicable
Author

sorry, the correct table data is:

monthareasales
1a6
1b8
1c10
2a7
2b4
2c6
eduardo_sommer
Partner - Specialist
Partner - Specialist

The only way I could do it was using month as the firs dimension and area as the second. The consequence was that the months became columns and the areas, rows:

Rank.png

Eduardo

Not applicable
Author

hi

try to use Generic Load in script.

like

Generic    LOAD month,

     area,

     sales

FROM

(ooxml, embedded labels, table is Sheet1);



see attachment, hope this helps you.

Not applicable
Author

Thank you very much. But it's not what i want.

Not applicable
Author


I can't do it because of the data model.

lironbaram
Partner - Master III
Partner - Master III

hi

have a look at the attach example

all you need to do is use hrank function instead of rank

PIC1.jpg

SergeyMak
Partner Ambassador
Partner Ambassador

As I see the change rank to hrank, which is offered by Liron Bra'amis working. Did you try it?

Regards,
Sergey
eduardo_sommer
Partner - Specialist
Partner - Specialist

You're right. It worked for me in Zhou's qvw

Eduardo

Not applicable
Author

Thank you very much. It's exactly what i want.