Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Date funciton - to be flexible in loading data

load entity,

       Client

From

i am uploading data from above excel file on shared drive, but i need date to be flexible as each day the name of file will change to T-2 business date. Could anyone please help in letting me know the possible solution

1 Solution

Accepted Solutions
alexandros17
Partner - Champion III
Partner - Champion III

Let myDate = text(num(day(today()),'00')) &  text(num(month(today()),'00')) & text(num(year(today()),'0000'))

Let myFile = ''

...

load

     ...

     ...

from $(myFile)

hope it helps

View solution in original post

6 Replies
alexandros17
Partner - Champion III
Partner - Champion III

Let myDate = text(num(day(today()),'00')) &  text(num(month(today()),'00')) & text(num(year(today()),'0000'))

Let myFile = ''

...

load

     ...

     ...

from $(myFile)

hope it helps

Not applicable
Author

thanks for prompt response.

but i am using

let myDate = text(if(left(weekday(today()-2),1)='S'.Date(Today()-4,'MMDDYYYY'),Date(Today()-2,'MMDDYYYY')));

as my excel file for today will be always 2 days old and i have to ignore weekends also.

but it gave a load error.

please advise

Not applicable
Author

thanks for prompt response.

but i am using

let myDate = text(if(left(weekday(today()-2),1)='S'.Date(Today()-4,'MMDDYYYY'),Date(Today()-2,'MMDDYYYY')));

as my excel file for today will be always 2 days old and i have to ignore weekends also.

but it gave a load error.

please advise

Not applicable
Author

thanks for prompt response.

but i am using

let myDate = text(if(left(weekday(today()-2),1)='S'.Date(Today()-4,'MMDDYYYY'),Date(Today()-2,'MMDDYYYY')));

as my excel file for today will be always 2 days old and i have to ignore weekends also.

but it gave a load error.

please advise

alexandros17
Partner - Champion III
Partner - Champion III

Send me the error ...

Not applicable
Author

Hey Alex,

i got the answer...

thanks a lot