Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
yzhang88
Contributor III
Contributor III

greater than a negative value in set analysis

Hi, I want to sum(values) when x is between (-100, 20) in expression:

sum({<x ={'>-100'}, x={'<=20'}>} values)

can someone help me get correct expression?  x ={'>-100'} part doesn't work. Thanks.

1 Solution

Accepted Solutions
rubenmarin

Hi Ying, simple quotes is usually used to look for literals, double quotes for searchs; also, if you use the same field two times only the last is kept, try with:

Sum({<x={">-100<=20"}>} values)

View solution in original post

4 Replies
rubenmarin

Hi Ying, simple quotes is usually used to look for literals, double quotes for searchs; also, if you use the same field two times only the last is kept, try with:

Sum({<x={">-100<=20"}>} values)

yzhang88
Contributor III
Contributor III
Author

Thank you Ruben, it is exactly what I need

dplr-rn
Partner - Master III
Partner - Master III

Ruben are there any situations where double quotes is not recommended.

rubenmarin

Hi Dilip, I'm not sure of recommendations, but I use single quotes for literals, when there is an exact text to filter like:

Option={'Y'}

And Iuse doube quotes if there are is comparison simbol (=,<,>) or a star character like:

Option={"Y*"}