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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
thanhphongle
Creator II
Creator II

set analysis

Hello community

this is my table

CategorySalesRent
Car1.000.00015.000
Motorbike800.00014.500
Truck750.00017.000

I wanna create a text object which returns me the rent from the biggest category referring to sales

Example:

Biggest Category from Sales = Car with 1.000.000

QV should return me 15.000

I tried this expression:

=Max(TOTAL Aggr(Sum(Sales), Category))

QV returns me 17.000

Can anyone help me out here?

Labels (1)
1 Solution

Accepted Solutions
swuehl
Champion III
Champion III

Maybe like

Sum({<Category = {"=Rank(Sum(Sales))=1"}>} Rent)

View solution in original post

3 Replies
tresB
Champion III
Champion III

Try :

FirstSortedValue( Rent, - Sales)

swuehl
Champion III
Champion III

Maybe like

Sum({<Category = {"=Rank(Sum(Sales))=1"}>} Rent)

thanhphongle
Creator II
Creator II
Author

works good! thank you