Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
priyarane
Specialist
Specialist

Script Format

Hi Experts,

From the source(excel), how to achieve as below.

[RowHeaders]:

LOAD
RecNo() AS RowNo,
@1 * 10 AS Item,
If( IsNum(@1) , Peek(ItemTxt) , @1) AS ItemTxt,
@2 AS [Item Text]
FROM
Souce.xlsx
(
ooxml, no labels, table is Sheet1, filters(
ColXtr(1, RowCnd(CellValue, 1, StrCnd(shorter, 0)), 0)
));

which format it is:
(ooxml, no labels, table is Sheet1, filters(
ColXtr(1, RowCnd(CellValue, 1, StrCnd(shorter, 0)), 0)
));

what is @1

4 Replies
Anonymous
Not applicable

@1 is your qv by default column names (labels) and you can achieve this ..

Thanks

BKC

Anonymous
Not applicable

Attach your sample file.

This source file is may be delimited file  (CSV)

priyarane
Specialist
Specialist
Author

I have the excel.

marcus_malinow
Partner - Specialist III
Partner - Specialist III

In your load script you have 'no labels' set, so QlikView will refer to the first loaded column as @1, the second as @2 and so forth.

If you rework your load script and set it to 'embedded labels' you can refer to your field names as they are defined in your data source