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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
fcecconi
Partner - Creator III
Partner - Creator III

Help with Ranking in straight table

I am trying to create and overall ranking for a publication and then a ranking by year.  The overall ranking is working fine.  Here is my calculated dimension:  Overall Rank =Aggr(Num(Rank(Sum(Aggr(count(DISTINCT DocID),PubName)),4,1),'##'),PubName) .

I would like a Ranking per year.

YearPubNameOverall RankYear Rank# of Pubs (DocId)

2000

A1125
2000B2215
2000C3310
2001A1110
2001B232
2001C325
2002B229
2002C3110


5 Replies
MK_QSL
MVP
MVP

What is Overall Rank vs Year Rank?

Create a Straight Table

Dimension

Year

PubName

Expression

Sum(DocId)

Rank(Sum(DocId),4)

fcecconi
Partner - Creator III
Partner - Creator III
Author

Overall Rank is the Ranking for the total number of Distinct Doc ID.  Year Rank is the Ranking for the number of Distinct Doc id for a given year.

MK_QSL
MVP
MVP

Please check the solution provided.. Is this what you are looking for? If not... kindly provide your expected result..

mehmet_caldak
Partner - Contributor III
Partner - Contributor III

Hi Frank,

i hope the table below will help you

Year PubName Sum ([# of Pubs (DocId)]) =Rank(TOTAL [# of Pubs (DocId)],4,1) =Rank( [# of Pubs (DocId)],4,1)
2000A2511
2000B1522
2000C1033
2001A1031
2001B283
2001C572
2002B962
2002C1031
Oleg_Troyansky
Partner Ambassador/MVP
Partner Ambassador/MVP

I described a  number of interesting issues related to ranking in my blog post - please read it here:

Q-Tip #8 – Ranking the Unrankable | Natural Synergies

cheers,

Oleg Troyansky

www.masterssummit.com - take your QlikView skills to the next level!