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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Apply function to all fields....

Hi;     Here's a strange request, it may not be possible at all but what do you think?

I need to load data from excel files generated through a web app to my application on a monthly basis,

the problem is the column names sometimes are not always generated the same....

like one month is:  Sales Date

and the next one is: Sales date

(check the upper case!!)

And i already write a script to Automatically load all the excel files (also historic files) but i get unwanted results because of this,

so is there any way to apply the function Capitalize() to all the Columns?

something to apply on a code like this (no individual column names):

load * from 'filename'.xls

Any ideas?.....

Thanks in advance.

Regards from Mexico.

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

just and idea not sure if this suits your request. if the order of the columns does not change then what you do is while loading the excel sheet for the first time do not load with embeded labels . load with the none and in your script rename the columns in the way you wanted. for your reference check the screen shot.

View solution in original post

4 Replies
Not applicable
Author

Yes, there are possibilities.

In the loadscript you can use wildcards.

example:

load *

FROM

*.xlsx

(ooxml, embedded labels, table is Sheet1);

This will load ALL excelfiles in the folder that your QVW is in.

It is like dos-commands (del *.xls wil delete all excelfiles)

hope it helps

Anonymous
Not applicable
Author

just and idea not sure if this suits your request. if the order of the columns does not change then what you do is while loading the excel sheet for the first time do not load with embeded labels . load with the none and in your script rename the columns in the way you wanted. for your reference check the screen shot.

Not applicable
Author

Thank´s Roberto and Vinay! For practical purposes i´ll take the second approach and load the files without labesl and standarize the column names.

Regards!

Anonymous
Not applicable
Author

no problem Angela