Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Nested IF statement - Error in expression:')' expected

Hi,

I am attempting a nested if statement with two conditions, but am receiving the following error message:

Error in expression:')' expected



Any ideas why this isn't working would be gratefully received.

The statement is as follows:

if

([Current Status]='Authorised' AND [No. Of days from date reported]=< 21,'On track',if([Current Status]='Processed' AND [No. Of days from date reported]=< 21,'On track',if([Current Status]='Checking' AND [No. Of days from date reported]=< 7,'On track',if([Current Status]='Draft' AND [NO. Of days from date reported]=< 7,'On track',if([Current Status]='Closed','Closed','Overdue'))))) as OnTrack,

Thanks!



1 Solution

Accepted Solutions
Not applicable
Author

You have your less than or equal tos reversed. You need:

<=
You're using =<

View solution in original post

2 Replies
Not applicable
Author

You have your less than or equal tos reversed. You need:

<=
You're using =<

Not applicable
Author

Thanks - Problem solved!