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

GetFieldSelections set analysis

Hi everyone,

I want to have an expression that sums all amounts where Field2 DOES NOT equal the current selection in Field1.

E.g. If A was currently selected, I would not want the first row included in the sum.

 

Field2Amounts
A10
B5
C2

Does anyone know how to write the set analysis for this? I'm still struggling to learn.

Thanks!

1 Solution

Accepted Solutions
rubenmarin

Hi Andrew, you can use this expression:

Sum({<Field2=Field2-Field1>} Amounts)

View solution in original post

3 Replies
rubenmarin

Hi Andrew, you can use this expression:

Sum({<Field2=Field2-Field1>} Amounts)

Clever_Anjos
Employee
Employee

Check for function P()

=Sum({<Field2-=P(Field2 )>} Amounts)

Not applicable
Author

Thank you both!