Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

If-else condition formula help

Hi,

 

I have a below table.

Stage_Name        Closedate

 Close Won           11/30/2016

 Close Lost           03/05/2016

 Active                 10/06/2017

 

so I have to write a condition in my Tmap that if my stage_name= Close Won or Close Lost , then Closedate = 01/01/2018 else keep same value of closedates.

How do I put that condition in tmap..?

 

       

Labels (2)
1 Solution

Accepted Solutions
manodwhb
Champion II
Champion II

!row1.Stage_Name.equals("Active") ? "01/01/2018" : row1.Closedate

View solution in original post

2 Replies
Shettydatta
Contributor III
Contributor III

Put an expression as 

! Stage_Name.equals("Active") ? "01/01/2018" : Closedate 

 

manodwhb
Champion II
Champion II

!row1.Stage_Name.equals("Active") ? "01/01/2018" : row1.Closedate