Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Airapport
Contributor
Contributor

How to show average of only those numbers, which fit a certain condition?

I have a table of numbers, let's say X.

I want to show on a chart the average of only those numbers, which are smaller than 1000.

In Excel I could do this by using a formula

=SUMIF(X:X, "<1000")/COUNTIF(X:X, "<1000")

How can I do this in QlikSense?

Labels (1)
1 Reply
MendyS
Partner - Creator III
Partner - Creator III

Hi @Airapport

try to use the formula -

SUM({<x={"<1000"}>}x) / count({<x={"<1000"}>}x).

or -

avg({<x={"<1000"}>}x).
best,