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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
sat_tok52
Creator
Creator

Rank function Null Issue

HI Guru's,

I am using Rank function to get Top 10 customers in pivot table , but I am getting 9 customers and 10th customer it is showing up as null.In my customer column have above 20 customers,below is the calculated dimension I am using .

Calculated Dimension:

=if(aggr(rank(Count(customer)),Name)<=$(vTop),Name)

Expression:

Count(customer)

vTop=10

Result:

Name    Count

A    13

B    12

C    11

D    11

F    9

G    8

H    7

I    6

J    5

-    36

Thanks,

Sateesh

1 Reply
tresesco
MVP
MVP

Could it be that there are multiple names with the same 10th value (36)?