Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
arjunmadhusudan
Contributor III
Contributor III

calculate highest ranked sales excluding the selected company

Hi,

I have data as below

Company    Sales

A                  1000

A                     400

B                    500

B                      20 

C                  2000

D                    400

D                      20

I need to calculate     Sum of sales selected company /   Sales of company with highest sale from the remaining list ( not selected)

Regards,

Arjun

13 Replies
arjunmadhusudan
Contributor III
Contributor III
Author

Raju,

You have handled the max condition in the load script , right ?

qv_testing
Specialist II
Specialist II

Then try this,

Exp1: Sum(Sales)

Exp2: IF(GetSelectedCount(Company)=0, Max(Sales), Max({<Company=E(Company)>}Sales))

thevingo
Creator
Creator

hi Arjun,

as stalwar1‌ already mentioned, your all questions are answered, please close this thread