Qlik Community

Ask a Question

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Our next Qlik Insider session will cover new key capabilities. Join us August 11th REGISTER TODAY
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

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
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