Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
saran_gj
Contributor
Contributor

need to find top 25 to 50 records

I am having more than 100 records

Q1. find the top25 records?

ans. if(aggr(rank(sum(sales),country) <=25, sum(sales))

q2. find the top 25 to 50 records?

ans. need to find????? can anyone help me to solve  this...

Labels (1)
  • Chart

1 Solution

Accepted Solutions
ggijben
Partner - Creator II
Partner - Creator II

Hi @saran_gj , 

Can you try:

 

SUM( AGGR( IF( RANK(SUM(sales)) >25 AND RANK(SUM(sales)) <=50, SUM(sales)) ,country )) 

View solution in original post

3 Replies
ggijben
Partner - Creator II
Partner - Creator II

Hi @saran_gj , 

Can you try:

 

SUM( AGGR( IF( RANK(SUM(sales)) >25 AND RANK(SUM(sales)) <=50, SUM(sales)) ,country )) 
saran_gj
Contributor
Contributor
Author

its work. thank u genius.

ggijben
Partner - Creator II
Partner - Creator II

Glad it works! Could you mark the post as a solution, so others know it's solved?