Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content
Announcements
WEBINAR April 23, 2025: Iceberg Ahead: The Future of Open Lakehouses - REGISTER TODAY
cancel
Showing results for 
Search instead for 
Did you mean: 
GeorgeEard
Contributor III
Contributor III

Rank KPI

I would like to have a KPI visualisation that if a particular Partner is filtered, then it shows the number reflecting that partners rank compared to others count of agreements.

I am currently using '=aggr(rank(sum({<Partner>}Agreement)),Partner)' however this is showing the incorrect rank.

I have create a table to show the Count(agreement) by Partner and have a column to rank those with Rank(count(agreement).  

Is there a reason the ranking shown in the KPI is inaccurate?

Labels (2)
1 Solution

Accepted Solutions
JandreKillianRIC
Partner Ambassador
Partner Ambassador

Hi @GeorgeEard 

 

I just tested this and its working. The only thing I am seeing on your side (Might just be a typo) but is a mismatch of sum vs count. 

"I am currently using '=aggr(rank(sum({<Partner>}Agreement)),Partner)' however this is showing the incorrect rank.

I have create a table to show the Count(agreement) by Partner and have a column to rank those with Rank(count(agreement)."

 

Mark the solution as accepted that solved your problem and if you found it useful, press the like button! Check out my YouTube Channel | Follow me on LinkedIn

View solution in original post

3 Replies
sbaro_bd
Creator III
Creator III

Hi @GeorgeEard ,

Can you provide some sample? Tell us what result you expect and which one you get (the incorrect one).

Regards.

GeorgeEard
Contributor III
Contributor III
Author

For example if I select the partner with the 4th highest number of agreements my KPI is saying their rank is 12 when it I would like it to say 4.

JandreKillianRIC
Partner Ambassador
Partner Ambassador

Hi @GeorgeEard 

 

I just tested this and its working. The only thing I am seeing on your side (Might just be a typo) but is a mismatch of sum vs count. 

"I am currently using '=aggr(rank(sum({<Partner>}Agreement)),Partner)' however this is showing the incorrect rank.

I have create a table to show the Count(agreement) by Partner and have a column to rank those with Rank(count(agreement)."

 

Mark the solution as accepted that solved your problem and if you found it useful, press the like button! Check out my YouTube Channel | Follow me on LinkedIn