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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
prabhas277
Creator
Creator

max sales

Hi experts,

salesperson, sales

A,10

b,20

c,30

a,15

b,25

c,35

now i want calculate the sum of max sales using set expression?

Labels (1)
3 Replies
Anonymous
Not applicable

Max per sales person?  You don't need set here:

max(aggr(sum(sales),salesperson))

maxgro
MVP
MVP

sum of max sales by person?

=sum(aggr(max(sales),salesperson))

a and A are different

cranium144
Creator
Creator

This worked for me.  I used the following and it seems to work just fine.  (working with the max qty sold per part per day, not $ sold)

max(Aggr(sum([Invoice Qty]),[Invoice Date], PN))