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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Aggregation Functions

hai alllllll

please Explain about Aggregation Functions with examples.how to find out the top 5 sales in product table and also each category sum,min,max,avg sales......

table fields are  category,product,sales like

2 Replies
Anonymous
Not applicable
Author

See QlikView Technical Brief - AGGR for more information on the AGGR function.


The formula you are looking for is:


IF( AGGR( RANK( SUM( sales) ), product) <=5,product)

jagan
Partner - Champion III
Partner - Champion III

Hi,

Try like this

Dimension : IF( Aggr( Rank( Sum( Sales), 4 ), Product) <=5, Product)

Expression : Sum(Sales)

Regards,

Jagan.