Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello All,
I am trying to load data from an excel file into my QLIK app and at the same write a script to add a new column in my table plus 70 days ahead. I tried using this syntax below but, did not work.
DatesTable:
LOAD
Name,
lastname,
OldDate,
OldDate + 70 AS NewDate
FROM [******************xls]
(***********************);
DatesTable: LOAD Name, lastname, OldDate, date(num(OldDate) + 70) AS NewDate FROM [******************xls] (***********************);
Make sure your date are in proper date fromat and not in string format
If it is in string format you may have to change it to
date#(olddate,date_format) and then use that to get the new date.
Regards
Pradosh
try date(datefield +70)
DatesTable: LOAD Name, lastname, OldDate, date(num(OldDate) + 70) AS NewDate FROM [******************xls] (***********************);
Make sure your date are in proper date fromat and not in string format
If it is in string format you may have to change it to
date#(olddate,date_format) and then use that to get the new date.
Regards
Pradosh
Good Stuff. It works.