Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
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?

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Maybe like

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

View solution in original post

3 Replies
tresesco
MVP
MVP

Try :

FirstSortedValue( Rent, - Sales)

swuehl
MVP
MVP

Maybe like

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

thanhphongle
Creator II
Creator II
Author

works good! thank you