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: 
mrainey18
Creator
Creator

Field Value Array

Is there a way to put a list of Distinct field values into a variable array?

I am trying to create a nested For each next loops where the loops loop through each distinct field value. 

1 Solution

Accepted Solutions
sunny_talwar

May be do this with FieldValue() and FieldValueCount() function

For i = 1 to FieldValueCount('FieldName')

     LET vVar = $(vVar) & FieldValue('FieldName', $(i));

NEXT i

Something along these lines

View solution in original post

1 Reply
sunny_talwar

May be do this with FieldValue() and FieldValueCount() function

For i = 1 to FieldValueCount('FieldName')

     LET vVar = $(vVar) & FieldValue('FieldName', $(i));

NEXT i

Something along these lines