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: 
mahitham
Creator II
Creator II

if logic help

Hi Experts,

Can any one please help me to replicate the below logic into qlik

=If(OR(ISBLANK(Startdate ), ISBLANK(Enddate)),"",

     IF(AND(Type="New",Status="Completed"),NETWRORKDAYS(Startdate,Enddate), "")

  )


Thanks in advance.


Labels (1)
1 Solution

Accepted Solutions
tresB
Champion III
Champion III

Try like:

if(Type='New' and Status='Completed', NetWorkDays(Startdate,Enddate))

View solution in original post

4 Replies
tresB
Champion III
Champion III

Qlik too has a networkdays().

mahitham
Creator II
Creator II
Author

Hi Tresesco,

Thanks for your reply.

could you please help me to replicate this whole logic into Qlik.

=If(OR(ISBLANK(Startdate ), ISBLANK(Enddate)),"",

     IF(AND(Type="New",Status="Completed"),NETWRORKDAYS(Startdate,Enddate), "")

  )


Thanks in advance.

arulsettu
Master III
Master III

may be like this in qlik

if(Type='New' and Status='Completed',

NETWORKDAYS('21/11/2017' , '27/11/2017' ))

replace date with your date field

tresB
Champion III
Champion III

Try like:

if(Type='New' and Status='Completed', NetWorkDays(Startdate,Enddate))