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

Announcements
We are aware of an issue with the Product Downloads page and looking into it.
cancel
Showing results for 
Search instead for 
Did you mean: 
agigliotti
MVP
MVP

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 

The Power of shining a light on the dark side of your data.
Follow me on my LinkedIn | Know Gamma Informatica at gammainformatica.it
Labels (2)
1 Solution

Accepted Solutions
Digvijay_Singh
MVP
MVP

May be this - 

Digvijay_Singh_0-1648219571782.png

 

View solution in original post

5 Replies
Digvijay_Singh
MVP
MVP

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
MVP
MVP

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

agigliotti
MVP
MVP
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?

The Power of shining a light on the dark side of your data.
Follow me on my LinkedIn | Know Gamma Informatica at gammainformatica.it
Digvijay_Singh
MVP
MVP

May be this - 

Digvijay_Singh_0-1648219571782.png

 

agigliotti
MVP
MVP
Author

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

The Power of shining a light on the dark side of your data.
Follow me on my LinkedIn | Know Gamma Informatica at gammainformatica.it