
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I want to load data from excel
I want to load data from excel where the file name will be 20230127_220124 where 220124 is the time of the night shift. I want to get the name of the file to catch again when loading. What should I do?
- Subscribe by Topic:
-
Client Managed
-
Deployment
-
Entitlements & Permissions
-
Management
-
Other
-
Security
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can fetch the file name of the file you are loading by using the FileName() function.
Load *, FileName() as FileName
From .../20230127_220124.xlsx (...);
Qlik Community MVP

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try this
Load *,
Dayname(date#(Subfield(FileBaseName(), '_',1), 'YYYYMMDD' )) as file_date,
time(time#(Subfield(FileBaseName(), '_',2),'hhmmss')) as file_time,
FileName() as file_name
From .../20230127_220124.xlsx (...);
Qlik Community MVP

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can fetch the file name of the file you are loading by using the FileName() function.
Load *, FileName() as FileName
From .../20230127_220124.xlsx (...);
Qlik Community MVP

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Vegar
So how do I get the files split into shifts like this?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try this
Load *,
Dayname(date#(Subfield(FileBaseName(), '_',1), 'YYYYMMDD' )) as file_date,
time(time#(Subfield(FileBaseName(), '_',2),'hhmmss')) as file_time,
FileName() as file_name
From .../20230127_220124.xlsx (...);
Qlik Community MVP
