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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
soha1902
Creator
Creator

How to use date dynamically??


Hi All,
During Load, I am using below statement
-------
-------
if
(len(Deactivated)>1,Deactivated,'01/30/2017') As NewDeactivated
--------
--------
It is working fine without any issue. But If I used below statement
let
vMax= '01/30/2017';
Table:
Load
----------------
----------------
if
(len(Deactivated)>1,Deactivated,$(vMax)) As NewDeactivated
--------
--------
Then it is not showing correct value for else part. Please help me to solve this.
Thanks.
1 Solution

Accepted Solutions
tresesco
MVP
MVP

Try putting the variable within quotes like:

if
(len(Deactivated)>1,Deactivated,'$(vMax)') As NewDeactivated

View solution in original post

1 Reply
tresesco
MVP
MVP

Try putting the variable within quotes like:

if
(len(Deactivated)>1,Deactivated,'$(vMax)') As NewDeactivated