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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
sannidhikumar
Creator
Creator

Rank function not working properly

Hi All,

Rank function is not working properly can you please suggest on this.

=IF(Aggr(Rank(SUM(CollectionAmount)),CustNo1)<=$(vTopcustomer),CustNo1)

Thanks

Labels (1)
5 Replies
sunny_talwar
MVP
MVP

What exact issue you are running into?

marcus_sommer
MVP
MVP

Maybe this:

=IF(Aggr(Rank(SUM(CollectionAmount))<=$(vTopcustomer),CustNo1),CustNo1)

- Marcus

swuehl
Champion III
Champion III

Or

=Aggr(If( Rank(SUM(CollectionAmount))<=$(vTopcustomer),CustNo1),CustNo1)

This could be used as a calculated dimension, for example.

If you want to use it as expression, you should chose and use an appropriate outer aggregation function.

sannidhikumar
Creator
Creator
Author

hi ,

after using this expression still i am getting same problem

Example : multi line box selcting 10 displaying customer values

20 not displaying customer values

30 not displaying customer values

50 not displaying customer values

thanks ,

swuehl
Champion III
Champion III

Sorry, I don't understand this scenario you are describing.

Could you post some more details, e.g. screenshots, or better a small sample QVW?