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

If else statement

Hi ,

I am getting the error as error in expression when i tried to use the if else statement in the chart.

= if(((Time(Date,'hh:mm:ss')>='13:00:00PM') and (Time(Date,'hh:mm:ss')<='20:59:59PM')),'Shift 1',(((Time(Date,'hh:mm:ss')>='21:00:00PM')and(Time(Date,'hh:mm:ss')<='04:59:59PM')),'Shift 2','Shift 3'))



Labels (1)
1 Reply
Not applicable
Author

Hi,

I have fixed the issue. It is the problem with the if statement.