Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Opening data from a file with date today

Dear all,

how do I get data from a file with date today in it?

For example I would like to open C:\Desktop\test20150421.xlsx in Qlik Sense.

Instead of using the code below, I would like to have something like

FROM [lib://Desktop/test & Date(today(),'YYYYMMDD') & .xlsx] (ooxml, embedded labels, table is Sheet1);

Table1:

Load

    "Class 1",

    "Class 2",

    "Class 3",

    "Class 4"

FROM [lib://Desktop/test20150421.xlsx] (ooxml, embedded labels, table is Sheet1);

Please let me know if you know anything.

1 Solution

Accepted Solutions
marcus_malinow
Partner - Specialist III
Partner - Specialist III

LET vDateVar = date(today(), 'YYYYMMDD');

Table1:

LOAD

*

FROM

[lib://Desktop/test$(vDateVar).xlsx] (ooxnl, embedded labels, table is Sheet1);

View solution in original post

2 Replies
marcus_malinow
Partner - Specialist III
Partner - Specialist III

LET vDateVar = date(today(), 'YYYYMMDD');

Table1:

LOAD

*

FROM

[lib://Desktop/test$(vDateVar).xlsx] (ooxnl, embedded labels, table is Sheet1);

Not applicable
Author

Thanks! Managed to do it by using the code

[lib://Desktop/test$(Date(today(),'YYYYMMDD')).xlsx] (ooxnl, embedded labels, table is Sheet1);