Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I want to use sysdate in my qlikview script.
please help me to do that.
Thanks
What you want exactly m confused a bit in above statement
1. If you want sysdate when DTM is null then, try this
If(ISnull(DTM),Date(Today(),'DD-MM-YYYY'),DTM) as Date
Note : please mention above date format as alike your DTM field.
2. If you want sysdate when DTM is greater than 0 as you told earlier in example then, try this
If(DTM>0,Date(Today(),'DD-MM-YYYY'),DTM) as Date
Hope it helps
You can use QV function Today() in script
Or
Sql Load sysdate from dual;
NOW() might fit better, as it returned the time as well:
Returns a timestamp of the current time from the system clock. The timer_mode may have the following values:
0 Time at previously finished reload (not currently ongoing reload)
1 Time at function call
2 Time when the document was opened
HTH Peter
Hi
Try this in text object
=Date(Today())
Regards
Mohit
Hi,
I want to use sysdate in data loading. and i have if statement inside the script with other dates.
ex - if(DTM > 0 ,sysdate,DTM) As Date to set DTM=sysdate when date is null
If(Len(Trim(DTM)) = 0, Today(), DTM)
What you want exactly m confused a bit in above statement
1. If you want sysdate when DTM is null then, try this
If(ISnull(DTM),Date(Today(),'DD-MM-YYYY'),DTM) as Date
Note : please mention above date format as alike your DTM field.
2. If you want sysdate when DTM is greater than 0 as you told earlier in example then, try this
If(DTM>0,Date(Today(),'DD-MM-YYYY'),DTM) as Date
Hope it helps