Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

2 fields not equal to 0 in set analysis

How do i write the following statement in set analysis?

[College]<>0 or [University]<>0

[College]<>0

is

[College]-={0}

in set analysis. But how about 2 fields using the OR statement to be equal to 0. I am new here and appreciate the help. Thanks.

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Here is how I solved it. Instead of using the OR operator between the fields, I put the individual fields in the  formula, replicated it and put OR in between the formulas.

Here is an example:

<formula

,[College]-={0}

formula>

+

<formula

,[University]-={0}

formula>

The Qlikview syntax checking mechanism is only accurate until a certain extent. In complex formulas like the one I was implementing, it showed error but worked. I appreciate all your guys suggestions and hope this would help others who would encounter a similar issue as me.

View solution in original post

15 Replies
sunny_talwar

Try this:


{<College -= {0}>+<University -= {0}>}

maxgro
MVP
MVP

try with +

count( {$ <College-={0}>+<University-={0}>} id_user)

Clever_Anjos
Employee
Employee

Set Analysis uses Algebra, an OR cab be replaced with an union of two sets.

So <College-={0}>+<University-={0} is what you need

Gabriel
Partner - Specialist III
Partner - Specialist III

Hi,

How about

{<College -= {0} , University -= {0}>}



Anonymous
Not applicable
Author

Gabriel, this will be AND, not OR:

[College]<>0 AND [University]<>0

Anonymous
Not applicable
Author

I'm not sure how count and id_user will be used in the formula.

Anonymous
Not applicable
Author

I tried it and it does not work. It shows 'Error in set modifier expression'. Thanks for your help

Anonymous
Not applicable
Author

I tried it and it does not work. Thanks for your help.

Anonymous
Not applicable
Author

Michal is right. Anyhow, I tried it and it does not work. Thanks for your help.