Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Now accepting applications for the Qlik Luminary and Partner Ambassador Programs: Apply by July 6!
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....

Labels (1)
2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

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