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: 
Anonymous
Not applicable

Find average where variables are defined

Hello

I am looking to find the average of a field where two other fields are defined

i.e.

Avg(A)({< = {'1'}, = {'2'}>} )

Find the average of A where B = 1 and C = 2

Thank you

1 Solution

Accepted Solutions
jonathandienst
Partner - Champion III
Partner - Champion III

Like this:

=Avg({<B = {1}, C = {2}>} A)

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein

View solution in original post

1 Reply
jonathandienst
Partner - Champion III
Partner - Champion III

Like this:

=Avg({<B = {1}, C = {2}>} A)

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein