Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
orangebloss
Contributor III
Contributor III

If statement with Two 'And' requirements

I'm wanting to filter my data so that only data that matches the following criteria is returned :

 

If the change flag is 'AN' and the Mod_status is greater than 6 and the Partcategory is either B or M but I keep getting 'AND is not a valid function' when I add in the MODstatus requirement/

 

if([BCD CHANGE_FLAG]='AN' and Mod_status={">6"} and ([BCD Partcategory]='B' or [BCD Partcategory]='M') ,[BCD COMPONENT])

Labels (2)
1 Solution

Accepted Solutions
Or
MVP
MVP

You seem to be mixing syntax between regular syntax and set analysis.

if([BCD CHANGE_FLAG]='AN' and Mod_status>6 and ([BCD Partcategory]='B' or [BCD Partcategory]='M') ,[BCD COMPONENT])

View solution in original post

2 Replies
Or
MVP
MVP

You seem to be mixing syntax between regular syntax and set analysis.

if([BCD CHANGE_FLAG]='AN' and Mod_status>6 and ([BCD Partcategory]='B' or [BCD Partcategory]='M') ,[BCD COMPONENT])

orangebloss
Contributor III
Contributor III
Author

Brilliant thank you!!