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: 
pittouti
Contributor II
Contributor II

AVG() Function with many conditions

Hello everyone, I want to calculate the average of a column with a filter on 3 other columns

A,B,C,D are the columns

Average of A

When

B = True

C = True

D = True

1 Reply
MayilVahanan

Hi @pittouti 

B, C, D contains true value?? if so, try like below

Avg({<B={'True'},C={'True'},D={'True'}>}A)

else, replace the true value with some other values. 

Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.