Discussion Board for collaboration related to QlikView App Development.
Hi All,
When we load data from an excel file like:
LOAD *
FROM
[\..\..\ABC.xls]
(biff, embedded labels, table is [Qlikview$]);
Is it possible to store the table name Qlikview in a field?
Thanks,
Asma
LOAD *, 'Qlikview' as SheetName
FROM
[\..\..\ABC.xls]
(biff, embedded labels, table is [Qlikview$]);
LOAD *, 'Qlikview' as SheetName
FROM
[\..\..\ABC.xls]
(biff, embedded labels, table is [Qlikview$]);
If the sheet name is stored in a variable,
e.g.Let vSheetName='Qlikview',
then is it possible to store the value of this variable in a field. Instead of hardcoding 'Qlikview' as SheetName, is it possible to read the value from the variable vSheetName and store it in the field SheetName
Yes.
LOAD *, '$(vSheetName)' as SheetName
FROM
[\..\..\ABC.xls]
(biff, embedded labels, table is [$(vSheetName)]);
Hi Asma,
Yes, you can do so...
Let vSheetName='Qlikview'
LOAD *,
'$(vSheetName)' as SheetName
FROM
[\..\..\ABC.xls]
(biff, embedded labels, table is [Qlikview$]);
This should work.
Regards
I tried using the code which you mentioned, but it is giving me an error
Cannot locate table in BIFF file.
The table Qlikview is present in the file.
The sheetname of .xls files needs to be appended with a $. If the name of the sheet is Qlikview then the name of the table is Qlikview$.
Thanks! It worked