Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
agigliotti
Partner - Champion
Partner - Champion

Rank function with multiple dimensions

Hi,
I'd need to show only the first 3 rows sorted by F1 field desc.
As you can see only the first row for each date is ranked.
In the last column (if....)  I'm checking if the rank is  <= 3 but  it does not work as requested.

The desired result should be as below:

agigliotti_0-1647967582722.png

How can I achieve it?

Attached the qvw file

Many thanks in advance for your time.

Best Regards

@rwunderlich  @Digvijay_Singh  @marcus_sommer   @Or  @Lech_Miszkiewicz  @simonaubert   @Chanty4u  @Michael_Tarallo 

Labels (1)
1 Solution

Accepted Solutions
Digvijay_Singh

May be this - 

Digvijay_Singh_0-1648219571782.png

 

View solution in original post

5 Replies
Digvijay_Singh

Probably you try these parameters in your rank measure, but I don't think you can get 1,2,2,3 sequence, after equal rank you get the next rank skipped, so it would be 1,2,2,4 ranks when 2nd and 3rd items are same 

Digvijay_Singh_0-1648159695136.png

 

Digvijay_Singh

Don't have qlikview so cannot see your expression..

agigliotti
Partner - Champion
Partner - Champion
Author

with that expression I get exactly the same result (1,2, -, 3, -, 4,5, -, -)
I need to include also the rows (ggg, eee) with null as rank because its real rank is less or equal to 3.

Someone can help me?

Digvijay_Singh

May be this - 

Digvijay_Singh_0-1648219571782.png

 

agigliotti
Partner - Champion
Partner - Champion
Author

Hi @Digvijay_Singh ,
Great Job, it worked!
Many thanks for your collaboration.
Best Regards