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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

calculation of rank in Bar Chart

Hello Expert,

Can some body help me to get rank in bar chart?

I have used this expression in Straight Table:

=num(rank(TOTAL  [Pre Tax Value (Max Year)],4,1))

But same not working in bar chart, even I have tried

=num(rank(TOTAL  [Pre Tax Value (Max Year)])) but did not work.

Please suggest how to calculate Rank in bar chart??

Regards,

Balraj

2 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

Hi

Rank is not an aggregation function, so you would need something like Sum or Avg

=Num(Rank(Sum([Pre Tax Value (Max Year)]), 4, 1))


HTH

Jonathan



Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Anonymous
Not applicable
Author

Okay,

But in straight table it was working fine, why?

With your expression, got it in bar chart.

Thanks.