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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to write expr to show Top 5,10,15 sum in Bar chart?

Hi Frnz,

I need to show Top 5 ,Top 10, Top 15 Accounts Sum in One Bar chart. Please help me to find this.

Please find the attached QVW. You will get clear idea.

13 Replies
sasiparupudi1
Master III
Master III

I do not see AMID_VALUE filed in your script in the qvw?

Not applicable
Author

hi,

actually for example i have mentioned AMID_VALUE..I tried same expression in my scenario. And there is no mistake in field also. May be data problem. I am not getting..

Thanks,

Tulasiram

sasiparupudi1
Master III
Master III

so are you saying that the

sum({<RANK={'<6'}>}L4AMID_VALUE_USD) is not returning the same values as

rangesum(max(L4AMID_VALUE_USD,1),max(L4AMID_VALUE_USD,2),max(L4AMID_VALUE_USD,3),max(L4AMID_VALUE_USD,4),max(L4AMID_VALUE_USD,5))

?

There must be something wrong in your data then ..both solutions work well with your original QVW file

Not applicable
Author

Hi,

Yes. Thanks for your help Sasidhar.