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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
meg007
Contributor
Contributor

Group by using an expression

How can I do the following using an expression and not data load editor

get max invoices per month per supplier

E.g. select supplier,month,max(transaction) as invoice

from <table>
group by 1,2

how can I build this using an expression/formula?

 

1 Solution

Accepted Solutions
GaryGiles
Specialist
Specialist

It depends on where/how you want to use the expression.  The aggr() function is a good place to start.

=aggr(max(transaction), supplier, month)

View solution in original post

1 Reply
GaryGiles
Specialist
Specialist

It depends on where/how you want to use the expression.  The aggr() function is a good place to start.

=aggr(max(transaction), supplier, month)