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

avg with not equal (<>) condition

Hi everyone,

im having troubles when adding the "not equal" condition on avg sentence.

my actual expression is:

=Avg( {$<Año = {$(#=Max(Año))}, idCriterio=, K1={'14'} >} Valor)

when i try replacing the "equal" (=) with "not equal" (<>), it doesnt work.

=Avg( {$<Año = {$(#=Max(Año))}, idCriterio=,K1<>{'14'} >} Valor)

Any suggestion?

many thanks in advance.

1 Solution

Accepted Solutions
claudio_pochett
Contributor
Contributor

Hello

Try this:

=Avg( {$<Año = {$(#=Max(Año))}, idCriterio=,K1 = K1- {'14'} >} Valor)

View solution in original post

2 Replies
claudio_pochett
Contributor
Contributor

Hello

Try this:

=Avg( {$<Año = {$(#=Max(Año))}, idCriterio=,K1 = K1- {'14'} >} Valor)

Not applicable
Author

It works perfect, even for string values.

Thanks a lot