Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
jyothish8807
Master II
Master II

Loading Dynamic Column Name

Hello All,

I am facing an issue in loading an excel sheet which have a dynamic Column. It changes when ever a new data is entered in the sheet or to that particular column.

eg:

|  ID |    Name | Count=0 |

Over here the column "Count=0" the 0 will increase as we add data into the sheet. So for every time the name will change so how can I load this column? 0 is nothing but sum(entire row).

Regards

KC

Best Regards,
KC
1 Solution

Accepted Solutions
anbu1984
Master III
Master III

LOAD A As ID,

    B As Name,

    C As Count

FROM

(ooxml, explicit labels, header is 1 lines, table is Sheet1);

View solution in original post

25 Replies
kushalthakral
Creator III
Creator III

Dear Jyothish

Can you please give an example for better understanding like a table and its content

Regards

Kushal Thakral

jyothish8807
Master II
Master II
Author

Hi All,

PFA Spreadsheet. In this sheet when ever you enter a number in Count Column the count changes.

Regards

KC

Best Regards,
KC
rustyfishbones
Master II
Master II

I am not sure you can dynamically change the field

kushalthakral
Creator III
Creator III

Hi Jyothish

Why dont you try the header in Qlikview GUI, at script level it is not possible but at GUI level you can create it.

Regards

kushal

jyothish8807
Master II
Master II
Author

But I am not able load that that field into qlikview, every time when I reload, the field name changes because someone from user side is updating the sheet.

Any solution for this will be really helpful.

Regards

KC

Best Regards,
KC
rustyfishbones
Master II
Master II

You will need to change the column name in excel to something generic

and create the expression in Qlikview

You cant have a changing field name being imported as the script will fail.

Call this field something generic in Excel like Count and don't change it

Regards

Alan

jyothish8807
Master II
Master II
Author

Hmm now its tough since there are more than 100 sheets and all are being used. I cant go back to 100 sheets and make changes. Any way thanks a lot for the help.

Regards

KC

Best Regards,
KC
r_wroblewski
Partner - Creator III
Partner - Creator III

Hi Jyothish

what you can do is to ignore the header for the excel files for load script.

Regards,

Ronny

anbu1984
Master III
Master III

LOAD A As ID,

    B As Name,

    C As Count

FROM

(ooxml, explicit labels, header is 1 lines, table is Sheet1);