Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I need to loop through a folder with about 20 QVDs and remove two fields from each one : 'key_prefix' and 'key_binder'.
Is there any easy way to do this and Store the resulting QVDs in a new folder?
Many thanks,
Phil
Try like:
for each File in filelist (Root&'\*.' &qvd)
tab:
Load
*
From path\$(File);
Drop fields 'key_prefix' , 'key_binder';
Store tab into <new path>;
next File
Hi,
You can use
"Drop Fields 'key_prefix' , 'key_binder';
at the end of the script, before you store.
Try like:
for each File in filelist (Root&'\*.' &qvd)
tab:
Load
*
From path\$(File);
Drop fields 'key_prefix' , 'key_binder';
Store tab into <new path>;
next File
NewTable:
Load *
From C:\YourPath\QvdCommonName*.qvd (qvd);
Drop Fields 'key_prefix' , 'key_binder' from NewTable;
Using * (in the FROM statement) after the common part of the name (of your 20 QVDs) Qlik load all QVDs which name match with the part after the *.
thanks everyone!