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: 
Not applicable

Script Error

if([Status]<>'YES', or if([Status]<>'NO',

  if(Date([fuTureDate])- Date(Today())<90, 'Red')))

 

Am I doing anything wrong here ?

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

I see an extra comma (,) before or and if clauseafter or

if([Status]<>'YES' or [Status]<>'NO',

if(Date([fuTureDate])- Date(Today())<90, 'Red')))

View solution in original post

3 Replies
sunny_talwar
MVP
MVP

I see an extra comma (,) before or and if clauseafter or

if([Status]<>'YES' or [Status]<>'NO',

if(Date([fuTureDate])- Date(Today())<90, 'Red')))

sunny_talwar
MVP
MVP

or may be this to simplify it:

=If(WildMatch(Status, 'YES', 'NO'), If(fuTureDate - Today() < 90, 'Red'))

=If(not WildMatch(Status, 'YES', 'NO'), If(fuTureDate - Today() < 90, 'Red'))

qlikmsg4u
Specialist
Specialist

=if([Status]<>'YES' or [Status]<>'NO', if(Date([OperativeBeginDate])- Date(Today())<90, 'Red'))