Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
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