Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
toddbuss
Creator
Creator

Noob question related to getfieldselections

I'm putting conditional logic based on which fields are selected. 

Can anyone tell me why the first condition below ='ALL' works, but the second condition ='-' does not?

if(getfieldselections(SGradeInitialValue)='ALL',1/total_population,

//condition is positive when all are selected

if(getfieldselections(SGradeInitialValue)='-',1/total_population,

//condition should be positive when none are selected

Thanks.

1 Solution

Accepted Solutions
sunny_talwar

May be try this:

if(Len(Trim(getfieldselections(SGradeInitialValue))) = 0, 1/total_population,

View solution in original post

2 Replies
sunny_talwar

May be try this:

if(Len(Trim(getfieldselections(SGradeInitialValue))) = 0, 1/total_population,

toddbuss
Creator
Creator
Author

Thanks.  Worked like a charm.

The quirkiness of the Qlik syntax continually baffles me.