Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Store Excel Values in variables

Hi,

I have got a spreadsheet with some values stored in a column. Now I need to extract this into Qlikview and store the values of different rows of the column into separate variables in Qlikview.

How do I do that?

Cheers

1 Solution

Accepted Solutions
hic
Former Employee
Former Employee

ExcelData:

LOAD Field FROM [File.xlsx] (ooxml, embedded labels);

Let vVariable1 = peek('Field',0,''ExcelData'); // Row 1

Let vVariable2 = peek('Field',1,''ExcelData'); // Row 2

View solution in original post

3 Replies
hic
Former Employee
Former Employee

ExcelData:

LOAD Field FROM [File.xlsx] (ooxml, embedded labels);

Let vVariable1 = peek('Field',0,''ExcelData'); // Row 1

Let vVariable2 = peek('Field',1,''ExcelData'); // Row 2

Not applicable
Author

That worked.. Thx!!

hic
Former Employee
Former Employee

Here is an example that shows how I mean. Put both files in the same folder and it will work. The script also contains a loop that you can use if you want to define both Names and Values of the variables in the Excel sheet.

/HIC