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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

USE IF IN SET (SCRIPT)

Hi,

Can we use  a condition in SET in the script:

if(  "CONDITION",SET DateFormat ='M/D/YYYY'  , SET DateFormat ='MM-DD-YYYY'  )

Thanks,

Nima

Labels (1)
1 Reply
CELAMBARASAN
Partner - Champion
Partner - Champion

May be you should use this

LET DateFormat = if(  "CONDITION", 'M/D/YYYY'  , 'MM-DD-YYYY'  );

Or


If (Condition) Then

SET DateFormat ='M/D/YYYY';

Else

SET DateFormat ='MM-DD-YYYY';

End If;

Hope It Helps

Celambarasan