Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Top Selling Product

Hi to all,

How to get the top selling product in last Year (and) last Quarter.

Thanks In Advance....

2 Replies
Gysbert_Wassenaar

Something like firstsortedvalue({<Year={2014},Quarter={'Q4'}>} product, aggr(-sum(sales),product))

Post a qlikview document with data if you can't figure out how to apply it to your document.


talk is cheap, supply exceeds demand
sinanozdemir
Specialist III
Specialist III

Or you can try something like this:

If(Aggr(Rank(Sum({<Year={2014}, Quarter={'Q4'}>}sales)), product) = 1, product)

Just another approach