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

Announcements
Write Table now available in Qlik Cloud Analytics: Read Blog
cancel
Showing results for 
Search instead for 
Did you mean: 
satishqlik
Creator II
Creator II

Top3 revenue sum to show in text object

Hi,

I have a scenario pls help

Department, revenue

A, 100

B,  600

C,  300

D,  400

E, 500

F,  400

G, 600

I want to show in object top3 sum 600+500+400=1500

Any help??

13 Replies
Aurelien_Martinez
Partner - Specialist II
Partner - Specialist II

Hi,

=RangeSum(Max(Aggr(Sum(amount), Department), 1), Max(Aggr(Sum(amount), Department), 2) , Max(Aggr(Sum(amount), Department), 3))

Help users find answers! Don't forget to mark a solution that worked for you!
vinieme12
Champion III
Champion III

I want to show in object top3 sum 600+500+400=1500


Are you sure what you want is correct?

Your top 3 departments by revenue are , B,G and E, so revenue of top 3 departments should be 1700 = 600+600+500!!

Department, revenue

A, 100

B,  600

C,  300

D,  400

E, 500

F,  400

G, 600

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
Not applicable

Hi,

try

max(amount,1)+max(amount,2)+max(amount,3)

hemachandran
Partner - Creator
Partner - Creator

Hi sathish,

can u try this expression

=rangesum(max(amount),max(amount,2),max(amount,3))