Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello All,
I have a QVD with the following example data
PartInfo |
2019091812 |
2019091813 |
2019091814 |
Here, i've an Select Statement where i would like to pass the PartInfo column from the above table as a Where Variable for Where Condition.
For Each PartInfo in FieldValueList('PartInfo')
[Source_Data]:
Select *
From Table A
Where PartInfo='$(PartInfo)';
Store [Source_Data] into Source_Data_$(PartInfo);
Next PartInfo
But, i'm not able to completely get through the complete Table. My script generates the QVD file for the first value and then i get a error.
Can you please suggest how to let the loop run the select Statement through all the 'PartInfo' values.
Thanks
Sai.
I have executed the load script above in Qlik Sense September 2019 Patch 2 without issue. Example attached. If you're having trouble fitting it to your QVF you can attach it and I'll take a look. Please note that "QVD Dimensions" is the name of a folder typed data connection I have for QVD files.
Thanks for the quick suggestion!
For Each PartInfo in FieldValueList('PartInfo') - At this point i get an Error saying Field string (From your Example Data) not found.
I have executed the load script above in Qlik Sense September 2019 Patch 2 without issue. Example attached. If you're having trouble fitting it to your QVF you can attach it and I'll take a look. Please note that "QVD Dimensions" is the name of a folder typed data connection I have for QVD files.
Thanks again. You saved my day!
My mistake was i had the Next before the Drop Statement.
I'm glad it all worked out!