Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Dear All
I have following code for getting all excel loaded into qlikview and create qvd my problem is that if one excel is loaded already in qvd
who to skip that excel file for reloading again again is time consuming !
Set vPathXLS='\\inprgcfl06\HOME\Vikas\DataSources';
AsTrk:
Load
*
, FileName() as FileName
From
[$(vPathXLS)\Asset*.xlsx]
(ooxml, embedded labels, table is [$(*)]);
Please advise
Thanks in adv.
Vikas
Hi Vikas,
does your excel filename has time stamp.
Regards
Neetha
Suppose I loaded Asset1.xls , Asset2.xls , Asset3.xls files and stored into asset.qvd
then who to check Asset1.xls,Asset2.xls & .... is already loaded into asset.qvd ??
Vikas
Hi Neetha ,
My excel file name will be like this Assetmay1.xls , Assetmay2.xls , Assetjun1.xls , ....
Vikas
Try to subfield Month part and create new field as Filemonth.
Load only files greater than max filemonth in QVD and concatenate with
data in QVD
This is the "easy" solution attached.
It simply checks your qvd file for already loaded files - you must, however include a "SourceFile" field.
You should consider using the filetime() for the files - then load all the files that has been updated since last reload.
This way, you will be able to update your excel file and afterwards update you qvd with the modified data.
//Martin
Hi Vikas,
The easiest way is to have the qvd name similar to your filename along with the timestamp. which will definitely works.
Sreeni
Dear Martin,
Thanks for your reply,
Please can you tell me where I have to use the below script
Set vPathXLS='\\inprgcfl06\HOME\Vikas\DataSources';
AsTrk:
Load
*
, FileName() as FileName
From
[$(vPathXLS)\Asset*.xlsx]
(ooxml, embedded labels, table is [$(*)]);
Thanks
Vikas
Can you update please
Vikas
Dear Martin
Please find data with qvw please tell me where to incorporate your script now I have loaded Empdet1.xls,Empdet2.xls in qvd and stored it.
Suppose Emp3.xls is added so I want to load only Emp3.xls not Empdet1.xls and Empdet2.xls because this two are available in qvd.
Please Guide.
Vikas