Skip to main content
Announcements
See why Qlik is a Leader in the 2024 Gartner® Magic Quadrant™ for Analytics & BI Platforms. Download Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Top 10 product sales over 10 weeks

Hi,

I have multiple products and want to get the top 10 products based on the total sales of the product in each week.

I will be using this in a line chart which will show the sales trend of the top 10 products across 10 weeks. It keeps giving me more than 10 products which is not what i wanted. Are there any ways to do it in data load editor?

3 Replies
Anil_Babu_Samineni

First step, can u try this im UI?

If(aggr(rank(sum(TOTAL <week> sales))<=10, product), product)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Anonymous
Not applicable
Author

It doesn't display anything? Only a straight line is shown

Anonymous
Not applicable
Author

I have done an example of how i wanted it in Excel. I use filters to achieve this. Capture.PNG