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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
SkitzN27
Creator
Creator

Multiple If conditions with and

Hi Everyone,

How can I write this bolded version in IF conditions in Qlik, I'm unable to get the correct syntax.

count( if( match( field1, 'abc') and field2= 'xyz' and YearStart(DateField)= if(day(today())>5 and

TODAYS MONTH IS NOT JANUARY , 

YearStart(AddMonths(Today(),-1)), 0 )

Qlik Sense 

Thank you

Labels (2)
2 Replies
Chanty4u
MVP
MVP

try this

count( if( match( field1, 'abc') and field2= 'xyz' and YearStart(DateField)= if(day(today())>5 and

Month(Today())<>'JANUARY ', 

YearStart(AddMonths(Today(),-1)), 0 )

SkitzN27
Creator
Creator
Author

Hi @Chanty4u 

How will I write this?

 

AND TODAYS MONTH IS NOT JANUARY OR FEBURARY