Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi there ,
please assist with the qlikview script :
view:
Load
[Key],
iif((DATEDIFF(minute,[checkin_dt],[Doctor Seen DateTime]) >=0 and ([DecisionToAdmit] is not null)),DATEDIFF(minute,[checkin_dt],[Doctor Seen DateTime]),null) as [Presentation to Doctor (Minutes)]
resident tmp;
Hw to write it in Qlikview load script
view:
Load
[Key],
if( NUM(INTERVAL([checkin_dt]-[Doctor Seen DateTime] ,'mm' ))>=0 and NOT ISNULL([DecisionToAdmit]) , NUM(INTERVAL([checkin_dt]-[Doctor Seen DateTime] ,'mm' )), null) as [Presentation to Doctor (Minutes)]
resident tmp;
view:
Load
[Key],
if( NUM(INTERVAL([checkin_dt]-[Doctor Seen DateTime] ,'mm' ))>=0 and NOT ISNULL([DecisionToAdmit]) , NUM(INTERVAL([checkin_dt]-[Doctor Seen DateTime] ,'mm' )), null) as [Presentation to Doctor (Minutes)]
resident tmp;
Hi Vineeth,
As I have null value in the field - I am getting the below error -( attached img.PNG)
Is there any way to handle this in script .?
My bad, replace null with null()