Qlik Community

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Customer & Partners, DEC. 9, 11 AM ET: Qlik Product & Strategy Roadmap Session: Data Analytics REGISTER NOW
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Calculating max and min value from a calculated expression


So happy to have this community which has already helped me with problems. No I have a new one. Will try to explain this in an example:

I have information from a company which includes articles, revenue and quantity. From this I have calculated the price of each article in a new expression and I have put it in a new column. Now I would like to calculate the max and min value of the price. How do I do this?

Thanx - really appreciating the help.

3 Replies
Not applicable


you can create max(price) and min(price) as new columns


Not applicable

Or without creating a new column just do Min (Revenue/quantity) and Max (Revenue/quantiy)


I'm guessing that you need to find the min and max of the calculated price by article... In order to do that, you need to use Advanced Aggregation function aggr(). Something like the following:

Min( AGGR( sum(Revenue)/sum(Quantity), Article) )

Function AGGR() will aggregate your Expression by Article, and then the resulting array of numbers can be aggregated again with Min or Max.