Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
lakshmanvepuri
Creator
Creator

Renaming the Column in LOAD SCRIPT with Same Names

Hi All,

I have two Columns with Name in the Excel.

While Scripting I would like to change the Second "Name" as Name2.

As both the Column names are mentioned same in the Excel Sheet. How to achieve this..?  

Labels (2)
1 Solution

Accepted Solutions
martinpohl
Partner - Master
Partner - Master

when you are using the file wizard, QlikView is renaming the second time, Name is label to Name1.

But it could be problematic if there are many "Name" columns and you want only to load some of them.

The best way is to load this sheet without labels (@1, @2 or something similar with xlsx) ans rename the columns by script (@1 as Name, @2 as Name2).

Regards

View solution in original post

3 Replies
tresesco
MVP
MVP

Do you want this to be automated? Otherwise, the way you wrote looks fine. Did you try like below?

Load

            Field1,

            Name as Name2

From <>;

 

 

swarnendu
Creator II
Creator II

Please share your excel file which you want to change

martinpohl
Partner - Master
Partner - Master

when you are using the file wizard, QlikView is renaming the second time, Name is label to Name1.

But it could be problematic if there are many "Name" columns and you want only to load some of them.

The best way is to load this sheet without labels (@1, @2 or something similar with xlsx) ans rename the columns by script (@1 as Name, @2 as Name2).

Regards