Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Mistake in If statement

Hi All,

Below is the if query used in the expression

if(Off_Start_Date<>Null()

and len(trim(TermSheetSignedDateTime))=0,

if(Off_Status='Draft',Enq_ContactName,

if(Off_Status='Auto Approved',Enq_ContactName, 

if(Off_Status='Pending Approval',Enq_ContactName,

))))


Above expression gives 9 records. But when i select individual Off_Status it shows more.

Please help me with this.

Attached the Qvw.

Regards,

Keerthi KS

11 Replies
tamilarasu
Champion
Champion

Attachment missing..!!!!

andrespa
Specialist
Specialist

Don't see thw qvw...

jagan
Luminary Alumni
Luminary Alumni

May be because of this conditions data is filtering

Off_Start_Date<>Null()

and len(trim(TermSheetSignedDateTime))=0,


did you applied in your selections?


There is no attachment in your post.


Regards,

Jagan.

Anonymous
Not applicable
Author

TRY BRACKETS AROUND FIRST EXPRESSION

if((Off_Start_Date<>Null())

and (len(trim(TermSheetSignedDateTime))=0),

Anonymous
Not applicable
Author

Try this one:

if(Off_Start_Date<>Null() and len(trim(TermSheetSignedDateTime))=0,

if(Off_Status='Draft' or Off_Status='Auto Approved' or Off_Status='Pending Approval',Enq_ContactName

))

Not applicable
Author

Yes i have applied. Attached the Qvw

Not applicable
Author

Still its the same

Not applicable
Author

tried but not working

Anonymous
Not applicable
Author

if you define an else you get more data

if(Off_Start_Date<>Null()

and len(trim(TermSheetSignedDateTime))=0,

if(Off_Status='Draft',Enq_ContactName,

if(Off_Status='Auto Approved',Enq_ContactName, 

if(Off_Status='Pending Approval',Enq_ContactName, 'else'

))))

so obviously there are more datasets wgich doesnot meet any of the above conditions