Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

For each - get a second value associated

Hi everybody,

I have the following code. I would like to get the value of ce.archive in my For Loop.

How do I do that ?

CONCATENATE(filesToLoad)

load * inline

[

ce.archive, ce.fileList

'N', cpm.xlsm'

'O', 'ghdfsfds.xlsm'

'O', 'skfds.xlsm'

'N', 'liac.xlsm'

]

;

For Each nomfic in FieldValueList('ce.fileList')

6 Replies
tresesco
MVP
MVP

Have you tried like?

For Each nomfic in FieldValueList('ce.fileList')

    <your statement>

Next nomfic;

Anonymous
Not applicable
Author

Hi Tresesco,

Yes. I've got the whole loop already. What I want, is get the first value of the inline table ce.archive in the loop.

sasiparupudi1
Master III
Master III

may be just

Let xx=Peek('ce.archive',0,'T1');

sasiparupudi1
Master III
Master III

or Let xy=FieldValue('ce.archive',1);

sasiparupudi1
Master III
Master III

for each vField in FieldValueList('ce.fileList')

Let xx1='$(vField)';

Next;

Anonymous
Not applicable
Author

Thanks Sasidhar, the second formula did not work, I got only null in my variable, but the first one was ok!

Have a good day!