Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
sriddell
Contributor
Contributor

How to include only null values in an Expression

Hi, 

I'm looking for help with an expression in a straight table. 

I have a field called 'fordel' where some returns are = 1 and others are null. I then have a field which I wish to sum the values of, and that field is called 'enrol'.

I wish to display results only where fordel is not equal to 1, i.e. the null values. I've tried the below without success - I'd appreciate any advice. 

sum({$<fordel-={'1'}>},(enrol)

 

Best wishes. 

Labels (1)
1 Solution

Accepted Solutions
maxgro
MVP
MVP

maybe

Sum({$-<[fordel={'*'}>} enrol)

 

or you can replace the null in fordel field with 0 in the load script and then 

sum({$<fordel={0}>} enrol)

View solution in original post

2 Replies
maxgro
MVP
MVP

maybe

Sum({$-<[fordel={'*'}>} enrol)

 

or you can replace the null in fordel field with 0 in the load script and then 

sum({$<fordel={0}>} enrol)

sriddell
Contributor
Contributor
Author

Thank you very much, Maxgro - the first solution worked perfectly (and I can understand why the second one would too). I really appreciate your advice here.