Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Selective Average

Hi,

I am quite new to Qlik Sense and require some expert help regarding the following situation. Is there any expression that I can use to calculate the average of a selected datapoint? For instance if you consider the table below:

TypeCount
Apples100
Pears20
Apples 130
Pineapple40
Orange20

From this table if I want to calculate only the average of "apples" then how do I do it? I require this for a chart function where I need to show the average count of a specific field by days.

Any help in this regard is much appreciated.

Best regards,

Fariha

1 Solution

Accepted Solutions
sunny_talwar

May be this:

Avg({<Type = {'Apples'}>} Count)

View solution in original post

4 Replies
sunny_talwar

May be this:

Avg({<Type = {'Apples'}>} Count)

Anonymous
Not applicable
Author

Thank you so much, this worked!

oknotsen
Master III
Master III

If your question is now answered, please flag the Correct Answer (via the big "Correct Answer" button near every post) and use Helpful Answers for (other) posts in the topic that are Helpful (so not the case in this topic so far).

I will make the corrections for you in this topic.

May you live in interesting times!
Anonymous
Not applicable
Author

Thanks for letting me know. I will keep this in my mind for my next posts