Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Streamlining user types in Qlik Cloud capacity-based subscriptions: Read the Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Markus_L
Contributor
Contributor

Load monthly files

Hello to all,

 

We have monthly Excel files in a drive.

The current period is already recognizable in the file name (P02_final, P03_final, etc.)

I would like to create a bar graph where I can display the individual monthly values ​​(period) per ID number (available in all files).

E.g. period 1 -> value 100

Period 2 -> Value 95

Period 3 -> value 105

How do I have to program this in the loading script so that I can display the monthly value?

Labels (1)
1 Reply
Lisa_P
Employee
Employee

Use the FileName() function to add that to the data in the load script like this:

LOAD
"Date",
Sales,
Subfield(FileName(), '.', 1) as File
FROM [lib://Monthly/*.xlsx]
(ooxml, embedded labels, table is Sheet1);