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: 
raghavsurya
Partner - Specialist
Partner - Specialist

Average formula issue

Hi All,

We have situation where in we need to ignore any negetive / zero values in the table and calculate the average or Min or Max values. For Example

ProductProfit
a10
b-4
c6
d8
e0


The Average formula should ignore product b and product e which calculating average. Can anybody suggest how to do this.

Regards,

Raghav

3 Replies
Not applicable

For example:

AVG(IF(Profit>0,Profit))


raghavsurya
Partner - Specialist
Partner - Specialist
Author

Hi,

In the same scenario, if we want to select minimum of the values how should we put the formula. Can you please help us.

Regards,

Raghav

Not applicable

Just change the AVG function to MIN.