Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Mynona
Contributor II
Contributor II

Exclude fields in the calculation?

How do I create an expression similar to the following?

sum({<Field1={Test1}, [Field2]<>[Field3]>} [Field4])) 

 

Field4 should be displayed if Field2 and Field3 are not equal. If I create an expression as above, I get an error because <> is not a valid relational operator.

How do I create this correctly?

Labels (2)
3 Replies
F_B
Specialist
Specialist

Hi @Mynona , try with =- instead of <>.

MatheusC
Specialist II
Specialist II

@Mynona 

see it like this:

sum({<Field1={Test1}>}if ([Field2] <> [Field3],  [Field4]))


Regarts, Matheus

Did you find a solution to your question? Mark the solution as accepted and if you found it useful, press the like button!
Chanty4u
MVP
MVP

Try this 

aggr(

    if(Field2 <> Field3, sum(Field4)),

    Field1, Field2, Field3)