Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
dseelam
Creator II
Creator II

creating new date field based on other field values

Hello Qlik Folks,

Please help

PO Issue Date :

I have 3 fields -document type, PO creation date, PO Release date.

depending on document type  create a new date field  PO Issue Date

If document type=Standard document, use PO creation date.

If document type=Blanket Release document, use PO Release date.

If document type= Blanket document, use NULL value. to create PO Issue Date 

Thanks,

D

Labels (3)
1 Solution

Accepted Solutions
VishalWaghole
Specialist II
Specialist II

Try below expression,

If(match(Document type,Standard document), PO creation date,
If(match(Document type,Blanket Release document), PO Release date,
If(match(Document type,Blanket document), null()))) as PO Issue Date

Hope this will work for you.

Regards,
Vishal Waghole

View solution in original post

2 Replies
VishalWaghole
Specialist II
Specialist II

Try below expression,

If(match(Document type,Standard document), PO creation date,
If(match(Document type,Blanket Release document), PO Release date,
If(match(Document type,Blanket document), null()))) as PO Issue Date

Hope this will work for you.

Regards,
Vishal Waghole
dseelam
Creator II
Creator II
Author

Thank you Vishal