Qlik Community

Ask a Question

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
Become an analytics expert with Qlik's new 15 week course: Applied Data Analytics using Qlik Sense. READ MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Find Top Selling Product

hello Dears

1-I want find Top 5 Selling Product (Sum(SaleAmount))?

2-i want find largest Product Per SubCategory (Sum(SaleAmount))

Look Like

plz help me

100.png

1 Solution

Accepted Solutions
mightyqlikers
Creator III
Creator III

8 Replies
settu_periasamy

Hi,

Can you try this in your Expression...

=if(rank(Sum(SalesAmount))<=5,sum(SalesAmount))

mightyqlikers
Creator III
Creator III

kavita25
Partner
Partner

Try the below logic:

In calculated dimension

=AGGR(IF(Rank(sum(SalesAmount), 4)<=5, EnglishProductSubcategoryName), EnglishProductSubcategoryName)

with the same expression

Regards,

Kavita

Not applicable
Author

Thanks

now if want find worst Sum(SaleAmount) Per Subcategory ?How

Not applicable
Author

Thanks

now if want find worst Sum(SaleAmount) Per Subcategory ?How

102.png

Not applicable
Author

102.png

jagan
Luminary Alumni
Luminary Alumni

Hi,

Try like this

Dimension: EnglishProductSubcategoryName

Expression:=Aggr(if(rank(-sum({<SalesAmount ={'>0'}>}SalesAmount)) <= 5, sum({<SalesAmount ={'>0'}>} SalesAmount)),EnglishProductSubcategoryName)

Regards,

Jagan.

Not applicable
Author

i try but Expression Is Not Valid